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(v4): preserve z.preprocess input narrowing
- Object property with “preprocess” is marked as optional when output JSON using `toJSONSchema [io: 'input']` since v4.4.3
- `z.httpUrl()` doesn't allow underscores in hostname
- regexes.domain is missing RFC 1035 length limits
- fix: upgrade next to 13.5.9, 14.2.25, 15.2.3, 12.3.5 (CVE-2025-29927)
- Narrowing the input type of `z.preprocess` no longer works after updating to latest version (v4.4.3)
- v4.4 now errors on z.coerce.boolean parsing undefined
- fix(v4): preserve default English locale across tree-shaken bundles
- feat: support passing arguments through .apply() to mapper function
- fix(v4): allow underscores in domain regex hostnames
- Docs
- TypeScript not yet supported