Open qyanu opened 1 year ago
This Issue still persists.
And its not "just" python-flask
, almost all python Servers face the same issue
python-blueplanet
-> Connexion
python-aiohttp
-> Connexion
In fact, the only Python Server Implementation that actually generates what one would expect is python-fastapi
Bug Report Checklist
Description
The generator "python-flask" indeed does not generate anything related to flask (https://flask.palletsprojects.com/), but uses connexion (https://pypi.org/project/connexion/).
While this is technically mentioned in the helpText (e.g. google searchable here https://openapi-generator.tech/docs/generators/python-flask/ ) and also mentioned in the
generated/README.md
, this is surprising nonetheless.I would have expected for the generator to have the name 'python-connexion' if indeed the connexion library is used, and to have the name 'python-flask' only if the generated code is somewhat related to the usage of flask according to flask's user-guide (e.g. https://flask.palletsprojects.com/en/2.2.x/quickstart/#a-minimal-application ).
My guess is, that there is some historical reason to the current naming of this python generator. However, indeed the current naming blocks for example me from writing another python generator that produces code using the flask library.
openapi-generator version
I have downloaded the 6.4.0 version of the generator as follows:
OpenAPI declaration file content or url
Generation Details
The code was generated as follows:
Related issues/PRs
none found
Suggest a fix