forked from openshift/assisted-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.spectral.yml
33 lines (31 loc) · 837 Bytes
/
.spectral.yml
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
extends: [[spectral:oas, all]]
rules:
info-contact: off
no-$ref-siblings: off
oas2-unused-definition: off
operation-default-response: off
operation-singular-tag: off
operation-description: error
oas2-parameter-description: error
description-start-capital-letter:
description: Description should start with a capital letter.
severity: error
type: style
formats: ["oas2"]
given: "$..parameters[?(@.in)]"
then:
field: "description"
function: pattern
functionOptions:
match: "^[A-Z]"
description-ends-with-period:
description: Description should end with a period.
severity: error
type: style
formats: ["oas2"]
given: "$..parameters[?(@.in)]"
then:
field: "description"
function: pattern
functionOptions:
match: ".+\\.$"