Skip to content

Commit

Permalink
support allOf in parameters schema
Browse files Browse the repository at this point in the history
  • Loading branch information
romantolkachyov authored and stephenfin committed Jan 10, 2025
1 parent f8c9be4 commit ca268c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/openapi/openapi31.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _get_type_from_schema(schema):
dtype = schema["type"]
else:
dtype = set()
for t in schema["anyOf"]:
for t in schema.get("anyOf", schema.get("allOf")):
if "format" in t.keys():
dtype.add(t["format"])
else:
Expand Down

0 comments on commit ca268c3

Please sign in to comment.