What's Changed
- Fix invalid Union syntax when using --collapse-root-models by @koxudaxi in #2594
- Fix enum member names for object values to use title/name/const keys by @koxudaxi in #2596
- Fix import handling in --collapse-root-models to exclude both Optional and Union by @koxudaxi in #2597
- Fix default_factory for Union types with dict defaults by @koxudaxi in #2595
- Fix RootModel generation order to define referenced types first by @koxudaxi in #2592
- Fix TypeAlias with circular reference to class generates NameError by @koxudaxi in #2591
- Fix future import placement with custom file headers by @koxudaxi in #2589
- Fix multiple types in array not generating Union when object has properties by @koxudaxi in #2590
- Add scoped alias support for class-specific field renaming by @koxudaxi in #2599
- Fix: Handle dots in title when using --use-title-as-name option by @koxudaxi in #2598
Full Changelog: 0.39.0...0.40.0