oas 34.0.2 → 36.0.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.
- package/dist/analyzer/index.cjs +6 -6
- package/dist/analyzer/index.cjs.map +1 -1
- package/dist/analyzer/index.js +4 -4
- package/dist/{chunk-GQ6E7DXK.js → chunk-ECH3NU2W.js} +8 -2
- package/dist/chunk-ECH3NU2W.js.map +1 -0
- package/dist/{chunk-HZ7LCMAM.cjs → chunk-ERUPYVMW.cjs} +132 -132
- package/dist/{chunk-HZ7LCMAM.cjs.map → chunk-ERUPYVMW.cjs.map} +1 -1
- package/dist/{chunk-KYSWFHUO.js → chunk-IJD7DGHE.js} +3 -3
- package/dist/{chunk-66Z3SYJH.js → chunk-MRBZAD3N.js} +8 -5
- package/dist/{chunk-66Z3SYJH.js.map → chunk-MRBZAD3N.js.map} +1 -1
- package/dist/{chunk-PSNTODZL.js → chunk-NM3QL4AB.js} +1 -1
- package/dist/{chunk-PSNTODZL.js.map → chunk-NM3QL4AB.js.map} +1 -1
- package/dist/{chunk-3MTU2ESP.cjs → chunk-NR45NABA.cjs} +1 -1
- package/dist/{chunk-3MTU2ESP.cjs.map → chunk-NR45NABA.cjs.map} +1 -1
- package/dist/{chunk-GXLENSTM.cjs → chunk-SARUCDNU.cjs} +32 -29
- package/dist/chunk-SARUCDNU.cjs.map +1 -0
- package/dist/{chunk-V4IQC5XF.cjs → chunk-YSYK5CMA.cjs} +43 -37
- package/dist/{chunk-V4IQC5XF.cjs.map → chunk-YSYK5CMA.cjs.map} +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +4 -4
- package/dist/operation/index.cjs +4 -4
- package/dist/operation/index.js +3 -3
- package/dist/reducer/index.cjs +13 -13
- package/dist/reducer/index.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +4 -1
- package/dist/types.d.ts +4 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-GQ6E7DXK.js.map +0 -1
- package/dist/chunk-GXLENSTM.cjs.map +0 -1
- /package/dist/{chunk-KYSWFHUO.js.map → chunk-IJD7DGHE.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkSARUCDNUcjs = require('./chunk-SARUCDNU.cjs');
|
|
4
|
+
require('./chunk-ERUPYVMW.cjs');
|
|
5
|
+
require('./chunk-YSYK5CMA.cjs');
|
|
6
6
|
require('./chunk-AYA3UT4L.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-NR45NABA.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkSARUCDNUcjs.Oas;
|
|
11
11
|
|
|
12
12
|
module.exports = exports.default;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Oas
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MRBZAD3N.js";
|
|
4
|
+
import "./chunk-IJD7DGHE.js";
|
|
5
|
+
import "./chunk-ECH3NU2W.js";
|
|
6
6
|
import "./chunk-S27IGTVG.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-NM3QL4AB.js";
|
|
8
8
|
export {
|
|
9
9
|
Oas as default
|
|
10
10
|
};
|
package/dist/operation/index.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
5
|
+
var _chunkERUPYVMWcjs = require('../chunk-ERUPYVMW.cjs');
|
|
6
|
+
require('../chunk-YSYK5CMA.cjs');
|
|
7
7
|
require('../chunk-AYA3UT4L.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-NR45NABA.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.Callback =
|
|
13
|
+
exports.Callback = _chunkERUPYVMWcjs.Callback; exports.Operation = _chunkERUPYVMWcjs.Operation; exports.Webhook = _chunkERUPYVMWcjs.Webhook;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/operation/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
Callback,
|
|
3
3
|
Operation,
|
|
4
4
|
Webhook
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-IJD7DGHE.js";
|
|
6
|
+
import "../chunk-ECH3NU2W.js";
|
|
7
7
|
import "../chunk-S27IGTVG.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-NM3QL4AB.js";
|
|
9
9
|
export {
|
|
10
10
|
Callback,
|
|
11
11
|
Operation,
|
package/dist/reducer/index.cjs
CHANGED
|
@@ -4,12 +4,12 @@ var _chunkW6GBV2JTcjs = require('../chunk-W6GBV2JT.cjs');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYSYK5CMAcjs = require('../chunk-YSYK5CMA.cjs');
|
|
8
8
|
require('../chunk-AYA3UT4L.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNR45NABAcjs = require('../chunk-NR45NABA.cjs');
|
|
13
13
|
|
|
14
14
|
// src/reducer/index.ts
|
|
15
15
|
var _jsonpointer = require('jsonpointer'); var _jsonpointer2 = _interopRequireDefault(_jsonpointer);
|
|
@@ -274,7 +274,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
274
274
|
const pathSegment = match[1];
|
|
275
275
|
const method = match[2];
|
|
276
276
|
if (pathSegment && method) {
|
|
277
|
-
return { path:
|
|
277
|
+
return { path: _chunkYSYK5CMAcjs.decodePointer.call(void 0, pathSegment), method };
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
return null;
|
|
@@ -293,7 +293,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
293
293
|
const webhookName = match[1];
|
|
294
294
|
const method = match[2];
|
|
295
295
|
if (webhookName && method) {
|
|
296
|
-
return { name:
|
|
296
|
+
return { name: _chunkYSYK5CMAcjs.decodePointer.call(void 0, webhookName), method };
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
return null;
|
|
@@ -321,7 +321,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
Object.keys(_optionalChain([this, 'access', _23 => _23.definition, 'access', _24 => _24.paths, 'optionalAccess', _25 => _25[path]]) || {}).forEach((method) => {
|
|
324
|
-
if (method === "parameters" || !
|
|
324
|
+
if (method === "parameters" || !_chunkYSYK5CMAcjs.supportedMethods.includes(method.toLowerCase())) {
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
327
|
if (this.hasPathsToReduceBy) {
|
|
@@ -379,7 +379,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
379
379
|
*
|
|
380
380
|
*/
|
|
381
381
|
walkWebhooks() {
|
|
382
|
-
if (!
|
|
382
|
+
if (!_chunkNR45NABAcjs.isOpenAPI31.call(void 0, this.definition)) {
|
|
383
383
|
return;
|
|
384
384
|
} else if (!("webhooks" in this.definition) || !this.definition.webhooks) {
|
|
385
385
|
return;
|
|
@@ -395,7 +395,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
395
395
|
return;
|
|
396
396
|
}
|
|
397
397
|
Object.keys(webhook).forEach((method) => {
|
|
398
|
-
if (method === "parameters" || !
|
|
398
|
+
if (method === "parameters" || !_chunkYSYK5CMAcjs.supportedMethods.includes(method.toLowerCase())) {
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
401
|
if (this.hasWebhooksToReduceBy) {
|
|
@@ -404,7 +404,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
404
404
|
return;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
if (
|
|
407
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, webhook)) {
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
410
|
const operation = webhook[method];
|
|
@@ -470,7 +470,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
470
470
|
}
|
|
471
471
|
Object.keys(_optionalChain([this, 'access', _39 => _39.definition, 'access', _40 => _40.paths, 'optionalAccess', _41 => _41[path]]) || {}).forEach((method) => {
|
|
472
472
|
const methodLC = method.toLowerCase();
|
|
473
|
-
if (method === "parameters" || !
|
|
473
|
+
if (method === "parameters" || !_chunkYSYK5CMAcjs.supportedMethods.includes(methodLC)) {
|
|
474
474
|
return;
|
|
475
475
|
}
|
|
476
476
|
const retainedByRef = this.retainPathMethods.has(`${pathLC}|${methodLC}`) || Array.from(this.$refs).some((ref) => {
|
|
@@ -529,7 +529,7 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
529
529
|
*
|
|
530
530
|
*/
|
|
531
531
|
reduceWebhooks() {
|
|
532
|
-
if (!
|
|
532
|
+
if (!_chunkNR45NABAcjs.isOpenAPI31.call(void 0, this.definition)) {
|
|
533
533
|
return;
|
|
534
534
|
} else if (!("webhooks" in this.definition) || !this.definition.webhooks) {
|
|
535
535
|
return;
|
|
@@ -550,19 +550,19 @@ var OpenAPIReducer = (_class = class _OpenAPIReducer {
|
|
|
550
550
|
if (!webhook || typeof webhook !== "object") {
|
|
551
551
|
return;
|
|
552
552
|
}
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, webhook)) {
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
556
|
Object.keys(webhook).forEach((method) => {
|
|
557
557
|
const methodLC = method.toLowerCase();
|
|
558
|
-
if (method === "parameters" || !
|
|
558
|
+
if (method === "parameters" || !_chunkYSYK5CMAcjs.supportedMethods.includes(methodLC)) {
|
|
559
559
|
return;
|
|
560
560
|
}
|
|
561
561
|
const retainedByRef = this.retainWebhookMethods.has(`${nameLC}|${methodLC}`);
|
|
562
562
|
if (this.hasWebhooksToReduceBy && !retainedByRef) {
|
|
563
563
|
const methodFilter = this.webhooksToReduceBy[nameLC];
|
|
564
564
|
if (methodFilter !== "*" && Array.isArray(methodFilter) && !methodFilter.includes(methodLC)) {
|
|
565
|
-
if (!_optionalChain([definition, 'access', _73 => _73.webhooks, 'optionalAccess', _74 => _74[webhookName]]) ||
|
|
565
|
+
if (!_optionalChain([definition, 'access', _73 => _73.webhooks, 'optionalAccess', _74 => _74[webhookName]]) || _chunkNR45NABAcjs.isRef.call(void 0, _optionalChain([definition, 'access', _75 => _75.webhooks, 'optionalAccess', _76 => _76[webhookName]]))) {
|
|
566
566
|
return;
|
|
567
567
|
}
|
|
568
568
|
_optionalChainDelete([definition, 'access', _77 => _77.webhooks, 'optionalAccess', _78 => _78[webhookName], 'optionalAccess', _79 => delete _79[method]]);
|
package/dist/reducer/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
decodePointer,
|
|
6
6
|
supportedMethods
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-ECH3NU2W.js";
|
|
8
8
|
import "../chunk-S27IGTVG.js";
|
|
9
9
|
import {
|
|
10
10
|
isOpenAPI31,
|
|
11
11
|
isRef
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-NM3QL4AB.js";
|
|
13
13
|
|
|
14
14
|
// src/reducer/index.ts
|
|
15
15
|
import jsonPointer from "jsonpointer";
|
package/dist/types.cjs
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNR45NABAcjs = require('./chunk-NR45NABA.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.isOpenAPI30 =
|
|
14
|
+
exports.isOpenAPI30 = _chunkNR45NABAcjs.isOpenAPI30; exports.isOpenAPI31 = _chunkNR45NABAcjs.isOpenAPI31; exports.isRef = _chunkNR45NABAcjs.isRef; exports.isSchema = _chunkNR45NABAcjs.isSchema; exports.isSwagger = _chunkNR45NABAcjs.isSwagger;
|
|
15
15
|
//# sourceMappingURL=types.cjs.map
|
package/dist/types.d.cts
CHANGED
|
@@ -201,7 +201,10 @@ type KeyedSecuritySchemeObject = SecuritySchemeObject & {
|
|
|
201
201
|
* Used for `oauth2` security scheme types.
|
|
202
202
|
*/
|
|
203
203
|
_requirements?: string[];
|
|
204
|
-
'x-default'?: number | string
|
|
204
|
+
'x-default'?: number | string | {
|
|
205
|
+
pass?: number | string;
|
|
206
|
+
user?: number | string;
|
|
207
|
+
};
|
|
205
208
|
};
|
|
206
209
|
/**
|
|
207
210
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-requirement-object}
|
package/dist/types.d.ts
CHANGED
|
@@ -201,7 +201,10 @@ type KeyedSecuritySchemeObject = SecuritySchemeObject & {
|
|
|
201
201
|
* Used for `oauth2` security scheme types.
|
|
202
202
|
*/
|
|
203
203
|
_requirements?: string[];
|
|
204
|
-
'x-default'?: number | string
|
|
204
|
+
'x-default'?: number | string | {
|
|
205
|
+
pass?: number | string;
|
|
206
|
+
user?: number | string;
|
|
207
|
+
};
|
|
205
208
|
};
|
|
206
209
|
/**
|
|
207
210
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-requirement-object}
|
package/dist/types.js
CHANGED
package/dist/utils.cjs
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkYSYK5CMAcjs = require('./chunk-YSYK5CMA.cjs');
|
|
10
10
|
require('./chunk-AYA3UT4L.cjs');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-NR45NABA.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -17,5 +17,5 @@ require('./chunk-3MTU2ESP.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.SERVER_VARIABLE_REGEX =
|
|
20
|
+
exports.SERVER_VARIABLE_REGEX = _chunkYSYK5CMAcjs.SERVER_VARIABLE_REGEX; exports.dereferenceRef = _chunkYSYK5CMAcjs.dereferenceRef; exports.dereferenceRefDeep = _chunkYSYK5CMAcjs.dereferenceRefDeep; exports.getParameterContentType = _chunkYSYK5CMAcjs.getParameterContentType; exports.jsonSchemaTypes = _chunkYSYK5CMAcjs.types; exports.matchesMimeType = _chunkYSYK5CMAcjs.matches_mimetype_default; exports.supportedMethods = _chunkYSYK5CMAcjs.supportedMethods;
|
|
21
21
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
matches_mimetype_default,
|
|
7
7
|
supportedMethods,
|
|
8
8
|
types
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ECH3NU2W.js";
|
|
10
10
|
import "./chunk-S27IGTVG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-NM3QL4AB.js";
|
|
12
12
|
export {
|
|
13
13
|
SERVER_VARIABLE_REGEX,
|
|
14
14
|
dereferenceRef,
|