We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7330fbf commit 178461aCopy full SHA for 178461a
1 file changed
tests/petstorev3_test.py
@@ -82,6 +82,14 @@ def goodPet(i):
82
if (c := i.get("category", None)) is None or not isinstance(c, dict):
83
i["category"] = dict(id=0, name="default")
84
85
+ if (c := i.get("tags", None)) is None or not isinstance(c, list):
86
+ i["tags"] = []
87
+ else:
88
+ for t in c:
89
+ if not isinstance(t, dict) or not set(t.keys()) == frozenset(["id", "name"]):
90
91
+ break
92
+
93
Pet = self.api.resolve_jr(self.api._root, None, Reference(**{"$ref": "#/components/schemas/Pet"}))
94
95
if ctx.operationId == "getPetById":
0 commit comments