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
- `parseAsync()` can return the fastest successful union option instead of the first option in order
- docs: three names in core.mdx don't exist in zod/v4/core
- `~standard.validate()` re-parses async schemas, running every transform and refinement twice
- toJSONSchema deletes an id explicitly set by override
- Add z.currencyCode() over a vendored ISO 4217 list with a weekly refresh
- Add z.secret() / z.secretString() to redact sensitive parsed values in logs
- Support recursive schema views
- z.compile: an async callback under z.lazy() throws a TypeError instead of $ZodAsyncError
- No jsdoc annotations
- Proposal: an official (or officially blessed) serialization format for Zod schemas
- Docs
- TypeScript not yet supported