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 initjson-schema-to-pydantic 0.413 changes
Breaking changes 1
The package now supports Python >=3.9.
New APIs and options 5
Support predefined models when resolving $ref references.
Adds a parameter that allows models to be populated by either the original field name or the sanitized name.
Adds support for scalar roots.
Top-level array schemas are now supported using RootModel.
Adds allow_undefined_type to create_model.
Behavior and default changes 2
Predefined refs now support non-model types.
JSON Schema fields starting with underscores are supported by stripping leading underscores from field names and creating aliases.
Fixes and other changes 5
Properly handles underscore fields when using allOf combiners.
Properly handles underscore fields when using anyOf combiners.
Properly handles underscore fields when using oneOf combiners.
Fixes oneOf handling for simple types and references.
Support multiple type combinations in JSON Schema type arrays.