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
- Bug: `z.string().url()` incorrectly validates IPv6 link-local addresses ("fe80:0000:0000:0000:0000:0000:0000:0001") as valid URLs
- feat: support `$ref` at root level in `toJSONSchema`
- fix: z.string().includes(sub,{position:N}) pattern should allow ≥N leading chars
- Feature Request: Support `$ref` at Root Level in `toJSONSchema`
- Bug: toJSONSchema `$ref` pointer not encoded when meta id contains `/` or `~`
- fix(from-json-schema): drop redundant inclusive bound for draft-04 exclusive ranges
- fix(from-json-schema): allow extra items when additionalItems/items is `true`
- fix: json schema tuple rest compliance
- `superRefine(async ...)` silently drops `ctx.addIssue` when `globalThis.Promise` is patched (Zone.js / Angular NgZone / `@opentelemetry/context-zone`)
- fix(v4): detect async results when Promise is patched
- Docs
- TypeScript not yet supported