@redocly/openapi-core 1.25.15 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/__tests__/utils.ts +0 -3
  3. package/lib/bundle.js +3 -3
  4. package/lib/config/all.js +130 -48
  5. package/lib/config/builtIn.d.ts +1 -1
  6. package/lib/config/builtIn.js +5 -3
  7. package/lib/config/config-resolvers.js +9 -9
  8. package/lib/config/config.d.ts +2 -2
  9. package/lib/config/config.js +38 -20
  10. package/lib/config/minimal.js +125 -49
  11. package/lib/config/recommended-strict.js +124 -48
  12. package/lib/config/recommended.js +123 -47
  13. package/lib/config/rules.d.ts +2 -2
  14. package/lib/config/spec.d.ts +3 -0
  15. package/lib/config/spec.js +31 -0
  16. package/lib/config/types.d.ts +23 -23
  17. package/lib/config/utils.d.ts +1 -1
  18. package/lib/config/utils.js +33 -23
  19. package/lib/index.d.ts +1 -1
  20. package/lib/index.js +2 -2
  21. package/lib/lint.js +3 -3
  22. package/lib/oas-types.d.ts +11 -11
  23. package/lib/oas-types.js +6 -6
  24. package/lib/rules/arazzo/criteria-unique.d.ts +2 -2
  25. package/lib/rules/arazzo/index.d.ts +2 -2
  26. package/lib/rules/arazzo/index.js +6 -4
  27. package/lib/rules/arazzo/parameters-unique.d.ts +2 -2
  28. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +2 -2
  29. package/lib/rules/arazzo/sourceDescription-type.d.ts +2 -0
  30. package/lib/rules/arazzo/{source-description-type.js → sourceDescription-type.js} +5 -3
  31. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +2 -2
  32. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +2 -0
  33. package/lib/rules/arazzo/sourceDescriptions-not-empty.js +18 -0
  34. package/lib/rules/arazzo/step-onFailure-unique.d.ts +2 -2
  35. package/lib/rules/arazzo/step-onSuccess-unique.d.ts +2 -2
  36. package/lib/rules/arazzo/stepId-unique.d.ts +2 -2
  37. package/lib/rules/arazzo/workflow-dependsOn.d.ts +2 -2
  38. package/lib/rules/arazzo/workflowId-unique.d.ts +2 -2
  39. package/lib/rules/async2/index.js +5 -2
  40. package/lib/rules/async3/index.js +5 -2
  41. package/lib/rules/common/assertions/index.d.ts +2 -2
  42. package/lib/rules/common/struct.d.ts +2 -0
  43. package/lib/rules/common/{spec.js → struct.js} +3 -3
  44. package/lib/rules/oas2/index.js +5 -2
  45. package/lib/rules/oas3/index.js +5 -2
  46. package/lib/rules/spot/no-actions-type-end.d.ts +2 -2
  47. package/lib/rules/spot/no-criteria-xpath.d.ts +2 -2
  48. package/lib/rules/spot/parameters-not-in-body.d.ts +2 -2
  49. package/lib/rules/spot/version-enum.d.ts +2 -2
  50. package/lib/types/arazzo.d.ts +1 -1
  51. package/lib/types/arazzo.js +3 -16
  52. package/lib/types/redocly-yaml.d.ts +6 -8
  53. package/lib/types/redocly-yaml.js +47 -12
  54. package/lib/typings/arazzo.d.ts +1 -6
  55. package/lib/utils.d.ts +1 -1
  56. package/lib/utils.js +3 -2
  57. package/lib/visitors.d.ts +5 -6
  58. package/package.json +1 -1
  59. package/src/__tests__/lint.test.ts +3 -3
  60. package/src/bundle.ts +3 -3
  61. package/src/config/__tests__/__snapshots__/config-resolvers.test.ts.snap +228 -70
  62. package/src/config/__tests__/__snapshots__/config.test.ts.snap +16 -3
  63. package/src/config/__tests__/config-resolvers.test.ts +14 -2
  64. package/src/config/__tests__/config.test.ts +11 -6
  65. package/src/config/all.ts +130 -48
  66. package/src/config/builtIn.ts +10 -8
  67. package/src/config/config-resolvers.ts +9 -9
  68. package/src/config/config.ts +46 -22
  69. package/src/config/minimal.ts +125 -49
  70. package/src/config/recommended-strict.ts +124 -48
  71. package/src/config/recommended.ts +123 -47
  72. package/src/config/rules.ts +2 -2
  73. package/src/config/spec.ts +32 -0
  74. package/src/config/types.ts +27 -33
  75. package/src/config/utils.ts +38 -26
  76. package/src/index.ts +1 -1
  77. package/src/lint.ts +6 -6
  78. package/src/oas-types.ts +19 -20
  79. package/src/rules/arazzo/__tests__/criteria-unique.test.ts +1 -2
  80. package/src/rules/arazzo/__tests__/no-actions-type-end.test.ts +1 -2
  81. package/src/rules/arazzo/__tests__/no-criteria-xpath.test.ts +1 -2
  82. package/src/rules/arazzo/__tests__/parameters-not-in-body.test.ts +1 -2
  83. package/src/rules/arazzo/__tests__/parameters-unique.test.ts +1 -2
  84. package/src/rules/arazzo/__tests__/requestBody-replacements-unique.test.ts +1 -2
  85. package/src/rules/arazzo/__tests__/source-description-type.test.ts +2 -4
  86. package/src/rules/arazzo/__tests__/sourceDescription-name-unique.test.ts +1 -2
  87. package/src/rules/arazzo/__tests__/sourceDescriptions-not-empty.test.ts +104 -0
  88. package/src/rules/arazzo/__tests__/step-onFailure-unique.test.ts +1 -2
  89. package/src/rules/arazzo/__tests__/step-onSuccess-unique.test.ts +1 -2
  90. package/src/rules/arazzo/__tests__/stepId-unique.test.ts +1 -2
  91. package/src/rules/arazzo/__tests__/version-enum.test.ts +1 -2
  92. package/src/rules/arazzo/__tests__/workflow-dependsOn.test.ts +3 -6
  93. package/src/rules/arazzo/__tests__/workflowId-unique.test.ts +2 -4
  94. package/src/rules/arazzo/criteria-unique.ts +2 -2
  95. package/src/rules/arazzo/index.ts +23 -21
  96. package/src/rules/arazzo/parameters-unique.ts +2 -2
  97. package/src/rules/arazzo/requestBody-replacements-unique.ts +2 -2
  98. package/src/rules/arazzo/{source-description-type.ts → sourceDescription-type.ts} +6 -5
  99. package/src/rules/arazzo/sourceDescriptions-name-unique.ts +2 -2
  100. package/src/rules/arazzo/sourceDescriptions-not-empty.ts +17 -0
  101. package/src/rules/arazzo/step-onFailure-unique.ts +2 -2
  102. package/src/rules/arazzo/step-onSuccess-unique.ts +2 -2
  103. package/src/rules/arazzo/stepId-unique.ts +2 -2
  104. package/src/rules/arazzo/workflow-dependsOn.ts +2 -2
  105. package/src/rules/arazzo/workflowId-unique.ts +2 -2
  106. package/src/rules/async2/index.ts +5 -2
  107. package/src/rules/async3/index.ts +5 -2
  108. package/src/rules/common/__tests__/no-enum-type-mismatch.test.ts +1 -1
  109. package/src/rules/common/__tests__/{spec.test.ts → struct.test.ts} +35 -35
  110. package/src/rules/common/assertions/index.ts +2 -2
  111. package/src/rules/common/{spec.ts → struct.ts} +2 -2
  112. package/src/rules/oas2/index.ts +5 -2
  113. package/src/rules/oas3/__tests__/spec/spec.test.ts +10 -10
  114. package/src/rules/oas3/index.ts +5 -2
  115. package/src/rules/spot/no-actions-type-end.ts +2 -2
  116. package/src/rules/spot/no-criteria-xpath.ts +2 -2
  117. package/src/rules/spot/parameters-not-in-body.ts +2 -2
  118. package/src/rules/spot/version-enum.ts +2 -2
  119. package/src/types/arazzo.ts +2 -14
  120. package/src/types/redocly-yaml.ts +48 -16
  121. package/src/typings/arazzo.ts +1 -10
  122. package/src/utils.ts +4 -2
  123. package/src/visitors.ts +4 -6
  124. package/tsconfig.tsbuildinfo +1 -1
  125. package/lib/rules/arazzo/source-description-type.d.ts +0 -2
  126. package/lib/rules/common/spec.d.ts +0 -2
