Skip to content

Commit 408e836

Browse files
test log
1 parent 46f534e commit 408e836

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ const RULE_NAME = 'xgen-IPA-114-error-responses-refer-to-api-error';
1818
* @param {object} context - The context object containing path and document information
1919
*/
2020
export default (input, _, { path, documentInventory }) => {
21-
try {
2221
const oas = documentInventory.unresolved;
2322
const apiResponseObject = resolveObject(oas, path);
2423
const errorCode = path[path.length - 1];
2524

25+
console.log(RULE_NAME);
26+
console.log(path);
27+
console.log(input);
28+
2629
// Check for exception at response level
2730
if (hasException(apiResponseObject, RULE_NAME)) {
2831
collectException(apiResponseObject, RULE_NAME, path);
@@ -35,13 +38,6 @@ export default (input, _, { path, documentInventory }) => {
3538
}
3639

3740
collectAdoption(path, RULE_NAME);
38-
} catch(e) {
39-
handleInternalError(RULE_NAME, path, e);
40-
console.log(e);
41-
console.log(RULE_NAME);
42-
console.log(path);
43-
}
44-
4541
};
4642

4743
function checkViolationsAndReturnErrors(apiResponseObject, oas, path, errorCode) {

0 commit comments

Comments
 (0)