Skip to content

Commit

Permalink
Fix summary lookup in OpenAPI handler routing (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil authored Aug 22, 2024
1 parent 6008649 commit 5465358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esmerald/openapi/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_openapi_operation(
operation.tags = route.handler.get_handler_tags()

if route.handler.summary:
operation.summary = route.summary
operation.summary = route.handler.summary
else:
operation.summary = route.handler.name.replace("_", " ").replace("-", " ").title()

Expand Down

0 comments on commit 5465358

Please sign in to comment.