Skip to content

Commit

Permalink
Add ability to use default response schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Mar 4, 2024
1 parent 2b20026 commit c8d968c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openapify/core/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@


def default_response_description(http_code: str) -> str:
if http_code.lower() == "default":
return "Default Response"
result = RESPONSE_DESCRIPTIONS.get(http_code)
if result:
return result
Expand Down

0 comments on commit c8d968c

Please sign in to comment.