You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/spectral/.spectral.yaml
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -186,6 +186,20 @@ rules:
186
186
functionOptions:
187
187
notMatch: "/[^/]+/:[a-zA-Z]+$"
188
188
189
+
xgen-security-override:
190
+
description: "Security must not be set at resource or method level because it is set globally. Use @Unauthenticated annotation to set no security. https://go/openapi-unauthenticated-annotation"
191
+
severity: error
192
+
given: "#OperationObject.security"
193
+
then:
194
+
function: schema
195
+
functionOptions:
196
+
schema:
197
+
type: array
198
+
items:
199
+
type: object
200
+
minItems: 0
201
+
maxItems: 0
202
+
189
203
overrides:
190
204
- files: # load sample data has an issue with different path param names for different VERBS
0 commit comments