Releases: koxudaxi/datamodel-code-generator
Releases · koxudaxi/datamodel-code-generator
0.24.1
What's Changed
- Add pyyaml by @mmwinther in #1698
New Contributors
- @mmwinther made their first contribution in #1698
Full Changelog: 0.24.0...0.24.1
0.24.0
What's Changed
- Fix UnionIntFloat json schema generation. by @jboulmier in #1669
- Move pysnooper to optional by @koxudaxi in #1672
- use tomllib in 3.11 or later by @koxudaxi in #1674
- Change --validation option to optional by @koxudaxi in #1675
- Remove black in lint.sh and format.sh by @koxudaxi in #1676
- Resolve ref before adding references for allOf items by @pimzero in #1678
- Change master to main by @koxudaxi in #1681
- Fix error when JsonSchemaObject is bool with Pydantic v2 by @sbussard-vareto in #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 packagesdatamodel-code-generator[debug]
anddatamodel-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 #1669
- @pimzero made their first contribution in #1678
- @sbussard-vareto made their first contribution in #1691
Full Changelog: 0.23.0...0.24.0
0.23.0
What's Changed
- Support $defs for Draft 2019-09 by @koxudaxi in #1630
- Update openapi-spec-validator max version by @koxudaxi in #1633
- Fix list default in dataclass by @koxudaxi in #1632
- Support python 3.12 by @koxudaxi in #1612
- Fix
--remove-special-field-name-prefix
+ fields (e.g. enum members) starting with numbers by @lord-haffi in #1654 - Fix generation of nullable array items by @tfausten in #1648
- Move nullable logic to openapi parser by @koxudaxi in #1655
- Add missing space to README.md by @joakimnordling in #1660
- Improve model naming by @koxudaxi in #1663
- Fix exponent in minimum by @koxudaxi in #1664
- Remove constraint on anyurl by @koxudaxi in #1665
- Improve discriminator by @koxudaxi in #1666
New Contributors
- @lord-haffi made their first contribution in #1654
- @tfausten made their first contribution in #1648
- @joakimnordling made their first contribution in #1660
Full Changelog: 0.22.1...0.23.0
0.22.1
What's Changed
- Ignore broken pydantic version 2.4.0 by @koxudaxi in #1593
- Avoid pydantic ClassVar bug by @koxudaxi in #1603
- Fix msgspec pattern and optional annotated type by @indrat in #1606
- Fix missing constr import issue by @koxudaxi in #1609
- Fix msgspec root import by @koxudaxi in #1611
Full Changelog: 0.22.0...0.22.1
0.22.0
What's Changed
- Organize help options by @howardj99 in #1540
- fix: add type parameters to generic RootModel by @tcrasset in #1560
- chore: link to contributing guidelines from README.md by @tcrasset in #1561
- Fix base path to avoid duplicate parts in path when deleting reference by @pedrosmr in #1550
- Support msgspec output by @indrat in #1551
New Contributors
- @howardj99 made their first contribution in #1540
- @tcrasset made their first contribution in #1560
- @pedrosmr made their first contribution in #1550
- @indrat made their first contribution in #1551
Full Changelog: 0.21.5...0.22.0
0.21.5
What's Changed
- Added protect namespace to Pydantic v2 ConfigDict by @willarmiros in #1489
- Fix pydantic 2.2.1 RootModel cannot have extra_fields error by @i404788 in #1497
- Add missing default=None by @twoodwark in #1515
- Fix class Field generated when array with name fields with oneOf inside by @mjperrone in #1516
New Contributors
- @willarmiros made their first contribution in #1489
- @twoodwark made their first contribution in #1515
- @mjperrone made their first contribution in #1516
Full Changelog: 0.21.4...0.21.5
0.21.4
What's Changed
- Update openapi-spec-validator to 0.5.7 by @der-eismann in #1475
- Fix Pydantic V2 RootModel inheritance by @barreeeiroo in #1477
- main: fix configuration model validation after CLI args merge by @airwoodix in #1448
- Fix const for pydantic_v2 by @koxudaxi in #1482
- Unique list is defined as list by @koxudaxi in #1484
- switch away from deprecated pydantic method by @iliakur in #1485
- Fix condecimal by @koxudaxi in #1487
- Add unittest for discriminator by @koxudaxi in #1488
New Contributors
- @der-eismann made their first contribution in #1475
- @barreeeiroo made their first contribution in #1477
- @iliakur made their first contribution in #1485
Full Changelog: 0.21.3...0.21.4
0.21.3
What's Changed
- Give Pydantic V2 its own
dump_resolve_reference_action
to usemodel_rebuild
notupdate_forward_refs
by @lmmx in #1468 - fix: Fix regex expression of hostname in pydantic v2 by @xu-cheng in #1449
- Add
base_class
validation similar to_validate_base_class
to baregenerate
calls by @kylebebak in #1453 - Fix issue #1461: Open API parameter models use base class if set by @piercsi in #1462
- Issues 1454 typeddict not required optional bug fix by @kylebebak in #1457
New Contributors
- @lmmx made their first contribution in #1468
- @xu-cheng made their first contribution in #1449
- @kylebebak made their first contribution in #1453
- @piercsi made their first contribution in #1462
Full Changelog: 0.21.2...0.21.3
0.21.2
What's Changed
- Pre-commit-hooks by @yehoshuadimarsky in #1416
- feat: add additional imports by @skonik in #1422
- Add orm_mode to Config(BaseModel) by @Beaueve in #1425
- Fix "parent" AttributeError when calling --collapse-root-models by @imankulov in #1432
New Contributors
- @yehoshuadimarsky made their first contribution in #1416
- @skonik made their first contribution in #1422
- @Beaueve made their first contribution in #1425
- @imankulov made their first contribution in #1432
Full Changelog: 0.21.1...0.21.2