-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.json
52 lines (48 loc) · 1.62 KB
/
ruleset.json
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"extends": ["spectral:oas"],
"rules": {
"no-$ref-siblings": "off",
"info-contact": "error",
"info-description": "error",
"duplicated-entry-in-enum": "error",
"operation-success-response": "error",
"operation-operationId-unique": "error",
"operation-tag-defined": "error",
"no-eval-in-markdown": "error",
"no-script-tags-in-markdown": "error",
"operation-description": "error",
"operation-operationId": "error",
"operation-operationId-valid-in-url": "error",
"operation-tags": "error",
"path-declarations-must-exist": "error",
"path-keys-no-trailing-slash": "error",
"path-not-include-query": "error",
"typed-enum": "error",
"oas3-api-servers": "error",
"oas3-examples-value-or-externalValue": "error",
"oas3-operation-security-defined": "error",
"oas3-server-trailing-slash": "error",
"oas3-unused-component": "error",
"oas2-api-host": "off",
"oas2-api-schemes": "off",
"oas2-anyOf": "error",
"oas2-discriminator": "error",
"oas2-host-trailing-slash": "error",
"oas2-oneOf": "error",
"oas2-operation-formData-consume-check": "error",
"oas2-operation-security-defined": "error",
"oas2-schema": "error",
"oas2-unused-definition": "error",
"oas2-valid-media-example": "error",
"header-required-property": {
"description": "All headers must explicitly define whether they are required.",
"message": "Header is missing 'required' property.",
"severity": "error",
"given": "$.components.headers.*",
"then": {
"field": "required",
"function": "defined"
}
}
}
}