diff --git a/tools/spectral/ipa/rulesets/IPA-005.yaml b/tools/spectral/ipa/rulesets/IPA-005.yaml index e1bb7907be..f3637dcfdc 100644 --- a/tools/spectral/ipa/rulesets/IPA-005.yaml +++ b/tools/spectral/ipa/rulesets/IPA-005.yaml @@ -8,7 +8,7 @@ rules: xgen-IPA-005-exception-extension-format: description: 'IPA exception extensions must follow the correct format. http://go/ipa/5' message: '{{error}} http://go/ipa/5' - severity: warn + severity: error given: '$..x-xgen-IPA-exception' then: function: 'exceptionExtensionFormat' diff --git a/tools/spectral/ipa/rulesets/IPA-102.yaml b/tools/spectral/ipa/rulesets/IPA-102.yaml index e2e2176137..d20a80c0ef 100644 --- a/tools/spectral/ipa/rulesets/IPA-102.yaml +++ b/tools/spectral/ipa/rulesets/IPA-102.yaml @@ -8,7 +8,7 @@ rules: xgen-IPA-102-path-alternate-resource-name-path-param: description: 'Paths should alternate between resource names and path params. http://go/ipa/102' message: '{{error}} http://go/ipa/102' - severity: warn + severity: error given: '$.paths' then: field: '@key' diff --git a/tools/spectral/ipa/rulesets/IPA-109.yaml b/tools/spectral/ipa/rulesets/IPA-109.yaml index 5d3561f386..ca2757f3da 100644 --- a/tools/spectral/ipa/rulesets/IPA-109.yaml +++ b/tools/spectral/ipa/rulesets/IPA-109.yaml @@ -9,7 +9,7 @@ rules: xgen-IPA-109-custom-method-must-be-GET-or-POST: description: 'The HTTP method for custom methods must be GET or POST. http://go/ipa/109' message: '{{error}} http://go/ipa/109' - severity: warn + severity: error given: '$.paths[*]' then: function: 'eachCustomMethodMustBeGetOrPost' @@ -17,7 +17,7 @@ rules: xgen-IPA-109-custom-method-must-use-camel-case: description: 'The custom method must use camelCase format. http://go/ipa/109' message: '{{error}} http://go/ipa/109' - severity: warn + severity: error given: '$.paths[*]' then: function: 'eachCustomMethodMustUseCamelCase' diff --git a/tools/spectral/ipa/rulesets/IPA-123.yaml b/tools/spectral/ipa/rulesets/IPA-123.yaml index 23b9c66223..ce29fe2928 100644 --- a/tools/spectral/ipa/rulesets/IPA-123.yaml +++ b/tools/spectral/ipa/rulesets/IPA-123.yaml @@ -8,7 +8,7 @@ rules: xgen-IPA-123-enum-values-must-be-upper-snake-case: description: 'Enum values must be UPPER_SNAKE_CASE. http://go/ipa/123' message: '{{error}} http://go/ipa/123' - severity: warn + severity: error given: '$..enum' then: function: 'eachEnumValueMustBeUpperSnakeCase' diff --git a/tools/spectral/ipa/rulesets/README.md b/tools/spectral/ipa/rulesets/README.md index 43f9ae370a..5d12512aee 100644 --- a/tools/spectral/ipa/rulesets/README.md +++ b/tools/spectral/ipa/rulesets/README.md @@ -14,7 +14,7 @@ For rule definitions, see [IPA-005.yaml](https://github.com/mongodb/openapi/blob | Rule Name | Description | Severity | | --------------------------------------- | ------------------------------------------------------------------------ | -------- | -| xgen-IPA-005-exception-extension-format | IPA exception extensions must follow the correct format. http://go/ipa/5 | warn | +| xgen-IPA-005-exception-extension-format | IPA exception extensions must follow the correct format. http://go/ipa/5 | error | ### IPA-102 @@ -22,7 +22,7 @@ For rule definitions, see [IPA-102.yaml](https://github.com/mongodb/openapi/blob | Rule Name | Description | Severity | | ---------------------------------------------------- | -------------------------------------------------------------------------------- | -------- | -| xgen-IPA-102-path-alternate-resource-name-path-param | Paths should alternate between resource names and path params. http://go/ipa/102 | warn | +| xgen-IPA-102-path-alternate-resource-name-path-param | Paths should alternate between resource names and path params. http://go/ipa/102 | error | ### IPA-104 @@ -48,8 +48,8 @@ For rule definitions, see [IPA-109.yaml](https://github.com/mongodb/openapi/blob | Rule Name | Description | Severity | | ---------------------------------------------- | ------------------------------------------------------------------------- | -------- | -| xgen-IPA-109-custom-method-must-be-GET-or-POST | The HTTP method for custom methods must be GET or POST. http://go/ipa/109 | warn | -| xgen-IPA-109-custom-method-must-use-camel-case | The custom method must use camelCase format. http://go/ipa/109 | warn | +| xgen-IPA-109-custom-method-must-be-GET-or-POST | The HTTP method for custom methods must be GET or POST. http://go/ipa/109 | error | +| xgen-IPA-109-custom-method-must-use-camel-case | The custom method must use camelCase format. http://go/ipa/109 | error | ### IPA-113 @@ -65,6 +65,6 @@ For rule definitions, see [IPA-123.yaml](https://github.com/mongodb/openapi/blob | Rule Name | Description | Severity | | ------------------------------------------------- | ------------------------------------------------------- | -------- | -| xgen-IPA-123-enum-values-must-be-upper-snake-case | Enum values must be UPPER_SNAKE_CASE. http://go/ipa/123 | warn | +| xgen-IPA-123-enum-values-must-be-upper-snake-case | Enum values must be UPPER_SNAKE_CASE. http://go/ipa/123 | error |