Skip to content

Commit

Permalink
Fix bug with missing items entry (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Maria Haberland <[email protected]>
  • Loading branch information
mh7d and mh-at-fujitsu authored Nov 20, 2023
1 parent 6bbd8c5 commit 3ded4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapidocs/mk/v3/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_example(self, schema) -> Any:
$ref: '#/components/schemas/ReleaseNodeDownload'
nullable: true
"""
items = schema["items"]
items = schema.get("items", [])

if not isinstance(items, list):
items = [items]
Expand Down

0 comments on commit 3ded4cb

Please sign in to comment.