Skip to content

Commit 3ded4cb

Browse files
mh7dmh-at-fujitsu
andauthored
Fix bug with missing items entry (#36)
Co-authored-by: Maria Haberland <82449221+mh-at-fujitsu@users.noreply.github.com>
1 parent 6bbd8c5 commit 3ded4cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openapidocs/mk/v3/examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def get_example(self, schema) -> Any:
117117
$ref: '#/components/schemas/ReleaseNodeDownload'
118118
nullable: true
119119
"""
120-
items = schema["items"]
120+
items = schema.get("items", [])
121121

122122
if not isinstance(items, list):
123123
items = [items]

0 commit comments

Comments
 (0)