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 supported1 Subscribers
Add a CodeTriage badge to zod
Help out
- Issues
- fix(docs): add custom not-found page with theme-aware styling
- docs: 404 page has broken styling in light mode and is not centered
- fix(docs): add custom 404 page with proper theme support
- fix(fromJSONSchema): handle circular references in dereferenced schemas
- fix: distinguish ZodCoerced* types from non-coerced via phantom brand
- fix: apply key transforms in record with enum/literal keys
- discriminatedUnion no longer warns with invalid variant at compile time (zod 4)
- .refine always runs even though .max or .min gets triggered
- fix: replace .default with .prefault
- z.toJSONSchema() stack overflows on recursive z.lazy() union schemas when recursive branches use .describe()
- Docs
- TypeScript not yet supported