Releases: koxudaxi/fastapi-code-generator
Releases · koxudaxi/fastapi-code-generator
0.6.0
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-versionchoices no longer include3.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-typeno longer exposespydantic.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-typenow defaults topydantic_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
- remove typed-ast (EOL) from dependencies and update poetry.lock by @marcoemorais in #483
- Bump pytest-cov from 5.0.0 to 7.1.0 by @dependabot[bot] in #502
- chore: migrate to uv and support Python 3.10-3.14 by @koxudaxi in #514
- Add CLI E2E coverage pipeline by @koxudaxi in #516
- Port workflow and docs automation stack by @koxudaxi in #517
- Update hatchling requirement from >=1.27 to >=1.29.0 by @dependabot[bot] in #528
- Align CI/CD hardening workflows by @koxudaxi in #538
- Align CI workflows with datamodel-code-generator by @koxudaxi in #539
- Harden generated docs CI checks by @koxudaxi in #551
- Update datamodel-code-generator to 0.56.1 by @koxudaxi in #534
- fix: Allow hyphen in tags by @koxudaxi in #552
- fix: Allow hyphen in tags by @tobias-bahls in #497
- Fix a versioning issue with click by @relaxbox in #498
- Support for use-annotated by @jnu in #518
- Fix PR 518 followups by @koxudaxi in #555
- Preserve router path parameter names by @koxudaxi in #554
- Expose plain arguments by @LuisHsu in #454
- Fix multiple file upload generation by @koxudaxi in #553
- Add support for setting strict_nullable from CLI by @greg80303 in #493
- Fix specify-tags router filtering by @koxudaxi in #558
- Fix stringcase dependency with setuptools 78.0.0 by @koxudaxi in #565
- Add faux immutability option by @koxudaxi in #569
- Fix discriminated union simple types by @koxudaxi in #566
- Expose reuse model option by @koxudaxi in #568
- Preserve query array parameter types by @koxudaxi in #567
- Restore release draft analysis by @koxudaxi in #571
- Fix release draft gh repository context by @koxudaxi in #572
- Fix release draft label permissions by @koxudaxi in #573
- Use REST API for release draft labels by @koxudaxi in #574
- Fix release draft PR label scope by @koxudaxi in #575
New Contributors
- @marcoemorais made their first contribution in #483
- @tobias-bahls made their first contribution in #497
- @relaxbox made their first contribution in #498
- @LuisHsu made their first contribution in #454
- @greg80303 made their first contribution in #493
Full Changelog: 0.5.4...0.6.0
0.5.4
0.5.3
What's Changed
- Improve code generation with fixes for recursion, aliasing, and modular references by @sternakt in #484
- Fix docs build in CI by @davorrunje in #485
- Fix publish in CI by @davorrunje in #486
New Contributors
Full Changelog: 0.5.2...0.5.3
0.5.3rc0
What's Changed
- Improve code generation with fixes for recursion, aliasing, and modular references by @sternakt in #484
- Fix docs build in CI by @davorrunje in #485
- Fix publish in CI by @davorrunje in #486
New Contributors
Full Changelog: 0.5.2...0.5.3rc0
0.5.2
0.5.1
What's Changed
- Update typer by @davorrunje in #430
- Support for Pydantic 2 & additional python versions by @jnu in #414
- Fix generate_code args by @koxudaxi in #436
- fix inconsistance routers<>tags arrays by @azdolinski in #417
- 419 / Support for parsing callbacks by @jnu in #420
New Contributors
- @davorrunje made their first contribution in #430
- @jnu made their first contribution in #414
- @azdolinski made their first contribution in #417
Full Changelog: 0.5.0...0.5.1
0.5.0
What's Changed
- Update pydantic to v2 and update datamodel-code-generator to 0.25.6 by @kumaranvpl in #408
New Contributors
- @kumaranvpl made their first contribution in #408
Full Changelog: 0.4.4...0.5.0
0.4.4
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
- @notpushkin made their first contribution in #384
Full Changelog: 0.4.3...0.4.4
0.4.3
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