github koxudaxi/datamodel-code-generator 0.44.0

latest release: 0.45.0
one day ago

What's Changed

  • Fix empty dict/list defaults not generating default_factory for Pydantic models by @koxudaxi in #2655
  • Add --use-decimal-for-multiple-of option to avoid floating-point precision issues by @koxudaxi in #2656
  • Remove mock remote ref test by @koxudaxi in #2659
  • Skip from __future__ import annotations for Python 3.14+ targets (PEP 649) by @koxudaxi in #2658
  • Fix enum member names conflicting with builtin type methods by @koxudaxi in #2660
  • Fix field name shadowing check to use issubclass for Pydantic v2 derived types by @koxudaxi in #2657
  • Fix keep_model_order dependency ordering and reduce unnecessary model_rebuild() calls by @koxudaxi in #2661
  • Fix missing init.py in intermediate package directories by @koxudaxi in #2662
  • Fix msgspec tag_field conflict with discriminator field definition by @koxudaxi in #2663
  • Fix dataclass field ordering conflict when inheriting from parent with default fields by @koxudaxi in #2664
  • Fix msgspec mutable default values to use default_factory by @koxudaxi in #2666
  • Add compile/exec validation for generated Python code in tests by @koxudaxi in #2665
  • Fix allOf array items partial override to inherit parent item types instead of Any by @koxudaxi in #2667
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #2668
  • Fix --use-unique-items-as-set to output set literals for default values by @koxudaxi in #2672
  • Fix allOf partial override to inherit parent constraints and add --allof-merge-mode option by @koxudaxi in #2671
  • Fix GraphQL parser to handle renamed objects correctly by @siminn-arnorgj in #2670
  • Add auto-generated CLI reference documentation from test cases by @koxudaxi in #2673
  • Fix crash when parsing enum containing only null value by @koxudaxi in #2674
  • Fix allOf with $ref to root model losing constraints by @koxudaxi in #2676
  • Support enum-field-as-literal in GraphQL parser by @siminn-arnorgj in #2677
  • refactor: reduce e2e test duplication with parameterization and enhance CLI docs by @koxudaxi in #2675

Full Changelog: 0.43.1...0.44.0

Don't miss a new datamodel-code-generator release

NewReleases is sending notifications on new releases.