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
- Feature request: a union of objects that rejects another option's keys but still strips unknown ones
- Feature request: a `.partial()` that leaves absent keys absent (`.exactPartial()`/`.partialNoDefaults()`)
- CI: lockstep check failing: Node provisioning from .nvmrc 'latest' (27.0.0) 404s
- CI failing: .nvmrc 'latest' resolves to Node 27.0.0 which 404s on nodejs.org (ERR_NUB_NODE_PROVISION_FAILED)
- Number min/max getter tests never assert (`.toBeNull` without `()`), and v4 `minValue`/`maxValue` never return `null` despite the `number | null` type
- `~standard.jsonSchema.input()` and `.output()` don't throw for an unsupported `target`
- Zod’s emoji regex is super slow on Safari
- Proposal: `evaluatePath` and `safeEvaluatePath` to recursively resolve a schema to the branches selected by a payload
- Add Sinhala (si) locale
- Proposal: external parse-result reproduction traces
- Docs
- TypeScript not yet supported