Datamodel-code-generator

Latest version: v0.26.5

Safety actively analyzes 702474 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 33

0.25.3

What's Changed
* Enable ability to use custom `JsonSchemaObject` in `JsonSchemaParser` by WilliamJamieson in https://github.com/koxudaxi/datamodel-code-generator/pull/1783
* Stop modifying behavior of yaml on load by gluap in https://github.com/koxudaxi/datamodel-code-generator/pull/1826
* Fix bug with oneOf and const 1787 by shadchin in https://github.com/koxudaxi/datamodel-code-generator/pull/1791
* format: support black >=24 by airwoodix in https://github.com/koxudaxi/datamodel-code-generator/pull/1829

New Contributors
* WilliamJamieson made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1783
* gluap made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1826
* shadchin made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1791

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.2...0.25.3

0.25.2

What's Changed
* Fix original_name validation by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1755
* Use const as default by mmwinther in https://github.com/koxudaxi/datamodel-code-generator/pull/1767
* Support json_schema_extra by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1782
* Improve json_schema_extra to pydanticv2 Field with readOnly/writeOnly by mikedavidson-evertz in https://github.com/koxudaxi/datamodel-code-generator/pull/1778
* Fix un-imported literal when generate discriminator by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1765

New Contributors
* mikedavidson-evertz made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1778

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.1...0.25.2

0.25.1

What's Changed
* Fix invalid definition of graphql requirement by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1741


**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.0...0.25.1

0.25.0

What's Changed
* Improve collapse_root_models for list by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1700
* Improve one of any of models creation by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1682
* Change example to examples in pydantic_v2 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1705
* Enable --set-default-enum-member for dataclasses by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1706
* Fix --use-default of allOf by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1708
* Beta version graphql by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1707
* Add a few tests graphql by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1722
* Add additional imports to cli by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1723
* Fix long description rendering in graphql by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1730
* Add custom formatters by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1733
* with pydantic v2, use pydantic.AwareDatetime instead of datetime by gjcarneiro in https://github.com/koxudaxi/datamodel-code-generator/pull/1735
* Support discriminators in array items by mesfahanisimscale in https://github.com/koxudaxi/datamodel-code-generator/pull/1458
* Fix default for annotated field in pydantic v2 by i404788 in https://github.com/koxudaxi/datamodel-code-generator/pull/1498

Breaking Changes
* Remove the unneeded `Item` suffix of `anyOf` and `oneOf` model names by https://github.com/koxudaxi/datamodel-code-generator/pull/1682
* maybe change other model names by the changes
* Change `datetime.datetime` to `pydantic.AwareDatetime` in pydantic v2 by https://github.com/koxudaxi/datamodel-code-generator/pull/1735

New Contributors
* denisart made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1707
* gjcarneiro made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1735
* mesfahanisimscale made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1458

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.2...0.25.0

0.24.2

What's Changed
* Fix join_url bug when httpx 2.4.0 or later by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1699


**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.1...0.24.2

0.24.1

What's Changed
* Add pyyaml by mmwinther in https://github.com/koxudaxi/datamodel-code-generator/pull/1698

New Contributors
* mmwinther made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1698

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.0...0.24.1

Page 3 of 33

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.