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(checks): don't throw from safeParse on bigint multipleOf(0n)
- 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
- Staged Publishing — human 2FA gate before CI pushes to latest
- fix(ulid): reject first characters '8'/'9' that overflow 48-bit timestamp
- Flat Documentation / Easier API Discovery
- ability to define inline non-empty array which is expressed in its inferred type (in v4)
- Restore section on Zod schemas as parameters in the docs
- Solution to extend strict object unions
- Docs
- TypeScript not yet supported