Skip to content

Commit a485904

Browse files
prettier fix
1 parent 439edfc commit a485904

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/spectral/ipa/__tests__/eachCustomMethodMustBeGetOrPost.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ testRule('xgen-IPA-109-custom-method-must-be-GET-or-POST', [
2020
},
2121
'/c/{exampleId}:method': {
2222
get: {},
23-
'x-xgen-IPA-exception': {}
23+
'x-xgen-IPA-exception': {},
2424
},
2525
'/c:method': {
2626
get: {},
27-
'x-xgen-IPA-exception': {}
27+
'x-xgen-IPA-exception': {},
2828
},
2929
},
3030
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ rules:
99
description: 'The HTTP method for custom methods must be GET or POST. http://go/ipa/109'
1010
message: '{{error}} http://go/ipa/109'
1111
severity: warn
12-
given: "$.paths[*]"
12+
given: '$.paths[*]'
1313
then:
1414
function: 'eachCustomMethodMustBeGetOrPost'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default (input, opts, { path }) => {
1313

1414
//Exclude exception extension key
1515
let keys = Object.keys(input);
16-
const httpMethods = keys.filter(key => key !== EXCEPTION_EXTENSION_KEY);
16+
const httpMethods = keys.filter((key) => key !== EXCEPTION_EXTENSION_KEY);
1717

1818
// Check for invalid methods
1919
if (httpMethods.some((method) => !VALID_METHODS.includes(method))) {

0 commit comments

Comments
 (0)