zod
https://github.com/colinhacks/zod
TypeScript
TypeScript-first schema validation with static type inference
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
TypeScript not yet supported2 Subscribers
Add a CodeTriage badge to zod
Help out
- Issues
- Add support for extending zod error messages from existing objects
- `fromJSONSchema` has no Unicode support: `pattern` is compiled without the `u` flag and `idn-email` is ignored
- Turkish (tr) locale: base64 described as encryption, type names left in English
- Feature request: attach structured, typed data to issues from the error param
- docs: broken logo in the published zod README
- [BUG]: `fromJSONSchema` silently drops `minItems` and `maxItems` when `items` is omitted
- Ecosystem: add dynotable-orm to Powered by Zod
- `z.fromJSONSchema` rejects every value for `const`/`enum` with object or array values
- `not_multiple_of` issue types `divisor` as `number`, but `z.bigint().multipleOf()` stores a bigint there
- fromJSONSchema drops assertion keywords next to $ref (draft 2020-12)
- Docs
- TypeScript not yet supported