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
- feat: compact simple anyOf unions to type array in toJSONSchema
- fix: ZodFlattenedError accepts a schema, matching inferFlattenedErrors
- fix(v4): fromJSONSchema propertyNames enum keys should not be required
- fromJSONSchema: propertyNames with enum is treated as required keys
- fix(from-json-schema): accept RFC 3339 numeric offsets for date-time format
- fix(v4): correctly default on .default().transform() inside partial obj
- Breaking behavior for .default(...).transform(...) chain when used in a partial object
- feat(locales): add Hindi and Kannada locale support
- perf(v4): lazy ZodError construction (~40% faster failing safeParse)
- perf(v4): reuse frozen default parse contexts (~15% faster leaf parses)
- Docs
- TypeScript not yet supported