fastapi-code-generator
fastapi-code-generator copied to clipboard
This code generator creates FastAPI app from an openapi file.
I have an OpenAPI 2.0 specification generated with Flask-Swagger, i.e. it has `swagger: "2.0"`. Trying to run fastapi-code-generator on this, I get errors like this for all of my parameters:...
updates: - [github.com/psf/black: 24.4.2 → 24.10.0](https://github.com/psf/black/compare/24.4.2...24.10.0)
Hi Koudai, I want to take the time to appreciate what you have created here. It's incredibly easy to use and amenable to customization. I am using this awesome tool...
I'm facing conflict in version when I need to use both `fastapi-code-generator` and `datamodel-code-generator` The `datamodel-code-generator` is able to generate models with "dot" in their names (output to a folder),...
I get the following error after generating (I am on 0.51.1), how can we resolve this? ``` poetry run fastapi-codegen --input schema.yaml --output app --template-dir api-generation/templates -r --custom-visitor api-generation/scripts/generate_call_expression.py --custom-visitor...
Bumps [mypy](https://github.com/python/mypy) from 1.10.0 to 1.11.1. Changelog Sourced from mypy's changelog. Mypy Release Notes Next release Mypy 1.11 We’ve just uploaded mypy 1.11 to the Python Package Index (PyPI). Mypy...
This PR adds `--model-template-dir` to specify `custom_template_dir` when initializing `OpenAPIParser`, which gives flexibility in model generation. I think this PR will solve #433.
This PR fixes an invalid field name. The example below defines the parameter `users[]`, which is not a valid argument name in Python. This PR will resolve `users[]` as `users__`....
Related to #414. - Specify `target_python_version` when initializing `OpenAPIParser`.
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.2 to 8.3.2. Release notes Sourced from pytest's releases. 8.3.2 pytest 8.3.2 (2024-07-24) Bug fixes #12652: Resolve regression [conda]{.title-ref} environments where no longer being automatically detected. --...