diff --git a/openapidocs/mk/v3/examples.py b/openapidocs/mk/v3/examples.py index 0e9243c..a5d8cf3 100644 --- a/openapidocs/mk/v3/examples.py +++ b/openapidocs/mk/v3/examples.py @@ -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]