Skip to content

Releases: koxudaxi/fastapi-code-generator

0.6.0

30 Apr 17:55
b1c8c22

Choose a tag to compare

Breaking Changes

Python or Dependency Support Changes

  • Dropped Python 3.9 runtime support - Package metadata now requires Python 3.10 or newer, removes the Python 3.9 classifier, and updates the supported runtime range to Python 3.10 through 3.14 (#514)
  • Dropped Python 3.9 target generation - The CLI --python-version choices no longer include 3.9, so users generating Python 3.9-compatible output need to stay on an older release or target Python 3.10+ (#534)

API/CLI Changes

  • Removed the Pydantic v1 BaseModel output option - --output-model-type no longer exposes pydantic.BaseModel, and scripts that pass that value need to switch to a supported output backend (#534)

Default Behavior Changes

  • Changed the default model backend to Pydantic v2 - --output-model-type now defaults to pydantic_v2.BaseModel, which changes generated model imports and configuration unless users explicitly choose another backend (#534)

Code Generation Changes

  • Changed generated FastAPI parameter and model output - Optional query parameters may now use explicit Query(...) defaults or aliases, and generated models move from Pydantic v1 patterns to Pydantic v2-style configuration (#534)

What's Changed

New Contributors

Full Changelog: 0.5.4...0.6.0

0.5.4

29 Apr 10:00
33f7572

Choose a tag to compare

What's Changed

Full Changelog: 0.5.3...0.5.4

0.5.3

16 Apr 13:23
c9fe474

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.2...0.5.3

0.5.3rc0

16 Apr 13:19
c9fe474

Choose a tag to compare

0.5.3rc0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.5.2...0.5.3rc0

0.5.2

14 Dec 06:38
5ef88e7

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.1...0.5.2

0.5.1

02 Jul 14:25
06f0d2b

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.0...0.5.1

0.5.0

02 May 15:42
7bf89ad

Choose a tag to compare

What's Changed

  • Update pydantic to v2 and update datamodel-code-generator to 0.25.6 by @kumaranvpl in #408

New Contributors

Full Changelog: 0.4.4...0.5.0

0.4.4

07 Sep 16:21
fb88eba

Choose a tag to compare

What's Changed

  • Generate correct python code if path is camel case by @yyamano in #380
  • Generate valid python code if query param exists and requeststBody is required by @yyamano in #382
  • Allow modular output with custom templates by @notpushkin in #384
  • Fixed broken test (Added option for inputting encoding of file #334) by @yyamano in #383

New Contributors

Full Changelog: 0.4.3...0.4.4

0.4.3

19 Aug 17:40
07b70f9

Choose a tag to compare

What's Changed

  • Don't overwrite files in tests/data at testing time by @yyamano in #373
  • Add file upload support for both octet-stream and form-data by @yyamano in #374
  • Generate valid python code if query param has default value and requeststBody is required by @yyamano in #377
  • Generate an empty model file if an api spec file have no "schemas". by @yyamano in #375

New Contributors

Full Changelog: 0.4.2...0.4.3

0.4.2

27 Apr 16:08
7371553

Choose a tag to compare

What's Changed

  • Feature/generate routers by @v1kAn0v in #344
  • Enable custom visitors when enum_field_as_literal parameter is passed by @dmille in #332

New Contributors

Full Changelog: 0.4.1...0.4.2