npm / zod-from-json-schema
zod-from-json-schema
What changed in zod-from-json-schema 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 breaking7 new APIs and options6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initzod-from-json-schema 0.515 changes
Breaking changes 2
patternProperties are enforced even without properties, required, or additionalProperties: false.
Properties with a default are still enforced as required.
New APIs and options 7
The dependentRequired keyword is now supported.
The dependentSchemas keyword is now supported.
Conditional schemas using if, then, and else are now supported.
JSON Schema propertyNames is now supported.
Internal JSON Schema references are now supported, including $ref, $id, $anchor, and $dynamicRef.
Adds support for ZodFile in JSON Schema conversion.
Schema now has basic support for defaults.
Fixes and other changes 6
Can now represent bare object schemas and sibling-less anyOf schemas.
Draft-4 boolean exclusiveMaximum is translated instead of disabling the number type.
Draft-4 boolean exclusiveMinimum is translated instead of disabling the number type.
Declared properties are validated against matching patternProperties.
The converter skips __proto__ when building a raw shape from a JSON Schema object.
Fixed handling of the oneOf JSON Schema keyword.