Skip to content

Commit 00cec89

Browse files
test commit
1 parent 3109eb0 commit 00cec89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ function checkViolationsAndReturnErrors(apiResponseObject, oas, path, errorCode)
4545
content = apiResponseObject.content;
4646
} else if (apiResponseObject.$ref) {
4747
const schemaName = getSchemaNameFromRef(apiResponseObject.$ref);
48-
console.log(schemaName);
49-
//const responseSchema = resolveObject(oas, ['components', 'responses', schemaName]);
50-
//content = responseSchema.content;
48+
const responseSchema = resolveObject(oas, ['components', 'responses', schemaName]);
49+
content = responseSchema.content;
50+
console.log(responseSchema);
5151
} else {
5252
return [{ path, message: `${errorCode} response must define content with ApiError schema reference.` }];
5353
}

0 commit comments

Comments
 (0)