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
- perf(v4): dedupe factory def boilerplate in core/api.ts (-2.3% tree-shaken)
- perf(v4): dedupe class-init boilerplate in classic/core schemas (-3.6% tree-shaken)
- perf(v4): dedupe JSON Schema pipeline internals (pinned in every bundle)
- perf(v4): merge duplicated cold-path logic in core (-1.7% tree-shaken)
- perf: cut per-schema memory by moving methods to the prototype
- z.xor() works fine with strict objects but breaks with regular ones
- fix: support format hostname in fromJSONSchema
- fix(mini): correct merge signature to accept a plain shape
- fix(fromJSONSchema): propertyNames enum keys should not be required
- fix(codec): decode may return unknown, validated by the out schema
- Docs
- TypeScript not yet supported