forked from goharbor/harbor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.spectral.yaml
More file actions
34 lines (28 loc) · 726 Bytes
/
.spectral.yaml
File metadata and controls
34 lines (28 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
extends: [[spectral:oas, all]]
functionsDir: "./tools/spectral/functions"
functions: [requireRequestId]
rules:
no-$ref-siblings: false
oas2-valid-schema-example: false
required-operationId:
description: must have a operationId.
given: $.paths[*][*]
severity: error
then:
field: operationId
function: truthy
camel-case-operationId:
description: should be camelCased.
type: style
given: $.paths[*][*].operationId
then:
function: casing
functionOptions:
type: camel
requestId-required:
description: must have a requestId parameters.
given: $.paths[*][*]
severity: error
then:
field: parameters
function: requireRequestId