Skip to content

Commit

Permalink
Fix building examples if they are provided as Example instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Feb 21, 2024
1 parent 46e33de commit c95ac9a
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 @@ -442,6 +442,8 @@ def _build_examples(
for key, value in examples.items():
if not isinstance(value, openapi.Example):
result[key] = openapi.Example(value)
else:
result[key] = value
return result

def __build_object_schema_with_plugins(
Expand Down

0 comments on commit c95ac9a

Please sign in to comment.