diff --git a/tools/spectral/ipa/__tests__/eachCustomMethodMustBeGetOrPost.test.js b/tools/spectral/ipa/__tests__/eachCustomMethodMustBeGetOrPost.test.js index ec919c3e94..7fb58d3077 100644 --- a/tools/spectral/ipa/__tests__/eachCustomMethodMustBeGetOrPost.test.js +++ b/tools/spectral/ipa/__tests__/eachCustomMethodMustBeGetOrPost.test.js @@ -38,14 +38,14 @@ testRule('xgen-IPA-109-custom-method-must-be-GET-or-POST', [ get: {}, post: {}, 'x-xgen-IPA-exception': { - 'xgen-IPA-109-custom-method-must-be-GET-or-POST': {}, + 'xgen-IPA-109-custom-method-must-be-GET-or-POST': 'reason', }, }, '/d:method': { get: {}, post: {}, 'x-xgen-IPA-exception': { - 'xgen-IPA-109-custom-method-must-be-GET-or-POST': {}, + 'xgen-IPA-109-custom-method-must-be-GET-or-POST': 'reason', }, }, }, diff --git a/tools/spectral/ipa/__tests__/eachCustomMethodMustUseCamelCase.test.js b/tools/spectral/ipa/__tests__/eachCustomMethodMustUseCamelCase.test.js index 205a35d58e..a0b2f52dfa 100644 --- a/tools/spectral/ipa/__tests__/eachCustomMethodMustUseCamelCase.test.js +++ b/tools/spectral/ipa/__tests__/eachCustomMethodMustUseCamelCase.test.js @@ -18,12 +18,12 @@ testRule('xgen-IPA-109-custom-method-must-use-camel-case', [ paths: { '/b/{exampleId}:MethodName': { 'x-xgen-IPA-exception': { - 'xgen-IPA-109-custom-method-must-use-camel-case': {}, + 'xgen-IPA-109-custom-method-must-use-camel-case': 'reason', }, }, '/b:MethodName': { 'x-xgen-IPA-exception': { - 'xgen-IPA-109-custom-method-must-use-camel-case': {}, + 'xgen-IPA-109-custom-method-must-use-camel-case': 'reason', }, }, }, diff --git a/tools/spectral/ipa/__tests__/eachPathAlternatesBetweenResourceNameAndPathParam.test.js b/tools/spectral/ipa/__tests__/eachPathAlternatesBetweenResourceNameAndPathParam.test.js index 15df7bc354..d0bafeb416 100644 --- a/tools/spectral/ipa/__tests__/eachPathAlternatesBetweenResourceNameAndPathParam.test.js +++ b/tools/spectral/ipa/__tests__/eachPathAlternatesBetweenResourceNameAndPathParam.test.js @@ -140,16 +140,12 @@ testRule('xgen-IPA-102-path-alternate-resource-name-path-param', [ paths: { '/api/atlas/v2/unauth/resourceName1/resourceName2': { 'x-xgen-IPA-exception': { - 'xgen-IPA-102-path-alternate-resource-name-path-param': { - reason: 'test', - }, + 'xgen-IPA-102-path-alternate-resource-name-path-param': 'reason', }, }, '/api/atlas/v2/resourceName/{pathParam1}/{pathParam2}': { 'x-xgen-IPA-exception': { - 'xgen-IPA-102-path-alternate-resource-name-path-param': { - reason: 'test', - }, + 'xgen-IPA-102-path-alternate-resource-name-path-param': 'reason', }, }, }, diff --git a/tools/spectral/ipa/__tests__/eachResourceHasGetMethod.test.js b/tools/spectral/ipa/__tests__/eachResourceHasGetMethod.test.js index 1faa81a4e7..b7f77abc08 100644 --- a/tools/spectral/ipa/__tests__/eachResourceHasGetMethod.test.js +++ b/tools/spectral/ipa/__tests__/eachResourceHasGetMethod.test.js @@ -133,9 +133,7 @@ testRule('xgen-IPA-104-resource-has-GET', [ post: {}, get: {}, 'x-xgen-IPA-exception': { - 'xgen-IPA-104-resource-has-GET': { - reason: 'test', - }, + 'xgen-IPA-104-resource-has-GET': 'reason', }, }, '/standard/{exampleId}': {