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
- `decode` method for creating new codecs should expect `unknown` as the return type
- `.partial()` produces inaccurate inferred types for optional and defaulted fields
- feat(locales): add turkmen (tk) locale
- feat(v4): add z.formData() for typed FormData parsing
- test: add readonly deep inference coverage
- Wrong input type inferred from record with enum keys and default values
- fix(v4): infer partial input for defaulted enum records
- fix(toJSONSchema): escape RFC 6901 special characters in $ref pointers
- perf: speed up toJSONSchema for large registries
- encode() runs user codec encode functions 2–N times per call when ancestors have checks
- Docs
- TypeScript not yet supported