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(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(checks): don't throw from safeParse on bigint multipleOf(0n)
- docs: update keyof() ZodEnum type to the v4 form
- Add zod-compiler
- fix(locales): improve french translation
- Enum defined as a schema type in spec and in generated schema index is used instead of actual enum-value
- fix(discriminatedUnion): route undefined input to .default() branch when discriminator key is absent
- perf: optimize `$ZodObjectJIT` fastpass
- Docs
- TypeScript not yet supported