unstale

pypi / json-schema-to-pydantic

json-schema-to-pydantic

What changed in json-schema-to-pydantic 0.4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.

1 breaking5 new APIs and options2 behavior and defaults5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

json-schema-to-pydantic 0.413 changes

Breaking changes 1

New APIs and options 5

  • Support predefined models when resolving $ref references.

    0.4.10release notes

  • Adds a parameter that allows models to be populated by either the original field name or the sanitized name.

    0.4.9release notes

  • Adds support for scalar roots.

    0.4.8release notes

  • Top-level array schemas are now supported using RootModel.

    0.4.7release notes

  • Adds allow_undefined_type to create_model.

    0.4.6release notes

Behavior and default changes 2

  • Predefined refs now support non-model types.

    0.4.11release notes

  • JSON Schema fields starting with underscores are supported by stripping leading underscores from field names and creating aliases.

    0.4.9release notes

Fixes and other changes 5

  • Properly handles underscore fields when using allOf combiners.

    0.4.9release notes

  • Properly handles underscore fields when using anyOf combiners.

    0.4.9release notes

  • Properly handles underscore fields when using oneOf combiners.

    0.4.9release notes

  • Fixes oneOf handling for simple types and references.

    0.4.8release notes

  • Support multiple type combinations in JSON Schema type arrays.

    0.4.4release notes