fastapi-code-generator
fastapi-code-generator copied to clipboard
This code generator creates FastAPI app from an openapi file.
I run into an issue that some schema I was working on, caused no files to be generated (and old files not overwritten, as one would expect). It appears to...
I get an AttributeError when I run fastapi-codegen with some OpenAPI files generated from [MEF-LSO-Legato](https://github.com/MEF-GIT/MEF-LSO-Legato-SDK/) Billie Release. The exception is raised inside jsonschema parser library. Here is the error: ```...
Running Example app results in "ImportError: attempted relative import with no known parent package"
When generating an app with the [example yaml file provided](https://github.com/koxudaxi/fastapi-code-generator#example) generates failing relative imports (using Python 3.8) The import created `from .models import Pets` should be updated to `from models...
When API is extensive, it's not convenient to have everything (except models) in one file. I suggest splitting the template and using [template inheritance](https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance) to make it easier to write...
It would be great to have support for tags. I volunteer to implement this, I just don't want to start implementing it before https://github.com/koxudaxi/fastapi-code-generator/pull/203 is merged to avoid merge conflicts....
### How to reproduce: - Omit the `response_model` in the router decorator - Run this on the openapi.json file - The result's main.py would have used `Any` for the empty...
The following schema will break creating this function `def list_pets(rs:query: Optional[int] = None) -> Pets:` schema.yml ```yaml openapi: "3.0.0" info: version: 1.0.0 title: Swagger Petstore license: name: MIT servers: -...
Hi @koxudaxi , As mentioned at https://github.com/koxudaxi/fastapi-code-generator/issues/24#issuecomment-864356253 , this tool does not generate a Docker project similar to openapi-generator-cli. It would be great if: - this tool supports Docker project...
Hi @koxudaxi , Thank you for your package! It seems openapi-generator's `python-fastapi` provides a functionality similar to this tool, but what do you think are the differences (pros and cons)?...
Hello! This looks very cool. I can create the server fine, and load the jinja templates, but I'm not sure how to assign the correct Security to operations. I want...