@kubb/oas 4.32.0 → 4.32.2
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/{chunk-Dxrv8gPv.js → chunk-OuPHjz6n.js} +12 -22
- package/dist/index.cjs +27 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -76
- package/dist/index.js.map +1 -1
- package/package.json +9 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
2
|
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
@@ -15,28 +14,20 @@ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
|
15
14
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
16
15
|
var __exportAll = (all, no_symbols) => {
|
|
17
16
|
let target = {};
|
|
18
|
-
for (var name in all) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
if (!no_symbols) {
|
|
25
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
26
|
-
}
|
|
17
|
+
for (var name in all) __defProp(target, name, {
|
|
18
|
+
get: all[name],
|
|
19
|
+
enumerable: true
|
|
20
|
+
});
|
|
21
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
27
22
|
return target;
|
|
28
23
|
};
|
|
29
24
|
var __copyProps = (to, from, except, desc) => {
|
|
30
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
26
|
+
key = keys[i];
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
28
|
+
get: ((k) => from[k]).bind(null, key),
|
|
29
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
+
});
|
|
40
31
|
}
|
|
41
32
|
return to;
|
|
42
33
|
};
|
|
@@ -46,6 +37,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
46
37
|
}) : target, mod));
|
|
47
38
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
39
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
49
|
-
|
|
50
40
|
//#endregion
|
|
51
|
-
export { __require as a, __name as i, __esmMin as n, __toCommonJS as o, __exportAll as r, __toESM as s, __commonJSMin as t };
|
|
41
|
+
export { __require as a, __name as i, __esmMin as n, __toCommonJS as o, __exportAll as r, __toESM as s, __commonJSMin as t };
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
|
-
var __name = (target, value) => __defProp(target, "name", {
|
|
6
|
-
value,
|
|
7
|
-
configurable: true
|
|
8
|
-
});
|
|
9
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -14,28 +10,20 @@ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
|
14
10
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
15
11
|
var __exportAll = (all, no_symbols) => {
|
|
16
12
|
let target = {};
|
|
17
|
-
for (var name in all) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
if (!no_symbols) {
|
|
24
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
25
|
-
}
|
|
13
|
+
for (var name in all) __defProp(target, name, {
|
|
14
|
+
get: all[name],
|
|
15
|
+
enumerable: true
|
|
16
|
+
});
|
|
17
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
26
18
|
return target;
|
|
27
19
|
};
|
|
28
20
|
var __copyProps = (to, from, except, desc) => {
|
|
29
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
|
+
key = keys[i];
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
24
|
+
get: ((k) => from[k]).bind(null, key),
|
|
25
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26
|
+
});
|
|
39
27
|
}
|
|
40
28
|
return to;
|
|
41
29
|
};
|
|
@@ -44,7 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
32
|
enumerable: true
|
|
45
33
|
}) : target, mod));
|
|
46
34
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
|
-
|
|
48
35
|
//#endregion
|
|
49
36
|
let jsonpointer = require("jsonpointer");
|
|
50
37
|
jsonpointer = __toESM(jsonpointer);
|
|
@@ -64,7 +51,6 @@ oas_normalize = __toESM(oas_normalize);
|
|
|
64
51
|
let remeda = require("remeda");
|
|
65
52
|
let swagger2openapi = require("swagger2openapi");
|
|
66
53
|
swagger2openapi = __toESM(swagger2openapi);
|
|
67
|
-
|
|
68
54
|
//#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
69
55
|
var tslib_es6_exports = /* @__PURE__ */ __exportAll({
|
|
70
56
|
__addDisposableResource: () => __addDisposableResource,
|
|
@@ -624,7 +610,6 @@ var init_tslib_es6 = __esmMin((() => {
|
|
|
624
610
|
__rewriteRelativeImportExtension
|
|
625
611
|
};
|
|
626
612
|
}));
|
|
627
|
-
|
|
628
613
|
//#endregion
|
|
629
614
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/yamlAST.js
|
|
630
615
|
var require_yamlAST = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -705,7 +690,6 @@ var require_yamlAST = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
705
690
|
}
|
|
706
691
|
exports.newMap = newMap;
|
|
707
692
|
}));
|
|
708
|
-
|
|
709
693
|
//#endregion
|
|
710
694
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/common.js
|
|
711
695
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -751,7 +735,6 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
751
735
|
}
|
|
752
736
|
exports.isNegativeZero = isNegativeZero;
|
|
753
737
|
}));
|
|
754
|
-
|
|
755
738
|
//#endregion
|
|
756
739
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/exception.js
|
|
757
740
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -781,7 +764,6 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
781
764
|
YAMLException.CLASS_IDENTIFIER = "yaml-ast-parser.YAMLException";
|
|
782
765
|
module.exports = YAMLException;
|
|
783
766
|
}));
|
|
784
|
-
|
|
785
767
|
//#endregion
|
|
786
768
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/mark.js
|
|
787
769
|
var require_mark = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -840,7 +822,6 @@ var require_mark = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
840
822
|
};
|
|
841
823
|
module.exports = Mark;
|
|
842
824
|
}));
|
|
843
|
-
|
|
844
825
|
//#endregion
|
|
845
826
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type.js
|
|
846
827
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -894,7 +875,6 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
894
875
|
};
|
|
895
876
|
exports.Type = Type;
|
|
896
877
|
}));
|
|
897
|
-
|
|
898
878
|
//#endregion
|
|
899
879
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/schema.js
|
|
900
880
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -970,54 +950,45 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
970
950
|
});
|
|
971
951
|
};
|
|
972
952
|
}));
|
|
973
|
-
|
|
974
953
|
//#endregion
|
|
975
954
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/str.js
|
|
976
955
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
977
|
-
|
|
978
|
-
module.exports = new type_1.Type("tag:yaml.org,2002:str", {
|
|
956
|
+
module.exports = new (require_type()).Type("tag:yaml.org,2002:str", {
|
|
979
957
|
kind: "scalar",
|
|
980
958
|
construct: function(data) {
|
|
981
959
|
return null !== data ? data : "";
|
|
982
960
|
}
|
|
983
961
|
});
|
|
984
962
|
}));
|
|
985
|
-
|
|
986
963
|
//#endregion
|
|
987
964
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/seq.js
|
|
988
965
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
989
|
-
|
|
990
|
-
module.exports = new type_1.Type("tag:yaml.org,2002:seq", {
|
|
966
|
+
module.exports = new (require_type()).Type("tag:yaml.org,2002:seq", {
|
|
991
967
|
kind: "sequence",
|
|
992
968
|
construct: function(data) {
|
|
993
969
|
return null !== data ? data : [];
|
|
994
970
|
}
|
|
995
971
|
});
|
|
996
972
|
}));
|
|
997
|
-
|
|
998
973
|
//#endregion
|
|
999
974
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/map.js
|
|
1000
975
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1001
|
-
|
|
1002
|
-
module.exports = new type_1.Type("tag:yaml.org,2002:map", {
|
|
976
|
+
module.exports = new (require_type()).Type("tag:yaml.org,2002:map", {
|
|
1003
977
|
kind: "mapping",
|
|
1004
978
|
construct: function(data) {
|
|
1005
979
|
return null !== data ? data : {};
|
|
1006
980
|
}
|
|
1007
981
|
});
|
|
1008
982
|
}));
|
|
1009
|
-
|
|
1010
983
|
//#endregion
|
|
1011
984
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/failsafe.js
|
|
1012
985
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1013
|
-
|
|
1014
|
-
module.exports = new schema_1.Schema({ explicit: [
|
|
986
|
+
module.exports = new (require_schema()).Schema({ explicit: [
|
|
1015
987
|
require_str(),
|
|
1016
988
|
require_seq(),
|
|
1017
989
|
require_map()
|
|
1018
990
|
] });
|
|
1019
991
|
}));
|
|
1020
|
-
|
|
1021
992
|
//#endregion
|
|
1022
993
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/null.js
|
|
1023
994
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1055,7 +1026,6 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1055
1026
|
defaultStyle: "lowercase"
|
|
1056
1027
|
});
|
|
1057
1028
|
}));
|
|
1058
|
-
|
|
1059
1029
|
//#endregion
|
|
1060
1030
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/bool.js
|
|
1061
1031
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1090,7 +1060,6 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1090
1060
|
defaultStyle: "lowercase"
|
|
1091
1061
|
});
|
|
1092
1062
|
}));
|
|
1093
|
-
|
|
1094
1063
|
//#endregion
|
|
1095
1064
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/int.js
|
|
1096
1065
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1224,13 +1193,12 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1224
1193
|
}
|
|
1225
1194
|
});
|
|
1226
1195
|
}));
|
|
1227
|
-
|
|
1228
1196
|
//#endregion
|
|
1229
1197
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/float.js
|
|
1230
1198
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1231
1199
|
const common = require_common();
|
|
1232
1200
|
const type_1 = require_type();
|
|
1233
|
-
var YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1201
|
+
var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1234
1202
|
function resolveYamlFloat(data) {
|
|
1235
1203
|
if (null === data) return false;
|
|
1236
1204
|
if (!YAML_FLOAT_PATTERN.test(data)) return false;
|
|
@@ -1289,12 +1257,10 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1289
1257
|
defaultStyle: "lowercase"
|
|
1290
1258
|
});
|
|
1291
1259
|
}));
|
|
1292
|
-
|
|
1293
1260
|
//#endregion
|
|
1294
1261
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/json.js
|
|
1295
1262
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1296
|
-
|
|
1297
|
-
module.exports = new schema_1.Schema({
|
|
1263
|
+
module.exports = new (require_schema()).Schema({
|
|
1298
1264
|
include: [require_failsafe()],
|
|
1299
1265
|
implicit: [
|
|
1300
1266
|
require_null(),
|
|
@@ -1304,19 +1270,16 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1304
1270
|
]
|
|
1305
1271
|
});
|
|
1306
1272
|
}));
|
|
1307
|
-
|
|
1308
1273
|
//#endregion
|
|
1309
1274
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/core.js
|
|
1310
1275
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1311
|
-
|
|
1312
|
-
module.exports = new schema_1.Schema({ include: [require_json()] });
|
|
1276
|
+
module.exports = new (require_schema()).Schema({ include: [require_json()] });
|
|
1313
1277
|
}));
|
|
1314
|
-
|
|
1315
1278
|
//#endregion
|
|
1316
1279
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/timestamp.js
|
|
1317
1280
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1318
1281
|
const type_1 = require_type();
|
|
1319
|
-
var YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");
|
|
1282
|
+
var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");
|
|
1320
1283
|
function resolveYamlTimestamp(data) {
|
|
1321
1284
|
if (null === data) return false;
|
|
1322
1285
|
if (null === YAML_TIMESTAMP_REGEXP.exec(data)) return false;
|
|
@@ -1370,7 +1333,6 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1370
1333
|
represent: representYamlTimestamp
|
|
1371
1334
|
});
|
|
1372
1335
|
}));
|
|
1373
|
-
|
|
1374
1336
|
//#endregion
|
|
1375
1337
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/merge.js
|
|
1376
1338
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1383,7 +1345,6 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1383
1345
|
resolve: resolveYamlMerge
|
|
1384
1346
|
});
|
|
1385
1347
|
}));
|
|
1386
|
-
|
|
1387
1348
|
//#endregion
|
|
1388
1349
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/binary.js
|
|
1389
1350
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1479,7 +1440,6 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1479
1440
|
represent: representYamlBinary
|
|
1480
1441
|
});
|
|
1481
1442
|
}));
|
|
1482
|
-
|
|
1483
1443
|
//#endregion
|
|
1484
1444
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/omap.js
|
|
1485
1445
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1516,7 +1476,6 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1516
1476
|
construct: constructYamlOmap
|
|
1517
1477
|
});
|
|
1518
1478
|
}));
|
|
1519
|
-
|
|
1520
1479
|
//#endregion
|
|
1521
1480
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/pairs.js
|
|
1522
1481
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1567,7 +1526,6 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1567
1526
|
construct: constructYamlPairs
|
|
1568
1527
|
});
|
|
1569
1528
|
}));
|
|
1570
|
-
|
|
1571
1529
|
//#endregion
|
|
1572
1530
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/set.js
|
|
1573
1531
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1587,11 +1545,10 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1587
1545
|
construct: constructYamlSet
|
|
1588
1546
|
});
|
|
1589
1547
|
}));
|
|
1590
|
-
|
|
1591
1548
|
//#endregion
|
|
1592
1549
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/default_safe.js
|
|
1593
1550
|
var require_default_safe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1594
|
-
|
|
1551
|
+
module.exports = new (require_schema()).Schema({
|
|
1595
1552
|
include: [require_core()],
|
|
1596
1553
|
implicit: [require_timestamp(), require_merge()],
|
|
1597
1554
|
explicit: [
|
|
@@ -1601,9 +1558,7 @@ var require_default_safe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1601
1558
|
require_set()
|
|
1602
1559
|
]
|
|
1603
1560
|
});
|
|
1604
|
-
module.exports = schema;
|
|
1605
1561
|
}));
|
|
1606
|
-
|
|
1607
1562
|
//#endregion
|
|
1608
1563
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/js/undefined.js
|
|
1609
1564
|
var require_undefined = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1626,7 +1581,6 @@ var require_undefined = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1626
1581
|
represent: representJavascriptUndefined
|
|
1627
1582
|
});
|
|
1628
1583
|
}));
|
|
1629
|
-
|
|
1630
1584
|
//#endregion
|
|
1631
1585
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/type/js/regexp.js
|
|
1632
1586
|
var require_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1678,7 +1632,6 @@ var require_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1678
1632
|
represent: representJavascriptRegExp
|
|
1679
1633
|
});
|
|
1680
1634
|
}));
|
|
1681
|
-
|
|
1682
1635
|
//#endregion
|
|
1683
1636
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/default_full.js
|
|
1684
1637
|
var require_default_full = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1690,7 +1643,6 @@ var require_default_full = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1690
1643
|
schema_1.Schema.DEFAULT = schema;
|
|
1691
1644
|
module.exports = schema;
|
|
1692
1645
|
}));
|
|
1693
|
-
|
|
1694
1646
|
//#endregion
|
|
1695
1647
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/loader.js
|
|
1696
1648
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -2741,7 +2693,6 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2741
2693
|
module.exports.safeLoadAll = safeLoadAll;
|
|
2742
2694
|
module.exports.safeLoad = safeLoad;
|
|
2743
2695
|
}));
|
|
2744
|
-
|
|
2745
2696
|
//#endregion
|
|
2746
2697
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/dumper.js
|
|
2747
2698
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3309,7 +3260,6 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3309
3260
|
else return generateNextLine(this.state, level) + result;
|
|
3310
3261
|
};
|
|
3311
3262
|
}));
|
|
3312
|
-
|
|
3313
3263
|
//#endregion
|
|
3314
3264
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/scalarInference.js
|
|
3315
3265
|
var require_scalarInference = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3395,7 +3345,6 @@ var require_scalarInference = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3395
3345
|
}
|
|
3396
3346
|
exports.determineScalarType = determineScalarType;
|
|
3397
3347
|
}));
|
|
3398
|
-
|
|
3399
3348
|
//#endregion
|
|
3400
3349
|
//#region ../../node_modules/.pnpm/@stoplight+yaml-ast-parser@0.0.50/node_modules/@stoplight/yaml-ast-parser/dist/src/index.js
|
|
3401
3350
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3415,7 +3364,6 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3415
3364
|
__export(require_yamlAST());
|
|
3416
3365
|
__export(require_scalarInference());
|
|
3417
3366
|
}));
|
|
3418
|
-
|
|
3419
3367
|
//#endregion
|
|
3420
3368
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/types.js
|
|
3421
3369
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3424,14 +3372,12 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3424
3372
|
exports.Kind = yaml_ast_parser_1.Kind;
|
|
3425
3373
|
exports.ScalarType = yaml_ast_parser_1.ScalarType;
|
|
3426
3374
|
}));
|
|
3427
|
-
|
|
3428
3375
|
//#endregion
|
|
3429
3376
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/utils.js
|
|
3430
3377
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3431
3378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3432
3379
|
exports.isObject = (sth) => sth !== null && typeof sth === "object";
|
|
3433
3380
|
}));
|
|
3434
|
-
|
|
3435
3381
|
//#endregion
|
|
3436
3382
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/buildJsonPath.js
|
|
3437
3383
|
var require_buildJsonPath = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3465,7 +3411,6 @@ var require_buildJsonPath = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3465
3411
|
}
|
|
3466
3412
|
exports.buildJsonPath = buildJsonPath;
|
|
3467
3413
|
}));
|
|
3468
|
-
|
|
3469
3414
|
//#endregion
|
|
3470
3415
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/dereferenceAnchor.js
|
|
3471
3416
|
var require_dereferenceAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3493,7 +3438,6 @@ var require_dereferenceAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3493
3438
|
return false;
|
|
3494
3439
|
};
|
|
3495
3440
|
}));
|
|
3496
|
-
|
|
3497
3441
|
//#endregion
|
|
3498
3442
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/getJsonPathForPosition.js
|
|
3499
3443
|
var require_getJsonPathForPosition = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3559,7 +3503,6 @@ var require_getJsonPathForPosition = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
3559
3503
|
return container;
|
|
3560
3504
|
}
|
|
3561
3505
|
}));
|
|
3562
|
-
|
|
3563
3506
|
//#endregion
|
|
3564
3507
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/lineForPosition.js
|
|
3565
3508
|
var require_lineForPosition = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3579,7 +3522,6 @@ var require_lineForPosition = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3579
3522
|
else return exports.lineForPosition(pos, lines, start, target - 1);
|
|
3580
3523
|
};
|
|
3581
3524
|
}));
|
|
3582
|
-
|
|
3583
3525
|
//#endregion
|
|
3584
3526
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/getLocationForJsonPath.js
|
|
3585
3527
|
var require_getLocationForJsonPath = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3690,7 +3632,6 @@ var require_getLocationForJsonPath = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
3690
3632
|
} };
|
|
3691
3633
|
};
|
|
3692
3634
|
}));
|
|
3693
|
-
|
|
3694
3635
|
//#endregion
|
|
3695
3636
|
//#region ../../node_modules/.pnpm/@stoplight+ordered-object-literal@1.0.5/node_modules/@stoplight/ordered-object-literal/src/index.cjs
|
|
3696
3637
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3817,7 +3758,6 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3817
3758
|
exports.serialize = serialize;
|
|
3818
3759
|
exports.setOrder = setOrder;
|
|
3819
3760
|
}));
|
|
3820
|
-
|
|
3821
3761
|
//#endregion
|
|
3822
3762
|
//#region ../../node_modules/.pnpm/@stoplight+types@14.1.1/node_modules/@stoplight/types/dist/index.js
|
|
3823
3763
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3946,7 +3886,6 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3946
3886
|
NodeFormat["Webp"] = "webp";
|
|
3947
3887
|
})(exports.NodeFormat || (exports.NodeFormat = {}));
|
|
3948
3888
|
}));
|
|
3949
|
-
|
|
3950
3889
|
//#endregion
|
|
3951
3890
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/parseWithPointers.js
|
|
3952
3891
|
var require_parseWithPointers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4306,7 +4245,6 @@ var require_parseWithPointers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4306
4245
|
});
|
|
4307
4246
|
}
|
|
4308
4247
|
}));
|
|
4309
|
-
|
|
4310
4248
|
//#endregion
|
|
4311
4249
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/parse.js
|
|
4312
4250
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4314,7 +4252,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4314
4252
|
const parseWithPointers_1 = require_parseWithPointers();
|
|
4315
4253
|
exports.parse = (value) => parseWithPointers_1.parseWithPointers(value).data;
|
|
4316
4254
|
}));
|
|
4317
|
-
|
|
4318
4255
|
//#endregion
|
|
4319
4256
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/safeStringify.js
|
|
4320
4257
|
var require_safeStringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4322,7 +4259,6 @@ var require_safeStringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4322
4259
|
const yaml_ast_parser_1 = require_src$1();
|
|
4323
4260
|
exports.safeStringify = (value, options) => typeof value === "string" ? value : yaml_ast_parser_1.safeDump(value, options);
|
|
4324
4261
|
}));
|
|
4325
|
-
|
|
4326
4262
|
//#endregion
|
|
4327
4263
|
//#region ../../node_modules/.pnpm/@stoplight+yaml@4.3.0/node_modules/@stoplight/yaml/trapAccess.js
|
|
4328
4264
|
var require_trapAccess = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4334,10 +4270,9 @@ var require_trapAccess = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4334
4270
|
} };
|
|
4335
4271
|
exports.trapAccess = (target) => new Proxy(target, traps);
|
|
4336
4272
|
}));
|
|
4337
|
-
|
|
4338
4273
|
//#endregion
|
|
4339
|
-
//#region
|
|
4340
|
-
var
|
|
4274
|
+
//#region src/utils.ts
|
|
4275
|
+
var import_yaml = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4341
4276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4342
4277
|
const tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
4343
4278
|
tslib_1.__exportStar(require_buildJsonPath(), exports);
|
|
@@ -4345,18 +4280,12 @@ var require_yaml = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4345
4280
|
tslib_1.__exportStar(require_getJsonPathForPosition(), exports);
|
|
4346
4281
|
tslib_1.__exportStar(require_getLocationForJsonPath(), exports);
|
|
4347
4282
|
tslib_1.__exportStar(require_lineForPosition(), exports);
|
|
4348
|
-
|
|
4349
|
-
exports.
|
|
4350
|
-
var parseWithPointers_1 = require_parseWithPointers();
|
|
4351
|
-
exports.parseWithPointers = parseWithPointers_1.parseWithPointers;
|
|
4283
|
+
exports.parse = require_parse().parse;
|
|
4284
|
+
exports.parseWithPointers = require_parseWithPointers().parseWithPointers;
|
|
4352
4285
|
tslib_1.__exportStar(require_safeStringify(), exports);
|
|
4353
4286
|
tslib_1.__exportStar(require_types(), exports);
|
|
4354
4287
|
tslib_1.__exportStar(require_trapAccess(), exports);
|
|
4355
|
-
}));
|
|
4356
|
-
|
|
4357
|
-
//#endregion
|
|
4358
|
-
//#region src/utils.ts
|
|
4359
|
-
var import_yaml = /* @__PURE__ */ __toESM(require_yaml(), 1);
|
|
4288
|
+
})))(), 1);
|
|
4360
4289
|
const STRUCTURAL_KEYS = new Set([
|
|
4361
4290
|
"properties",
|
|
4362
4291
|
"items",
|
|
@@ -4719,7 +4648,6 @@ function resolveCollisions(schemasWithMeta) {
|
|
|
4719
4648
|
nameMapping
|
|
4720
4649
|
};
|
|
4721
4650
|
}
|
|
4722
|
-
|
|
4723
4651
|
//#endregion
|
|
4724
4652
|
//#region src/Oas.ts
|
|
4725
4653
|
var Oas = class extends oas.default {
|
|
@@ -5026,7 +4954,6 @@ var Oas = class extends oas.default {
|
|
|
5026
4954
|
};
|
|
5027
4955
|
}
|
|
5028
4956
|
};
|
|
5029
|
-
|
|
5030
4957
|
//#endregion
|
|
5031
4958
|
//#region src/types.ts
|
|
5032
4959
|
const HttpMethods = {
|
|
@@ -5039,7 +4966,6 @@ const HttpMethods = {
|
|
|
5039
4966
|
OPTIONS: "options",
|
|
5040
4967
|
TRACE: "trace"
|
|
5041
4968
|
};
|
|
5042
|
-
|
|
5043
4969
|
//#endregion
|
|
5044
4970
|
exports.HttpMethods = HttpMethods;
|
|
5045
4971
|
exports.Oas = Oas;
|
|
@@ -5056,4 +4982,5 @@ exports.merge = merge;
|
|
|
5056
4982
|
exports.parse = parse;
|
|
5057
4983
|
exports.parseFromConfig = parseFromConfig;
|
|
5058
4984
|
exports.validate = validate;
|
|
4985
|
+
|
|
5059
4986
|
//# sourceMappingURL=index.cjs.map
|