You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When I run the python-fastapi generator, with the python-fastapi templates provided in this repo, and specify packageName, the generated README.md doesn't pick it up for the example uvicorn command: PYTHONPATH=src uvicorn openapi_server.main:app --host 0.0.0.0 --port {{serverPort}}
openapi-generator version
Latest master branch as of Aug 28 2024.
OpenAPI declaration file content or url
I'm using the provided petstore.yaml, but it shouldn't matter.
Run the above generator command and open the README.md. You will see that the uvicorn command specifies openapi_server.main:app even though packageName was used to specify something other than openapi_server (should be my_custom_name.main:app)
Related issues/PRs
Suggest a fix
Change the line in the provided template README.mustache from:
Bug Report Checklist
Description
When I run the python-fastapi generator, with the python-fastapi templates provided in this repo, and specify
packageName
, the generated README.md doesn't pick it up for the example uvicorn command:PYTHONPATH=src uvicorn openapi_server.main:app --host 0.0.0.0 --port {{serverPort}}
openapi-generator version
Latest master branch as of Aug 28 2024.
OpenAPI declaration file content or url
I'm using the provided petstore.yaml, but it shouldn't matter.
Generation Details
Steps to reproduce
Run the above generator command and open the README.md. You will see that the uvicorn command specifies
openapi_server.main:app
even though packageName was used to specify something other thanopenapi_server
(should bemy_custom_name.main:app
)Related issues/PRs
Suggest a fix
Change the line in the provided template README.mustache from:
to:
The text was updated successfully, but these errors were encountered: