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
- fix(json-schema): keep preprocess object properties required in input mode
- fix(json-schema): don't let metadata override Zod-derived keywords
- fix(intersection): run checks/refinements/transforms on strict branches
- fix(errors): report non-finite numbers as "Infinity" in invalid_type message
- fix(core): detect promises robustly when globalThis.Promise is patched
- fix(preprocess): infer input type from the preprocessor argument
- fix(regexes): enforce RFC 1035 length limits in regexes.domain
- fix(discriminatedUnion): route undefined input to .default() branch when discriminator key is absent
- perf: optimize `$ZodObjectJIT` fastpass
- Impossible to define a global error message *inside* the schema?
- Docs
- TypeScript not yet supported