Skip to content

Commit ca268c3

Browse files
romantolkachyovstephenfin
authored andcommitted
support allOf in parameters schema
1 parent f8c9be4 commit ca268c3

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["anyOf"]:
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)