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
- toJSONSchema: `io: "input"` drops the checks declared after a `.pipe()`
- `z.compile`: a runtime island leaks one indent level into the rest of the generated source, leading to substantial memory overhead
- Don't unwrap all typescript styles, but use intermediate typescript types
- Excessive memory retention in v4 memoizer
- Player.validate
- v4.5: discriminatedUnion with wrapped discriminators throws "Duplicate discriminator value" at first parse — plain Error escapes safeParse
- docs: Zod 4.6 announcement post
- Expose the z.compile installer for native/AOT compiler integrations
- 4.5.0+: safeParse (and likely other methods) moved off own-instance properties, breaking Vitest's vi.mock() automocking
- fix(v4): handle if/then/else validation in json-schema
- Docs
- TypeScript not yet supported