Skip to content

Commit 77cbbf7

Browse files
1 parent 54519bc commit 77cbbf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/spectral/ipa/rulesets/functions/listMethodResponseIsGetMethodResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default (input, _, { path, documentInventory }) => {
3434
}
3535

3636
// Ignore if the List method does not have a response schema
37-
const listMethodResponse = oas.paths[resourcePath].get.responses['200'].content[mediaType];
37+
const listMethodResponse = resolveObject(oas, path);
3838

3939
if (!listMethodResponse || !listMethodResponse.schema) {
4040
return;

0 commit comments

Comments
 (0)