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
- v4: `toJSONSchema` drops `default` when the defaulted schema contains a transform/pipe
- zod/v4/classic bundles all locale files due to non-tree-shakable export * as locales
- fix: escape JSON Pointer tokens in toJSONSchema $ref (RFC 6901)
- fix: preserve explicit superRefine issue input
- fix: narrow format type on ZodInt, ZodFloat32, ZodFloat64, ZodInt32, …
- Consider compacting simple JSON Schema unions to type array
- Distinguish different number formats in type-level
- Benchmark idea: failure-path error formatting with deeper issue paths
- fix: union containing z.undefined() should be optional-in for object keys
- fix(core): Throw error if enum schema has no values
- Docs
- TypeScript not yet supported