You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `Declared path parameter "${paramName}" needs to be defined within every operation in the path (missing in ${missingStr}), or moved to the path-level parameters object`,
28
+
path: [...node.path],
29
+
level: "error",
30
+
})
31
+
}elseif(!res.found){
21
32
acc.push({
22
33
message: `Declared path parameter "${paramName}" needs to be defined as a path parameter at either the path or operation level`,
23
34
path: [...node.path],
@@ -97,31 +108,46 @@ function checkForDefinition(paramName, pathItem) {
expect(firstError.message).toEqual("Declared path parameter \"id\" needs to be defined as a path parameter at either the path or operation level")
73
+
expect(firstError.message).toEqual(`Declared path parameter \"id\" needs to be defined within every operation in the path (missing in "post", "delete"), or moved to the path-level parameters object`)
0 commit comments