unstale

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 init

@unstale/cli on npm

zod-from-json-schema 0.515 changes

Breaking changes 2

  • patternProperties are enforced even without properties, required, or additionalProperties: false.

    0.5.4release notes

  • Properties with a default are still enforced as required.

    0.5.4release notes

New APIs and options 7

  • The dependentRequired keyword is now supported.

    0.5.4release notes

  • The dependentSchemas keyword is now supported.

    0.5.4release notes

  • Conditional schemas using if, then, and else are now supported.

    0.5.4release notes

  • JSON Schema propertyNames is now supported.

    0.5.4release notes

  • Internal JSON Schema references are now supported, including $ref, $id, $anchor, and $dynamicRef.

    0.5.4release notes

  • Adds support for ZodFile in JSON Schema conversion.

    0.5.2release notes

  • Schema now has basic support for defaults.

    0.5.1release notes

Fixes and other changes 6

  • Can now represent bare object schemas and sibling-less anyOf schemas.

    0.5.6release notes

  • Draft-4 boolean exclusiveMaximum is translated instead of disabling the number type.

    0.5.4release notes

  • Draft-4 boolean exclusiveMinimum is translated instead of disabling the number type.

    0.5.4release notes

  • Declared properties are validated against matching patternProperties.

    0.5.4release notes

  • The converter skips __proto__ when building a raw shape from a JSON Schema object.

    0.5.4release notes

  • Fixed handling of the oneOf JSON Schema keyword.

    0.5.3release notes