Skip to content

Commit 1ef4aca

Browse files
test commit
1 parent c78da4c commit 1ef4aca

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tools/spectral/ipa/rulesets/IPA-114.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ rules:
1414
This rule checks that all 4xx and 5xx error responses reference the ApiError schema.
1515
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-114-error-responses-refer-to-api-error'
1616
severity: warn
17-
resolved: false
1817
given: '$.paths[*][*].responses[?(@property.match(/^[45]\d\d$/))]'
1918
then:
2019
function: 'IPA114ErrorResponsesReferToApiError'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function checkViolationsAndReturnErrors(apiResponseObject, oas, path, errorCode,
5555
content = responseSchema.content;
5656
} else {
5757
console.log(ref);
58-
console.log(resolvedOas[ref]);
58+
console.log(resolvedOas);
5959
}
6060

6161
} else {

0 commit comments

Comments
 (0)