NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #972 most downloaded on PyPI
Datamodel Code Generator
Latest stable
0.92.0
Last release 10 days ago
10 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
296 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
[FIX] inheritance update refs by @jdkent in https://github.com/koxudaxi/datamodel-code-generator/pull/767
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.12.0...0.12.1
Fix field constraint value by @koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/745
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.11.20...0.12.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
no use constr when field-constraints by @linshoK in https://github.com/koxudaxi/datamodel-code-generator/pull/726
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.11.19...0.11.20
fix booleans literals being converted to int by @koonpeng in https://github.com/koxudaxi/datamodel-code-generator/pull/704
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.11.18...0.11.19
[Docs] Fix typo by @ijrsvt in https://github.com/koxudaxi/datamodel-code-generator/pull/702
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.11.17...0.11.18
do not convert literal int to string for pydantic 1.9.0 or later by @duesenfranz in https://github.com/koxudaxi/datamodel-code-generator/pull/689
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.11.16...0.11.17
Fix json type form http by @koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/637
Non{Positive,Negative}{Float,Int} in models by @duesenfranz in https://github.com/koxudaxi/datamodel-code-generator/pull/679Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.11.15...0.11.16
Fix typed-ast by @koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/626
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.11.14...0.11.15
- Fix a bug for # field [#558]
- Support pydantic 1.5.1 [#537]
ignore broken regex version [#519]
- Fix version option [#499] ---
Fix invalid generated code with openapi validator [#496]
Support false on additionalProperties [#472] by @reb00ter
Thanks to @reb00ter
set default base class when removed all base class [#448 ]
Fix inline enum only string literal [#445] by @goodoldneon
Thanks to @goodoldneon
- Support customTypePath [#436]
Don't generate enum models that have been swapped by a reused model [#430] by @shnups
Thanks to @shnups
Handle nested nullable enums [#425] by @philipbjorge
Thanks to @philipbjorge
Fix #420 [#421] by @goodoldneon (IPv4Address doesn't import from pydantic.validators [#420])
Thanks to @goodoldneon
Support field extras keys [#416]
Fix get_relative_path subfolders with same names [#415] by @siame
Thanks to @siame
breaking change The detail is in #413
breaking change The detail is in #413
Support complex oneOf and anyOf [#410]
oneOf and anyOf [#410]Improve resolving relative path [#406]
Improve imports in DataType [#403]
Support time and idn-email format #397
The detail is in #398
Refactor data_type_manager [#384]
Thanks to @yuyupopo
Improve resolving module names [#377]
Fix x-enum-varnames for string [#372]
Escape special characters in regex [#370]
breaking change The detail is in https://github.com/koxudaxi/datamodel-code-generator/issues/357
breaking change The detail is in https://github.com/koxudaxi/datamodel-code-generator/issues/357
Support nested json_pointer [#352]
Generate function supports relative input path [#351]
Fix parsing ref on root model [#346]
Ignore duplicate object of allOf [#343]
The detail is in #344
Support enable_faux_immutability [#338]
- Improve strict-nullable [#330]
Support strict-nullable option [#328]
Improve resolving referenced models [#324]
Change internal interface [https://github.com/koxudaxi/datamodel-code-generator/issues/325]
- Fix detecting allOf [#321] ---
Improve resolving references [#318]
Support enum in additional properties [#316]
Parse enum field as literal [#312]
Raise model not found exception [#310]
Support multiple type enum [#309]
Support python dictionary [#305]
Fix similar nested array [#302]
- ignore datetime in yaml [#299]
- improve reusing model [#297]
- cache jinja2 template [#296] - improve performance 2 [#295]
Add use-schema-description option [#292]
Fix file path on windows [#291]
Fix resolving base class order [#287]
Thanks to @Liam-Deacon
fix invalid field name on enum [#281]
- Fix root array [#277] - Fix detecting file path [#276]
Support nested directory [#275]
support external files in a directory [#272]
fix a condition of importing annotations [#270]
fix external definitions [#265]
One column per quarter.