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 4 of 33

0.24.0

What's Changed
* Fix UnionIntFloat json schema generation. by jboulmier in https://github.com/koxudaxi/datamodel-code-generator/pull/1669
* Move pysnooper to optional by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1672
* use tomllib in 3.11 or later by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1674
* Change --validation option to optional by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1675
* Remove black in lint.sh and format.sh by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1676
* Resolve ref before adding references for allOf items by pimzero in https://github.com/koxudaxi/datamodel-code-generator/pull/1678
* Change master to main by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1681
* Fix error when JsonSchemaObject is bool with Pydantic v2 by sbussard-vareto in https://github.com/koxudaxi/datamodel-code-generator/pull/1691

Breaking Changes
* The version drop `pysnooper`, `prance`, `openapi-spec-validator` from the default dependencies list.
If you want to use `--debug` and ` --validation`, please add the extra option when you install packages `datamodel-code-generator[debug]` and `datamodel-code-generator[validation]`

Depreacated
* `--validation` option will be removed in the new future. please use other tools to validate OpenAPI Schema.

New Contributors
* jboulmier made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1669
* pimzero made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1678
* sbussard-vareto made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1691

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

0.23.0

What's Changed
* Support $defs for Draft 2019-09 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1630
* Update openapi-spec-validator max version by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1633
* Fix list default in dataclass by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1632
* Support python 3.12 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1612
* Fix `--remove-special-field-name-prefix` + fields (e.g. enum members) starting with numbers by lord-haffi in https://github.com/koxudaxi/datamodel-code-generator/pull/1654
* Fix generation of nullable array items by tfausten in https://github.com/koxudaxi/datamodel-code-generator/pull/1648
* Move nullable logic to openapi parser by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1655
* Add missing space to README.md by joakimnordling in https://github.com/koxudaxi/datamodel-code-generator/pull/1660
* Improve model naming by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1663
* Fix exponent in minimum by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1664
* Remove constraint on anyurl by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1665
* Improve discriminator by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1666

New Contributors
* lord-haffi made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1654
* tfausten made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1648
* joakimnordling made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1660

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.22.1...0.23.0

0.22.1

What's Changed
* Ignore broken pydantic version 2.4.0 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1593
* Avoid pydantic ClassVar bug by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1603
* Fix msgspec pattern and optional annotated type by indrat in https://github.com/koxudaxi/datamodel-code-generator/pull/1606
* Fix missing constr import issue by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1609
* Fix msgspec root import by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1611


**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.22.0...0.22.1

0.22.0

What's Changed
* Organize help options by howardj99 in https://github.com/koxudaxi/datamodel-code-generator/pull/1540
* fix: add type parameters to generic RootModel by tcrasset in https://github.com/koxudaxi/datamodel-code-generator/pull/1560
* chore: link to contributing guidelines from README.md by tcrasset in https://github.com/koxudaxi/datamodel-code-generator/pull/1561
* Fix base path to avoid duplicate parts in path when deleting reference by pedrosmr in https://github.com/koxudaxi/datamodel-code-generator/pull/1550
* Support msgspec output by indrat in https://github.com/koxudaxi/datamodel-code-generator/pull/1551

New Contributors
* howardj99 made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1540
* tcrasset made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1560
* pedrosmr made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1550
* indrat made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1551

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.21.5...0.22.0

0.21.5

What's Changed
* Added protect namespace to Pydantic v2 ConfigDict by willarmiros in https://github.com/koxudaxi/datamodel-code-generator/pull/1489
* Fix pydantic 2.2.1 RootModel cannot have extra_fields error by i404788 in https://github.com/koxudaxi/datamodel-code-generator/pull/1497
* Add missing default=None by twoodwark in https://github.com/koxudaxi/datamodel-code-generator/pull/1515
* Fix class Field generated when array with name fields with oneOf inside by mjperrone in https://github.com/koxudaxi/datamodel-code-generator/pull/1516

New Contributors
* willarmiros made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1489
* twoodwark made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1515
* mjperrone made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1516

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.21.4...0.21.5

0.21.4

What's Changed
* Update openapi-spec-validator to 0.5.7 by der-eismann in https://github.com/koxudaxi/datamodel-code-generator/pull/1475
* Fix Pydantic V2 RootModel inheritance by barreeeiroo in https://github.com/koxudaxi/datamodel-code-generator/pull/1477
* main: fix configuration model validation after CLI args merge by airwoodix in https://github.com/koxudaxi/datamodel-code-generator/pull/1448
* Fix const for pydantic_v2 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1482
* Unique list is defined as list by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1484
* switch away from deprecated pydantic method by iliakur in https://github.com/koxudaxi/datamodel-code-generator/pull/1485
* Fix condecimal by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1487
* Add unittest for discriminator by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1488

New Contributors
* der-eismann made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1475
* barreeeiroo made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1477
* iliakur made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1485

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.21.3...0.21.4

Page 4 of 33

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.