Releases: koxudaxi/datamodel-code-generator
Releases · koxudaxi/datamodel-code-generator
0.32.0
What's Changed
- modify __typename field to honor
--use-default-kwarg
flag by @rpmcginty in #2420 - Fix typo in variable name by @eltoder in #2439
- Send use_non_positive_negative_number_constrained_types to the data type manager by @torarvid in #2425
- Allow parsing non-string lists for required fields by @HeroGamers in #2446
- Allow including path parameters in generated models by @MrLoh in #2445
- Passing in treat_dot_as_module bool to Enum init function by @LukeAtThat in #2456
- fix: correctly handle multiline comments in Unions by @anor4k in #2454
- Return Parameter and RequestBody DataTypesare by @MrLoh in #2444
New Contributors
- @rpmcginty made their first contribution in #2420
- @eltoder made their first contribution in #2439
- @torarvid made their first contribution in #2425
- @HeroGamers made their first contribution in #2446
- @MrLoh made their first contribution in #2445
- @LukeAtThat made their first contribution in #2456
- @anor4k made their first contribution in #2454
Full Changelog: 0.31.2...0.32.0
0.31.2
0.31.1
What's Changed
- fix: documentation for --allow-extra-fields by @cosmo-grant in #2416
- fix: respect
--extra-fields
option in pydantic v2 models by @cosmo-grant in #2423
Full Changelog: 0.31.0...0.31.1
0.31.0
What's Changed
- Resolve capitalize-enum-member not working with use-subclass-enum and snake-case-field when typed enum by @kevin-paulson-mindbridge-ai in #2418
- feat: add
--extra-fields
option to allow, forbid, or ignore extra fields by @cosmo-grant in #2417 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2415
Full Changelog: 0.30.2...0.31.0
0.30.2
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2393
- Support
coerce_numbers_to_str
inConfigDict
by @robotadam in #2394 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2397
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2402
- fix: Unnecessary _aliased suffix added to models generated from GraphQL union types by @kyo-ago in #2396
- fix: regression where _deep_merge() mutates list values in passed dictionary by @cosmo-grant in #2400
- Handle JSON pointer escaped values by @jrnold in #2401
- fix regex rewrite bug by @minomocca in #2404
- Add
--frozen-dataclasses
flag to generate frozen dataclasses by @K-dash in #2408 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2410
- fix generation of discriminated union values with no mapping by @kymckay in #2412
New Contributors
- @robotadam made their first contribution in #2394
- @kyo-ago made their first contribution in #2396
- @cosmo-grant made their first contribution in #2400
- @jrnold made their first contribution in #2401
- @minomocca made their first contribution in #2404
- @K-dash made their first contribution in #2408
- @kymckay made their first contribution in #2412
Full Changelog: 0.30.1...0.30.2
0.30.1
What's Changed
- fix: TypeError: '<' not supported between instances of 'str' and 'NoneType' by @gjcarneiro in #2380
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2383
- fixes link to templates by @leonlowitzki in #2382
- capitalise-enum-members not working since v0.28.5 by @kevin-paulson-mindbridge-ai in #2389
New Contributors
- @leonlowitzki made their first contribution in #2382
- @kevin-paulson-mindbridge-ai made their first contribution in #2389
Full Changelog: 0.30.0...0.30.1
0.30.0
What's Changed
- feat: add new option --parent-scoped-naming to avoid name collisions by @gjcarneiro in #2373
Full Changelog: 0.29.0...0.30.0
0.29.0
What's Changed
- Fix shadowed import errors by aliasing conflicting symbols in generated models by @sternakt in #2379
- fix: Pass encoding parameter to parser in init.generate() by @koxudaxi in #2367
- Bump upper version limit on the inflect library from 6 to 8 by @gothicVI in #2375
- feat: save memory in pydantic2 by avoiding simple aliasing empty classes by @gjcarneiro in #2376
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2372
- fix: capitalize_enum_members not recognized in pyproject.toml by @LordFckHelmchen in #2363
- fix(parser): ignore discriminator in collapsed list fields by @rcarriga in #2378
New Contributors
- @LordFckHelmchen made their first contribution in #2363
- @rcarriga made their first contribution in #2378
Full Changelog: 0.28.5...0.29.0
0.28.5
What's Changed
- fix: Fix Union type parsing with recursive None removal by @koxudaxi in #2342
- Ensure we have a string before trying to strip by @gothicVI in #2354
- fix: Fix invalid imports for schema files with hyphens and dots by @koxudaxi in #2343
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2347
- fix: fix field has same name on pydantic v2 by @koxudaxi in #2355
- fix: fix referenced default by @koxudaxi in #2356
- Fix field aliasing on discriminator fields by @djb7 in #2349
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #2360
New Contributors
Full Changelog: 0.28.4...0.28.5