Skip to content

Commit 15ebace

Browse files
CLOUDP-304433: Initial Rollout for IPA validations
1 parent a260a2a commit 15ebace

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rules:
88
xgen-IPA-005-exception-extension-format:
99
description: 'IPA exception extensions must follow the correct format. http://go/ipa/5'
1010
message: '{{error}} http://go/ipa/5'
11-
severity: warn
11+
severity: error
1212
given: '$..x-xgen-IPA-exception'
1313
then:
1414
function: 'exceptionExtensionFormat'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rules:
88
xgen-IPA-102-path-alternate-resource-name-path-param:
99
description: 'Paths should alternate between resource names and path params. http://go/ipa/102'
1010
message: '{{error}} http://go/ipa/102'
11-
severity: warn
11+
severity: error
1212
given: '$.paths'
1313
then:
1414
field: '@key'

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

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

1717
xgen-IPA-109-custom-method-must-use-camel-case:
1818
description: 'The custom method must use camelCase format. http://go/ipa/109'
1919
message: '{{error}} http://go/ipa/109'
20-
severity: warn
20+
severity: error
2121
given: '$.paths[*]'
2222
then:
2323
function: 'eachCustomMethodMustUseCamelCase'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rules:
88
xgen-IPA-123-enum-values-must-be-upper-snake-case:
99
description: 'Enum values must be UPPER_SNAKE_CASE. http://go/ipa/123'
1010
message: '{{error}} http://go/ipa/123'
11-
severity: warn
11+
severity: error
1212
given: '$..enum'
1313
then:
1414
function: 'eachEnumValueMustBeUpperSnakeCase'

0 commit comments

Comments
 (0)