github koxudaxi/datamodel-code-generator 0.41.0

8 hours ago

What's Changed

  • Fix: resolve relative $ref correctly when fetching schemas from HTTP URLs by @koxudaxi in #2600
  • Add --read-only-write-only-model-type option for OpenAPI readOnly/writeOnly support by @koxudaxi in #2587
  • Add file:// URL protocol support for $ref resolution by @koxudaxi in #2601
  • Fix: Improve reference resolution and handling of duplicate names by @koxudaxi in #2602
  • Prevent invalid relative imports in single-file output for allOf/anyOf schemas by @koxudaxi in #2604
  • Fix single-file treat-dot-as-module by @koxudaxi in #2603
  • allOf ignores $ref when referencing oneOf/anyOf schemas by @koxudaxi in #2605
  • Resolve relative $ref correctly in external path/webhook files by @koxudaxi in #2606
  • Resolve $ref to locally defined $id without network access by @koxudaxi in #2608
  • Correct import generation for dot notation schema names with inheritance by @koxudaxi in #2607
  • Fix import alias if two types are provided (Json schema) by @Killian-fal in #2611
  • Use Enum Members in Discriminators with Safe Imports by @koxudaxi in #2609

New Contributors

Full Changelog: 0.40.0...0.41.0

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

NewReleases is sending notifications on new releases.