Skip to content

Commit

Permalink
Generate correct python code if camel case path.
Browse files Browse the repository at this point in the history
  • Loading branch information
yyamano committed Aug 21, 2023
1 parent 07b70f9 commit 651983e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_code_generator/template/main.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app = FastAPI(


{% for operation in operations %}
@app.{{operation.type}}('{{operation.snake_case_path}}', response_model={{operation.response}}
@app.{{operation.type}}('{{operation.path}}', response_model={{operation.response}}
{% if operation.additional_responses %}
, responses={
{% for status_code, models in operation.additional_responses.items() %}
Expand Down

0 comments on commit 651983e

Please sign in to comment.