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
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,8 @@ rules:
174
174
functionOptions:
175
175
match: "^mms(,[a-zA-Z0-9_-]+)*$"
176
176
message: "'additionalServices' must start with 'mms' and can include additional services in a comma-separated format."
177
-
no-slash-before-custom-method:
177
+
178
+
no-slash-before-custom-method:
178
179
description: "Custom methods (e.g., ':applyItem') should not be preceded by a '/'."
179
180
message: "The path '{{path}}' contains a '/' before a custom method. Custom methods should not start with a '/'."
180
181
severity: error
@@ -185,6 +186,20 @@ rules:
185
186
functionOptions:
186
187
notMatch: "/[^/]+/:[a-zA-Z]+$"
187
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
+
188
203
overrides:
189
204
- files: # load sample data has an issue with different path param names for different VERBS
0 commit comments