Skip to content

Commit 3ded4cb

Browse files
mh7dmh-at-fujitsu
andauthored
Fix bug with missing items entry (#36)
Co-authored-by: Maria Haberland <[email protected]>
1 parent 6bbd8c5 commit 3ded4cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)