-
Notifications
You must be signed in to change notification settings - Fork 4
/
spectral-api.yml
27 lines (26 loc) · 1.03 KB
/
spectral-api.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
extends:
- https://raw.githubusercontent.com/SchwarzIT/api-linter-rules/main/spectral.yml
rules:
tag-description: info # Rule enabled from spectral openapi ruleset
operation-tag-defined: off
path-must-match-api-standards: off # Rule is still under discussion and therefore disabled
servers-must-match-api-standards: off # Rule is still under discussion and therefore disabled
common-responses-unauthorized: hint
no-http-verbs-in-resources: warn
info-description: warn
contact-information: warn
must-have-path: warn
must-define-example-schema: warn
path-must-specify-tags: warn
# We do not want to hinder anyone from deploying, therefore we overwrite all default rules from spectral with a severity of error to warning
operation-operationId-unique: warn
path-params: warn
no-$ref-siblings: warn
oas2-discriminator: warn
oas2-valid-schema-example: warn
oas2-valid-media-example: warn
oas2-schema: off
oas3-valid-media-example: warn
oas3-valid-schema-example: warn
oas3-schema: off
operation-description: off