github koxudaxi/datamodel-code-generator 0.37.0

8 hours ago

What's Changed

  • Add PEP 257 docstrings to modules and test files by @koxudaxi in #2548
  • Strict type annotations for DataType, Reference, and JsonSchemaParser by @koxudaxi in #2549
  • ci: enable pytest-xdist parallel execution (-n auto) by @koxudaxi in #2553
  • Add --generate-pyproject-config CLI option by @koxudaxi in #2551
  • Refactor: Consolidate e2e test helpers and eliminate code duplication by @koxudaxi in #2552
  • Perf: Lazy import inflect module to reduce import time by @koxudaxi in #2554
  • Use time-machine for faster freeze_time by @koxudaxi in #2555
  • Lazy import black and isort for faster test startup by @koxudaxi in #2556
  • Fix: Add pragma no cover for legacy version compatibility code in format.py by @koxudaxi in #2557
  • Improve test coverage by @koxudaxi in #2558
  • Fix --keep-model-order to respect TypeAliasType field dependencies by @koxudaxi in #2560
  • Add --type-mappings option to customize type mappings in JSON schema by @koxudaxi in #2559
  • Restrict freezegun dependency to Python < 3.10 by @koxudaxi in #2561
  • Update .gitignore to include coverage files and IDE configurations by @koxudaxi in #2563
  • Remove JetBrains from sponsors section by @koxudaxi in #2564
  • fix: set not nullable not required Struct fields to UnsetType by @CharString in #2504
  • Add support for webhooks in --openapi-scopes by @HNygard in #2481
  • add dataclass arguments by @ICEPower420 in #2437
  • Preserve Aliased Imports During Cleanup by @koxudaxi in #2569
  • Bugfix-TypeAlias-Rebuild ---> Main by @raj-open in #2566
  • Use TypeAlias instead of TypeAliasType for non-Pydantic v2 models by @koxudaxi in #2562
  • Support allOf polymorphism with discriminator in OpenAPI by @zdenecek in #2530
  • Improve reference validation and reserved name handling by @koxudaxi in #2568
  • Fix: enable inline-snapshot update by using assert instead of pytest.fail by @koxudaxi in #2571
  • Add use_attribute_docstrings Support by @voteblake in #2550
  • Fix recursive TypeAlias generation for Python 3.11 (covers mutual alias refs) by @koxudaxi in #2570
  • Add automatic README command help update via GitHub Actions by @koxudaxi in #2574
  • Fix README auto-update workflow to trigger CI with PAT by @koxudaxi in #2575
  • Add --skip-root-model option to skip generating root model by @koxudaxi in #2572
  • Add --reuse-scope option for cross-file model deduplication by @koxudaxi in #2573

New Contributors

Full Changelog: 0.36.0...0.37.0

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

NewReleases is sending notifications on new releases.