Zod
colinhacks/zod · #6022
WHAT IT DOES
PUBLIC ECOSYSTEM REACH
Zod is publicly integrated in official engineering projects from OpenAI, Google, Microsoft and Vercel.
- OpenAI — official Node SDK ships Zod helpers for structured outputs and tool arguments: openai-node/src/helpers/zod.ts
- Google — Genkit core imports and re-exports Zod as its consistent schema layer: genkit/js/core/src/schema.ts
- Microsoft — TypeChat includes a first-party Zod validator: TypeChat/typescript/src/zod/validate.ts
- Vercel — AI SDK demonstrates Zod schemas for structured generation: vercel/ai — generating structured data
PROJECT SOURCE · zod.dev
UPSTREAM CHANGE
fix(from-json-schema): drop redundant inclusive bound for draft-04 exclusive ranges
Prevented duplicate Zod validation issues when importing JSON Schema draft-04 boolean exclusive bounds. Where exclusiveMinimum or exclusiveMaximum is the boolean true, the converter now omits the redundant inclusive .min() or .max() check, while leaving the numeric exclusive-bound form used by draft-06 and later unchanged.
WHY IT MATTERS
!== true guard preserves later numeric exclusiveMinimum / exclusiveMaximum behaviour. The defect surfaced only in Zod’s own parse issue output: toJSONSchema output was byte-identical, so JSON Schema round-tripping and external JSON Schema validator behaviour were unaffected.PUBLIC EVIDENCE
- Merged pull request: colinhacks/zod#6022
- Maintainer confirmation: maintainer comment
- Merge commit:
73bacbbb6b83b49b679e141f73f2fd915a514911
The maintainer added a regression assertion pinning the user-visible issue count and expressly confirmed the guard as correct.