github koxudaxi/datamodel-code-generator 0.42.1

6 hours ago

What's Changed

  • Add named profile support and --ignore-pyproject option for pyproject.toml configuration by @koxudaxi in #2619
  • Fix _internal module self-importing due to cached path property by @koxudaxi in #2621
  • Add warning when components/schemas is empty but paths exist by @koxudaxi in #2622
  • Fix msgspec discriminated union ClassVar generation and nullable type handling by @koxudaxi in #2620
  • Fix extras lost in oneOf/anyOf structures with --field-include-all-keys by @koxudaxi in #2623
  • Fix msgspec ClassVar generation for discriminator fields without use_annotated by @koxudaxi in #2625
  • Fix --check mode ignoring pyproject.toml formatter settings by @koxudaxi in #2626
  • Use SerializeAsAny for pydantic v2 models with subclasses by @tobias-bahls in #2612

New Contributors

Full Changelog: 0.42.0...0.42.1

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

NewReleases is sending notifications on new releases.