We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606ba61 commit a576696Copy full SHA for a576696
pccommon/pccommon/openapi.py
@@ -3,7 +3,7 @@
3
4
def recursive_itemfix(schema: Any) -> None:
5
try:
6
- if type(schema["items"]) == list:
+ if isinstance(schema["items"], list):
7
schema["items"] = schema["items"][0]
8
except KeyError:
9
pass
@@ -15,7 +15,7 @@ def recursive_itemfix(schema: Any) -> None:
15
16
17
for _, v in schema.items():
18
- if type(v) == dict:
+ if isinstance(v, dict):
19
recursive_itemfix(v)
20
21
0 commit comments