Skip to content

Commit 389cb6d

Browse files
CLOUDP-274986: Remove validation for security on each operation
1 parent 0290379 commit 389cb6d

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

tools/spectral/.spectral.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ rules:
7373
functionOptions:
7474
notMatch: "/^body$/"
7575

76-
xgen-no-security:
77-
description: "Operation MUST have security definition"
78-
severity: error
79-
given: "#OperationObject"
80-
then:
81-
field: "security"
82-
function: truthy
83-
8476
xgen-docs-tags-alphabetical:
8577
message: "Tags should be defined in alphabetical order."
8678
description: "Many documentation tools show tags in the order they are defined, so defining them not in alphabetical order can look funny to API consumers."
@@ -182,7 +174,8 @@ rules:
182174
functionOptions:
183175
match: "^(mms)$"
184176
message: "'additionalServices' must be 'mms' as no other services are supported."
185-
no-slash-before-custom-method:
177+
178+
no-slash-before-custom-method:
186179
description: "Custom methods (e.g., ':applyItem') should not be preceded by a '/'."
187180
message: "The path '{{path}}' contains a '/' before a custom method. Custom methods should not start with a '/'."
188181
severity: error
@@ -241,11 +234,6 @@ overrides:
241234
- "*.yaml#/components/schemas/ClusterProviderSettings/properties/providerName" # dynamic field which can't be documented
242235
rules:
243236
xgen-description: "off"
244-
- files:
245-
- "*.yaml#/paths/~1api~1atlas~1v2~1unauth~1controlPlaneIPAddresses/get"
246-
- "*.yaml#/paths/~1api~1atlas~1v2~1unauth~1openapi~1versions/get"
247-
rules:
248-
xgen-no-security: "off"
249237
- files:
250238
- "**#/components/schemas/ApiError/properties/parameters" # see https://github.com/stoplightio/spectral/issues/2592
251239
rules:

0 commit comments

Comments
 (0)