Skip to content

Commit 0f157b9

Browse files
committed
feat: refine OWASP lint rules
1 parent 56dcb21 commit 0f157b9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

validator/xero-spectral.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ rules:
135135
given: $.info.license # Scope: info.license field
136136
then:
137137
function: truthy # Ensure the field is truthy
138-
operation-operationId-unique: off # Disable unique operation IDs rule for now
139-
operation-parameters: off # Disable parameter validation for now
138+
139+
140+
# OWASP Rules
141+
owasp:api2:2023-no-http-basic: off # Disable HTTP Basic authentication rule
140142
owasp:api4:2023-string-limit: off # Disable string length limit checks
141143
owasp:api4:2023-array-limit: off # Disable array size limit checks
142144
owasp:api4:2023-integer-limit-legacy: off # Disable integer limit checks
143145
owasp:api4:2023-rate-limit: off # Disable rate limiting headers check
144146
owasp:api2:2023-jwt-best-practices: off # Disable JWT best practices check
145-
oas3-unused-component: off # Disable unused components rule
146-
oas3-operation-security-defined: off # Disable operation security validation
147147
owasp:api8:2023-define-error-responses-401: off # Disable missing 401 response rule
148148
owasp:api8:2023-define-error-responses-500: off # Disable missing 500 response rule
149149
owasp:api4:2023-rate-limit-responses-429: off # Disable missing 429 rate limit response rule
@@ -156,6 +156,5 @@ rules:
156156
owasp:api2:2023-short-lived-access-tokens: off # Disable short-lived access tokens rule
157157
owasp:api8:2023-define-error-validation: off # Disable missing error response validation rule
158158
operation-tag-defined: off # Disable operation tags defined in global tags rule
159-
owasp:api2:2023-no-http-basic: off # Disable HTTP Basic authentication rule
160159
owasp:api4:2023-string-restricted: off # Disable string restricted rule to address warnings
161160
path-params: off # Disable path parameter validation to address mapping key issues

0 commit comments

Comments
 (0)