Skip to content

Commit e2c4473

Browse files
fix use empty list default to empty list
Co-authored-by: Stephen Finucane <[email protected]>
1 parent ca268c3 commit e2c4473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxcontrib/openapi/openapi31.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def _get_type_from_schema(schema):
302302
dtype = schema["type"]
303303
else:
304304
dtype = set()
305-
for t in schema.get("anyOf", schema.get("allOf")):
305+
for t in schema.get("anyOf", schema.get("allOf", [])):
306306
if "format" in t.keys():
307307
dtype.add(t["format"])
308308
else:

0 commit comments

Comments
 (0)