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
- fromJSONSchema rejects references to a false boolean schema as missing
- docs: update oRPC links in the ecosystem page
- `.readonly()` freezes the input on a failed parse, and `safeParse` throws for typed arrays
- `toJSONSchema` throws on a schema with both a refinement and a `toJSONSchema` override (4.3.0 regression)
- docs: five examples in api.mdx and codecs.mdx throw or contradict their comments
- TypeScript OOM (tsc heap exhaustion) regression in 4.6.6 / 4.6.7; 4.6.5 is fine
- Circular import between `v4/core/core.js` and `v4/core/util.js`
- Feature request: `.defaults()` to read an object schema's defaults
- Feature request: an array that drops invalid elements instead of failing
- Feature request: `z.deepStrict()`, like `z.deepPartial()` for unknown keys
- Docs
- TypeScript not yet supported