@@ -2,54 +2,70 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const minimal = {
4
4
  rules: {
5
+ struct: 'error',
6
+ },
7
+ oas2Rules: {
8
+ 'boolean-parameter-prefixes': 'off',
5
9
  'info-contact': 'off',
6
10
  'info-license': 'off',
7
11
  'info-license-url': 'off',
8
12
  'info-license-strict': 'off',
9
- 'tag-description': 'warn',
10
- 'tags-alphabetical': 'off',
11
- 'parameter-description': 'off',
12
13
  'no-path-trailing-slash': 'warn',
13
14
  'no-identical-paths': 'warn',
14
15
  'no-ambiguous-paths': 'warn',
15
- 'path-declaration-must-exist': 'warn',
16
- 'path-not-include-query': 'warn',
17
- 'path-parameters-defined': 'warn',
16
+ 'no-invalid-schema-examples': 'off',
17
+ 'no-invalid-parameter-examples': 'off',
18
+ 'no-http-verbs-in-paths': 'off',
19
+ 'no-enum-type-mismatch': 'warn',
20
+ 'no-unresolved-refs': 'error',
21
+ 'no-required-schema-properties-undefined': 'off',
22
+ 'operation-summary': 'warn',
23
+ 'operation-operationId': 'warn',
24
+ 'operation-operationId-unique': 'warn',
25
+ 'operation-operationId-url-safe': 'warn',
18
26
  'operation-description': 'off',
19
27
  'operation-2xx-response': 'warn',
20
28
  'operation-4xx-response': 'off',
21
- 'operation-operationId': 'warn',
22
- 'operation-summary': 'warn',
23
- 'operation-operationId-unique': 'warn',
24
29
  'operation-parameters-unique': 'warn',
25
30
  'operation-tag-defined': 'off',
26
- 'security-defined': 'warn',
27
- 'operation-operationId-url-safe': 'warn',
28
31
  'operation-singular-tag': 'off',
29
- 'no-unresolved-refs': 'error',
30
- 'no-enum-type-mismatch': 'warn',
32
+ 'parameter-description': 'off',
33
+ 'path-declaration-must-exist': 'warn',
34
+ 'path-not-include-query': 'warn',
35
+ 'path-parameters-defined': 'warn',
31
36
  'paths-kebab-case': 'off',
32
- spec: 'error',
33
- 'spec-strict-refs': 'off',
34
- 'no-http-verbs-in-paths': 'off',
35
- 'no-invalid-parameter-examples': 'off',
36
- 'no-invalid-schema-examples': 'off',
37
37
  'path-excludes-patterns': 'off',
38
38
  'path-http-verbs-order': 'off',
39
39
  'path-params-defined': 'off',
40
+ 'path-segment-plural': 'off',
40
41
  'required-string-property-missing-min-length': 'off',
41
42
  'response-contains-header': 'off',
42
- 'path-segment-plural': 'off',
43
- 'scalar-property-missing-example': 'off',
44
- 'no-required-schema-properties-undefined': 'off',
45
- },
46
- oas2Rules: {
47
- 'boolean-parameter-prefixes': 'off',
48
43
  'request-mime-type': 'off',
49
44
  'response-contains-property': 'off',
50
45
  'response-mime-type': 'off',
46
+ 'security-defined': 'warn',
47
+ 'spec-strict-refs': 'off',
48
+ 'scalar-property-missing-example': 'off',
49
+ 'tag-description': 'warn',
50
+ 'tags-alphabetical': 'off',
51
51
  },
52
52
  oas3_0Rules: {
53
+ 'array-parameter-serialization': 'off',
54
+ 'boolean-parameter-prefixes': 'off',
55
+ 'component-name-unique': 'off',
56
+ 'info-contact': 'off',
57
+ 'info-license': 'off',
58
+ 'info-license-url': 'off',
59
+ 'info-license-strict': 'off',
60
+ 'no-ambiguous-paths': 'warn',
61
+ 'no-path-trailing-slash': 'warn',
62
+ 'no-identical-paths': 'warn',
63
+ 'no-invalid-schema-examples': 'off',
64
+ 'no-invalid-parameter-examples': 'off',
65
+ 'no-http-verbs-in-paths': 'off',
66
+ 'no-enum-type-mismatch': 'warn',
67
+ 'no-unresolved-refs': 'error',
68
+ 'no-required-schema-properties-undefined': 'off',
53
69
  'no-invalid-media-type-examples': {
54
70
  severity: 'warn',
55
71
  allowAdditionalProperties: false,
@@ -61,16 +77,55 @@ const minimal = {
61
77
  'no-unused-components': 'warn',
62
78
  'no-undefined-server-variable': 'warn',
63
79
  'no-server-variables-empty-enum': 'error',
64
- 'spec-components-invalid-map-name': 'warn',
65
- 'boolean-parameter-prefixes': 'off',
66
- 'component-name-unique': 'off',
80
+ 'operation-summary': 'warn',
81
+ 'operation-operationId': 'warn',
82
+ 'operation-operationId-unique': 'warn',
83
+ 'operation-operationId-url-safe': 'warn',
84
+ 'operation-description': 'off',
85
+ 'operation-2xx-response': 'warn',
86
+ 'operation-4xx-response': 'off',
67
87
  'operation-4xx-problem-details-rfc7807': 'off',
88
+ 'operation-parameters-unique': 'warn',
89
+ 'operation-tag-defined': 'off',
90
+ 'operation-singular-tag': 'off',
91
+ 'parameter-description': 'off',
92
+ 'path-declaration-must-exist': 'warn',
93
+ 'path-not-include-query': 'warn',
94
+ 'path-parameters-defined': 'warn',
95
+ 'paths-kebab-case': 'off',
96
+ 'path-excludes-patterns': 'off',
97
+ 'path-http-verbs-order': 'off',
98
+ 'path-params-defined': 'off',
99
+ 'path-segment-plural': 'off',
100
+ 'required-string-property-missing-min-length': 'off',
101
+ 'response-contains-header': 'off',
68
102
  'request-mime-type': 'off',
69
103
  'response-contains-property': 'off',
70
104
  'response-mime-type': 'off',
71
- 'array-parameter-serialization': 'off',
105
+ 'security-defined': 'warn',
106
+ 'spec-strict-refs': 'off',
107
+ 'scalar-property-missing-example': 'off',
108
+ 'spec-components-invalid-map-name': 'warn',
109
+ 'tag-description': 'warn',
110
+ 'tags-alphabetical': 'off',
72
111
  },
73
112
  oas3_1Rules: {
113
+ 'array-parameter-serialization': 'off',
114
+ 'boolean-parameter-prefixes': 'off',
115
+ 'component-name-unique': 'off',
116
+ 'info-contact': 'off',
117
+ 'info-license': 'off',
118
+ 'info-license-url': 'off',
119
+ 'info-license-strict': 'off',
120
+ 'no-path-trailing-slash': 'warn',
121
+ 'no-identical-paths': 'warn',
122
+ 'no-ambiguous-paths': 'warn',
123
+ 'no-invalid-schema-examples': 'off',
124
+ 'no-invalid-parameter-examples': 'off',
125
+ 'no-http-verbs-in-paths': 'off',
126
+ 'no-enum-type-mismatch': 'warn',
127
+ 'no-unresolved-refs': 'error',
128
+ 'no-required-schema-properties-undefined': 'off',
74
129
  'no-invalid-media-type-examples': 'warn',
75
130
  'no-server-example.com': 'warn',
76
131
  'no-server-trailing-slash': 'error',
@@ -79,51 +134,72 @@ const minimal = {
79
134
  'no-unused-components': 'warn',
80
135
  'no-undefined-server-variable': 'warn',
81
136
  'no-server-variables-empty-enum': 'error',
82
- 'spec-components-invalid-map-name': 'warn',
83
- 'boolean-parameter-prefixes': 'off',
84
- 'component-name-unique': 'off',
137
+ 'operation-summary': 'warn',
138
+ 'operation-operationId': 'warn',
139
+ 'operation-operationId-unique': 'warn',
140
+ 'operation-operationId-url-safe': 'warn',
141
+ 'operation-description': 'off',
142
+ 'operation-2xx-response': 'warn',
143
+ 'operation-4xx-response': 'off',
85
144
  'operation-4xx-problem-details-rfc7807': 'off',
145
+ 'operation-parameters-unique': 'warn',
146
+ 'operation-tag-defined': 'off',
147
+ 'operation-singular-tag': 'off',
148
+ 'parameter-description': 'off',
149
+ 'path-declaration-must-exist': 'warn',
150
+ 'path-not-include-query': 'warn',
151
+ 'path-parameters-defined': 'warn',
152
+ 'paths-kebab-case': 'off',
153
+ 'path-excludes-patterns': 'off',
154
+ 'path-http-verbs-order': 'off',
155
+ 'path-params-defined': 'off',
156
+ 'path-segment-plural': 'off',
157
+ 'required-string-property-missing-min-length': 'off',
158
+ 'response-contains-header': 'off',
86
159
  'request-mime-type': 'off',
87
160
  'response-contains-property': 'off',
88
161
  'response-mime-type': 'off',
89
- 'array-parameter-serialization': 'off',
162
+ 'security-defined': 'warn',
163
+ 'spec-strict-refs': 'off',
164
+ 'scalar-property-missing-example': 'off',
165
+ 'spec-components-invalid-map-name': 'warn',
166
+ 'tag-description': 'warn',
167
+ 'tags-alphabetical': 'off',
90
168
  },
91
169
  async2Rules: {
92
- spec: 'error',
170
+ 'channels-kebab-case': 'off',
93
171
  'info-contact': 'off',
94
172
  'info-license-strict': 'off',
173
+ 'no-channel-trailing-slash': 'off',
95
174
  'operation-operationId': 'warn',
96
175
  'tag-description': 'warn',
97
176
  'tags-alphabetical': 'off',
98
- 'channels-kebab-case': 'off',
99
- 'no-channel-trailing-slash': 'off',
100
177
  },
101
178
  async3Rules: {
102
- spec: 'error',
179
+ 'channels-kebab-case': 'off',
103
180
  'info-contact': 'off',
104
181
  'info-license-strict': 'off',
182
+ 'no-channel-trailing-slash': 'off',
105
183
  'operation-operationId': 'warn',
106
184
  'tag-description': 'warn',
107
185
  'tags-alphabetical': 'off',
108
- 'channels-kebab-case': 'off',
109
- 'no-channel-trailing-slash': 'off',
110
186
  },
111
- arazzoRules: {
112
- spec: 'error',
187
+ arazzo1Rules: {
188
+ 'criteria-unique': 'off',
189
+ 'no-criteria-xpath': 'off',
190
+ 'no-actions-type-end': 'off',
113
191
  'parameters-not-in-body': 'off',
192
+ 'parameters-unique': 'off',
193
+ 'requestBody-replacements-unique': 'off',
114
194
  'sourceDescription-type': 'off',
115
- 'version-enum': 'warn',
116
- 'workflowId-unique': 'error',
195
+ 'sourceDescriptions-not-empty': 'off',
196
+ 'step-onSuccess-unique': 'off',
197
+ 'step-onFailure-unique': 'off',
117
198
  'stepId-unique': 'error',
118
199
  'sourceDescription-name-unique': 'off',
200
+ 'version-enum': 'off',
201
+ 'workflowId-unique': 'error',
119
202
  'workflow-dependsOn': 'off',
120
- 'parameters-unique': 'off',
121
- 'step-onSuccess-unique': 'off',
122
- 'step-onFailure-unique': 'off',
123
- 'requestBody-replacements-unique': 'off',
124
- 'no-criteria-xpath': 'off',
125
- 'no-actions-type-end': 'off',
126
- 'criteria-unique': 'off',
127
203
  },
128
204
  };
129
205
  exports.default = minimal;
@@ -2,54 +2,70 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const recommendedStrict = {
4
4
  rules: {
5
+ struct: 'error',
6
+ },
7
+ oas2Rules: {
8
+ 'boolean-parameter-prefixes': 'off',
5
9
  'info-contact': 'off',
6
10
  'info-license': 'error',
7
11
  'info-license-url': 'off',
8
12
  'info-license-strict': 'error',
9
- 'tag-description': 'error',
10
- 'tags-alphabetical': 'off',
11
- 'parameter-description': 'off',
12
13
  'no-path-trailing-slash': 'error',
13
14
  'no-identical-paths': 'error',
14
15
  'no-ambiguous-paths': 'error',
15
- 'path-declaration-must-exist': 'error',
16
- 'path-not-include-query': 'error',
17
- 'path-parameters-defined': 'error',
18
- 'operation-description': 'off',
19
- 'operation-2xx-response': 'error',
20
- 'operation-4xx-response': 'error',
21
- 'operation-operationId': 'error',
16
+ 'no-invalid-schema-examples': 'off',
17
+ 'no-invalid-parameter-examples': 'off',
18
+ 'no-http-verbs-in-paths': 'off',
19
+ 'no-enum-type-mismatch': 'error',
20
+ 'no-unresolved-refs': 'error',
21
+ 'no-required-schema-properties-undefined': 'off',
22
22
  'operation-summary': 'error',
23
+ 'operation-operationId': 'error',
23
24
  'operation-operationId-unique': 'error',
24
25
  'operation-operationId-url-safe': 'error',
26
+ 'operation-description': 'off',
27
+ 'operation-2xx-response': 'error',
28
+ 'operation-4xx-response': 'error',
25
29
  'operation-parameters-unique': 'error',
26
30
  'operation-tag-defined': 'off',
27
- 'security-defined': 'error',
28
31
  'operation-singular-tag': 'off',
29
- 'no-unresolved-refs': 'error',
30
- 'no-enum-type-mismatch': 'error',
32
+ 'parameter-description': 'off',
33
+ 'path-declaration-must-exist': 'error',
34
+ 'path-not-include-query': 'error',
35
+ 'path-parameters-defined': 'error',
31
36
  'paths-kebab-case': 'off',
32
- spec: 'error',
33
- 'spec-strict-refs': 'off',
34
- 'no-http-verbs-in-paths': 'off',
35
- 'no-invalid-parameter-examples': 'off',
36
- 'no-invalid-schema-examples': 'off',
37
37
  'path-excludes-patterns': 'off',
38
38
  'path-http-verbs-order': 'off',
39
39
  'path-params-defined': 'off',
40
40
  'path-segment-plural': 'off',
41
41
  'required-string-property-missing-min-length': 'off',
42
42
  'response-contains-header': 'off',
43
- 'scalar-property-missing-example': 'off',
44
- 'no-required-schema-properties-undefined': 'off',
45
- },
46
- oas2Rules: {
47
- 'boolean-parameter-prefixes': 'off',
48
43
  'request-mime-type': 'off',
49
44
  'response-contains-property': 'off',
50
45
  'response-mime-type': 'off',
46
+ 'security-defined': 'error',
47
+ 'spec-strict-refs': 'off',
48
+ 'scalar-property-missing-example': 'off',
49
+ 'tag-description': 'error',
50
+ 'tags-alphabetical': 'off',
51
51
  },
52
52
  oas3_0Rules: {
53
+ 'array-parameter-serialization': 'off',
54
+ 'boolean-parameter-prefixes': 'off',
55
+ 'component-name-unique': 'off',
56
+ 'info-contact': 'off',
57
+ 'info-license': 'error',
58
+ 'info-license-url': 'off',
59
+ 'info-license-strict': 'error',
60
+ 'no-path-trailing-slash': 'error',
61
+ 'no-identical-paths': 'error',
62
+ 'no-ambiguous-paths': 'error',
63
+ 'no-invalid-schema-examples': 'off',
64
+ 'no-invalid-parameter-examples': 'off',
65
+ 'no-http-verbs-in-paths': 'off',
66
+ 'no-enum-type-mismatch': 'error',
67
+ 'no-unresolved-refs': 'error',
68
+ 'no-required-schema-properties-undefined': 'off',
53
69
  'no-invalid-media-type-examples': {
54
70
  severity: 'error',
55
71
  allowAdditionalProperties: false,
@@ -61,16 +77,55 @@ const recommendedStrict = {
61
77
  'no-unused-components': 'error',
62
78
  'no-undefined-server-variable': 'error',
63
79
  'no-server-variables-empty-enum': 'error',
64
- 'spec-components-invalid-map-name': 'error',
65
- 'boolean-parameter-prefixes': 'off',
66
- 'component-name-unique': 'off',
80
+ 'operation-summary': 'error',
81
+ 'operation-operationId': 'error',
82
+ 'operation-operationId-unique': 'error',
83
+ 'operation-operationId-url-safe': 'error',
84
+ 'operation-description': 'off',
85
+ 'operation-2xx-response': 'error',
86
+ 'operation-4xx-response': 'error',
67
87
  'operation-4xx-problem-details-rfc7807': 'off',
88
+ 'operation-parameters-unique': 'error',
89
+ 'operation-tag-defined': 'off',
90
+ 'operation-singular-tag': 'off',
91
+ 'parameter-description': 'off',
92
+ 'path-declaration-must-exist': 'error',
93
+ 'path-not-include-query': 'error',
94
+ 'path-parameters-defined': 'error',
95
+ 'paths-kebab-case': 'off',
96
+ 'path-excludes-patterns': 'off',
97
+ 'path-http-verbs-order': 'off',
98
+ 'path-params-defined': 'off',
99
+ 'path-segment-plural': 'off',
100
+ 'required-string-property-missing-min-length': 'off',
101
+ 'response-contains-header': 'off',
68
102
  'request-mime-type': 'off',
69
103
  'response-contains-property': 'off',
70
104
  'response-mime-type': 'off',
71
- 'array-parameter-serialization': 'off',
105
+ 'security-defined': 'error',
106
+ 'spec-strict-refs': 'off',
107
+ 'scalar-property-missing-example': 'off',
108
+ 'spec-components-invalid-map-name': 'error',
109
+ 'tag-description': 'error',
110
+ 'tags-alphabetical': 'off',
72
111
  },
73
112
  oas3_1Rules: {
113
+ 'array-parameter-serialization': 'off',
114
+ 'boolean-parameter-prefixes': 'off',
115
+ 'component-name-unique': 'off',
116
+ 'info-contact': 'off',
117
+ 'info-license': 'error',
118
+ 'info-license-url': 'off',
119
+ 'info-license-strict': 'error',
120
+ 'no-path-trailing-slash': 'error',
121
+ 'no-identical-paths': 'error',
122
+ 'no-ambiguous-paths': 'error',
123
+ 'no-invalid-schema-examples': 'off',
124
+ 'no-invalid-parameter-examples': 'off',
125
+ 'no-http-verbs-in-paths': 'off',
126
+ 'no-enum-type-mismatch': 'error',
127
+ 'no-unresolved-refs': 'error',
128
+ 'no-required-schema-properties-undefined': 'off',
74
129
  'no-invalid-media-type-examples': 'error',
75
130
  'no-server-example.com': 'error',
76
131
  'no-server-trailing-slash': 'error',
@@ -79,51 +134,72 @@ const recommendedStrict = {
79
134
  'no-unused-components': 'error',
80
135
  'no-undefined-server-variable': 'error',
81
136
  'no-server-variables-empty-enum': 'error',
82
- 'spec-components-invalid-map-name': 'error',
83
- 'boolean-parameter-prefixes': 'off',
84
- 'component-name-unique': 'off',
137
+ 'operation-summary': 'error',
138
+ 'operation-operationId': 'error',
139
+ 'operation-operationId-unique': 'error',
140
+ 'operation-operationId-url-safe': 'error',
141
+ 'operation-description': 'off',
142
+ 'operation-2xx-response': 'error',
143
+ 'operation-4xx-response': 'error',
85
144
  'operation-4xx-problem-details-rfc7807': 'off',
145
+ 'operation-parameters-unique': 'error',
146
+ 'operation-tag-defined': 'off',
147
+ 'operation-singular-tag': 'off',
148
+ 'parameter-description': 'off',
149
+ 'path-declaration-must-exist': 'error',
150
+ 'path-not-include-query': 'error',
151
+ 'path-parameters-defined': 'error',
152
+ 'paths-kebab-case': 'off',
153
+ 'path-excludes-patterns': 'off',
154
+ 'path-http-verbs-order': 'off',
155
+ 'path-params-defined': 'off',
156
+ 'path-segment-plural': 'off',
157
+ 'required-string-property-missing-min-length': 'off',
158
+ 'response-contains-header': 'off',
86
159
  'request-mime-type': 'off',
87
160
  'response-contains-property': 'off',
88
161
  'response-mime-type': 'off',
89
- 'array-parameter-serialization': 'off',
162
+ 'security-defined': 'error',
163
+ 'spec-strict-refs': 'off',
164
+ 'scalar-property-missing-example': 'off',
165
+ 'spec-components-invalid-map-name': 'error',
166
+ 'tag-description': 'error',
167
+ 'tags-alphabetical': 'off',
90
168
  },
91
169
  async2Rules: {
92
- spec: 'error',
170
+ 'channels-kebab-case': 'off',
93
171
  'info-contact': 'off',
94
172
  'info-license-strict': 'error',
173
+ 'no-channel-trailing-slash': 'off',
95
174
  'operation-operationId': 'error',
96
175
  'tag-description': 'error',
97
176
  'tags-alphabetical': 'off',
98
- 'channels-kebab-case': 'off',
99
- 'no-channel-trailing-slash': 'off',
100
177
  },
101
178
  async3Rules: {
102
- spec: 'error',
179
+ 'channels-kebab-case': 'off',
103
180
  'info-contact': 'off',
104
181
  'info-license-strict': 'error',
182
+ 'no-channel-trailing-slash': 'off',
105
183
  'operation-operationId': 'error',
106
184
  'tag-description': 'error',
107
185
  'tags-alphabetical': 'off',
108
- 'channels-kebab-case': 'off',
109
- 'no-channel-trailing-slash': 'off',
110
186
  },
111
- arazzoRules: {
112
- spec: 'error',
187
+ arazzo1Rules: {
188
+ 'criteria-unique': 'error',
189
+ 'no-criteria-xpath': 'error',
190
+ 'no-actions-type-end': 'error',
113
191
  'parameters-not-in-body': 'error',
192
+ 'parameters-unique': 'error',
193
+ 'requestBody-replacements-unique': 'error',
114
194
  'sourceDescription-type': 'error',
115
- 'version-enum': 'error',
116
- 'workflowId-unique': 'error',
195
+ 'step-onSuccess-unique': 'error',
196
+ 'step-onFailure-unique': 'error',
117
197
  'stepId-unique': 'error',
118
198
  'sourceDescription-name-unique': 'error',
199
+ 'sourceDescriptions-not-empty': 'error',
200
+ 'version-enum': 'error',
201
+ 'workflowId-unique': 'error',
119
202
  'workflow-dependsOn': 'error',
120
- 'parameters-unique': 'error',
121
- 'step-onSuccess-unique': 'error',
122
- 'step-onFailure-unique': 'error',
123
- 'requestBody-replacements-unique': 'error',
124
- 'no-criteria-xpath': 'error',
125
- 'no-actions-type-end': 'error',
126
- 'criteria-unique': 'error',
127
203
  },
128
204
  };
129
205
  exports.default = recommendedStrict;