@redocly/openapi-core 0.0.0-snapshot.1737556585 → 0.0.0-snapshot.1739194003
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.
- package/lib/types/arazzo.js +6 -4
- package/lib/types/redocly-yaml.js +12 -2
- package/lib/typings/arazzo.d.ts +1 -1
- package/lib/typings/arazzo.js +1 -1
- package/package.json +2 -2
package/lib/types/arazzo.js
CHANGED
|
@@ -175,19 +175,21 @@ const ExtendedOperation = {
|
|
|
175
175
|
'put',
|
|
176
176
|
'delete',
|
|
177
177
|
'patch',
|
|
178
|
+
'head',
|
|
179
|
+
'options',
|
|
180
|
+
'trace',
|
|
181
|
+
'connect',
|
|
182
|
+
'query',
|
|
178
183
|
'GET',
|
|
179
184
|
'POST',
|
|
180
185
|
'PUT',
|
|
181
186
|
'DELETE',
|
|
182
187
|
'PATCH',
|
|
183
|
-
'options',
|
|
184
188
|
'OPTIONS',
|
|
185
|
-
'head',
|
|
186
189
|
'HEAD',
|
|
187
|
-
'trace',
|
|
188
190
|
'TRACE',
|
|
189
|
-
'connect',
|
|
190
191
|
'CONNECT',
|
|
192
|
+
'QUERY',
|
|
191
193
|
],
|
|
192
194
|
},
|
|
193
195
|
},
|
|
@@ -359,11 +359,21 @@ const Rules = {
|
|
|
359
359
|
properties: {},
|
|
360
360
|
additionalProperties: (value, key) => {
|
|
361
361
|
if (key.startsWith('rule/')) {
|
|
362
|
-
|
|
362
|
+
if (typeof value === 'string') {
|
|
363
|
+
return { enum: ['error', 'warn', 'off'] };
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
return 'Assert';
|
|
367
|
+
}
|
|
363
368
|
}
|
|
364
369
|
else if (key.startsWith('assert/')) {
|
|
365
370
|
// keep the old assert/ prefix as an alias
|
|
366
|
-
|
|
371
|
+
if (typeof value === 'string') {
|
|
372
|
+
return { enum: ['error', 'warn', 'off'] };
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
return 'Assert';
|
|
376
|
+
}
|
|
367
377
|
}
|
|
368
378
|
else if (builtInRules.includes(key) || (0, utils_1.isCustomRuleId)(key)) {
|
|
369
379
|
if (typeof value === 'string') {
|
package/lib/typings/arazzo.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface Parameter {
|
|
|
24
24
|
}
|
|
25
25
|
export interface ExtendedOperation {
|
|
26
26
|
url: string;
|
|
27
|
-
method: 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace' | 'connect' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT';
|
|
27
|
+
method: 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace' | 'connect' | 'query' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'TRACE' | 'CONNECT' | 'QUERY';
|
|
28
28
|
}
|
|
29
29
|
export interface Replacement {
|
|
30
30
|
target: string;
|
package/lib/typings/arazzo.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ARAZZO_VERSIONS_SUPPORTED_BY_SPOT = exports.VERSION_PATTERN = void 0;
|
|
4
4
|
exports.VERSION_PATTERN = /^1\.0\.\d+(-.+)?$/;
|
|
5
|
-
exports.ARAZZO_VERSIONS_SUPPORTED_BY_SPOT = ['1.0.0'];
|
|
5
|
+
exports.ARAZZO_VERSIONS_SUPPORTED_BY_SPOT = ['1.0.0', '1.0.1'];
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-core",
|
|
3
|
-
"version": "0.0.0-snapshot.
|
|
3
|
+
"version": "0.0.0-snapshot.1739194003",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18.17.0",
|
|
8
|
-
"npm": ">=
|
|
8
|
+
"npm": ">=9.5.0"
|
|
9
9
|
},
|
|
10
10
|
"engineStrict": true,
|
|
11
11
|
"license": "MIT",
|