oas 36.0.0 → 36.0.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/analyzer/index.cjs +6 -6
- package/dist/analyzer/index.js +4 -4
- package/dist/{chunk-IJD7DGHE.js → chunk-35LEYZEY.js} +3 -3
- package/dist/{chunk-ECH3NU2W.js → chunk-6MDVLJ3A.js} +9 -3
- package/dist/{chunk-ECH3NU2W.js.map → chunk-6MDVLJ3A.js.map} +1 -1
- package/dist/{chunk-NR45NABA.cjs → chunk-7PWF3F2W.cjs} +1 -1
- package/dist/chunk-7PWF3F2W.cjs.map +1 -0
- package/dist/{chunk-MRBZAD3N.js → chunk-IXQKQM3K.js} +8 -4
- package/dist/{chunk-MRBZAD3N.js.map → chunk-IXQKQM3K.js.map} +1 -1
- package/dist/{chunk-YSYK5CMA.cjs → chunk-SCWW2SNX.cjs} +44 -38
- package/dist/chunk-SCWW2SNX.cjs.map +1 -0
- package/dist/{chunk-ERUPYVMW.cjs → chunk-UDN4U5TL.cjs} +132 -132
- package/dist/{chunk-ERUPYVMW.cjs.map → chunk-UDN4U5TL.cjs.map} +1 -1
- package/dist/{chunk-NM3QL4AB.js → chunk-XG4HGNCN.js} +1 -1
- package/dist/chunk-XG4HGNCN.js.map +1 -0
- package/dist/{chunk-SARUCDNU.cjs → chunk-YKV73CBG.cjs} +32 -28
- package/dist/chunk-YKV73CBG.cjs.map +1 -0
- 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 +14 -5
- package/dist/types.d.ts +14 -5
- 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-NM3QL4AB.js.map +0 -1
- package/dist/chunk-NR45NABA.cjs.map +0 -1
- package/dist/chunk-SARUCDNU.cjs.map +0 -1
- package/dist/chunk-YSYK5CMA.cjs.map +0 -1
- /package/dist/{chunk-IJD7DGHE.js.map → chunk-35LEYZEY.js.map} +0 -0
|
@@ -6,7 +6,7 @@ var _chunkAYA3UT4Lcjs = require('./chunk-AYA3UT4L.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7PWF3F2Wcjs = require('./chunk-7PWF3F2W.cjs');
|
|
10
10
|
|
|
11
11
|
// src/lib/matches-mimetype.ts
|
|
12
12
|
function matchesMediaType(types2, mediaType) {
|
|
@@ -118,7 +118,7 @@ function dereferenceRef(value, definition, seenRefs = /* @__PURE__ */ new Set())
|
|
|
118
118
|
if (value === void 0) {
|
|
119
119
|
return void 0;
|
|
120
120
|
}
|
|
121
|
-
if (
|
|
121
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, value)) {
|
|
122
122
|
if (!definition) {
|
|
123
123
|
return value;
|
|
124
124
|
}
|
|
@@ -129,7 +129,7 @@ function dereferenceRef(value, definition, seenRefs = /* @__PURE__ */ new Set())
|
|
|
129
129
|
seenRefs.add(ref);
|
|
130
130
|
try {
|
|
131
131
|
const dereferenced = findRef(ref, definition);
|
|
132
|
-
if (
|
|
132
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, dereferenced)) {
|
|
133
133
|
return dereferenceRef(dereferenced, definition, seenRefs);
|
|
134
134
|
}
|
|
135
135
|
return {
|
|
@@ -144,10 +144,10 @@ function dereferenceRef(value, definition, seenRefs = /* @__PURE__ */ new Set())
|
|
|
144
144
|
function dereferenceRefDeep(value, definition, seenRefs = /* @__PURE__ */ new Set()) {
|
|
145
145
|
if (value === null || value === void 0) return value;
|
|
146
146
|
if (typeof value !== "object") return value;
|
|
147
|
-
if (
|
|
147
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, value)) {
|
|
148
148
|
if (!definition) return value;
|
|
149
149
|
const resolved = dereferenceRef(value, definition, seenRefs);
|
|
150
|
-
if (
|
|
150
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) return resolved;
|
|
151
151
|
return dereferenceRefDeep(resolved, definition, seenRefs);
|
|
152
152
|
}
|
|
153
153
|
if (Array.isArray(value)) {
|
|
@@ -180,7 +180,7 @@ function collectRefsInSchema(schema) {
|
|
|
180
180
|
const refs = /* @__PURE__ */ new Set();
|
|
181
181
|
if (!schema || typeof schema !== "object") return refs;
|
|
182
182
|
const obj = schema;
|
|
183
|
-
if (
|
|
183
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, obj)) {
|
|
184
184
|
refs.add(obj.$ref);
|
|
185
185
|
}
|
|
186
186
|
for (const value of Object.values(obj)) {
|
|
@@ -321,7 +321,7 @@ function allOfReferencesSchema(schema, targetSchemaName) {
|
|
|
321
321
|
if (!schema || typeof schema !== "object") return false;
|
|
322
322
|
if (!("allOf" in schema) || !Array.isArray(schema.allOf)) return false;
|
|
323
323
|
return schema.allOf.some((item) => {
|
|
324
|
-
if (
|
|
324
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, item)) {
|
|
325
325
|
const refParts = item.$ref.split("/");
|
|
326
326
|
const refSchemaName = refParts[refParts.length - 1];
|
|
327
327
|
return refSchemaName === targetSchemaName;
|
|
@@ -458,7 +458,7 @@ function isPendingSchema(s) {
|
|
|
458
458
|
return isObject(s) && "__pending" in s && s.__pending === true;
|
|
459
459
|
}
|
|
460
460
|
function getSchemaVersionString(schema, api) {
|
|
461
|
-
if (
|
|
461
|
+
if (_chunk7PWF3F2Wcjs.isOpenAPI30.call(void 0, api)) {
|
|
462
462
|
return "http://json-schema.org/draft-04/schema#";
|
|
463
463
|
}
|
|
464
464
|
if (schema.$schema) {
|
|
@@ -474,7 +474,7 @@ function isPolymorphicSchema(schema) {
|
|
|
474
474
|
}
|
|
475
475
|
function shouldFoldParentItemsIntoPolymorphBranch(item) {
|
|
476
476
|
if (!isObject(item)) return false;
|
|
477
|
-
if (
|
|
477
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, item)) return true;
|
|
478
478
|
const branch = item;
|
|
479
479
|
if (!("type" in branch) || branch.type === void 0) return true;
|
|
480
480
|
if (!hasSchemaType(branch, "array")) return false;
|
|
@@ -497,7 +497,7 @@ function inlinePropertyRefsForMerge(schema, usedSchemas, refLogger, conflictPath
|
|
|
497
497
|
for (const key of Object.keys(out.properties)) {
|
|
498
498
|
const path = currentPath ? `${currentPath}.${key}` : key;
|
|
499
499
|
const val = out.properties[key];
|
|
500
|
-
if (
|
|
500
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, val)) {
|
|
501
501
|
if (val.$ref.startsWith("#/paths/")) {
|
|
502
502
|
refLogger(val.$ref, "ref");
|
|
503
503
|
continue;
|
|
@@ -577,12 +577,12 @@ function inlineAllOfRefsDeep(schema, usedSchemas) {
|
|
|
577
577
|
for (let i = 0; i < schema[keyword].length; i++) {
|
|
578
578
|
const option = schema[keyword][i];
|
|
579
579
|
if (!option || typeof option !== "object") continue;
|
|
580
|
-
if (
|
|
580
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, option) && option.$ref.includes(allOfKey)) {
|
|
581
581
|
const resolved = usedSchemas.get(option.$ref);
|
|
582
582
|
if (resolved !== void 0 && !isPendingSchema(resolved)) {
|
|
583
583
|
schema[keyword][i] = structuredClone(resolved);
|
|
584
584
|
}
|
|
585
|
-
} else if (!
|
|
585
|
+
} else if (!_chunk7PWF3F2Wcjs.isRef.call(void 0, option)) {
|
|
586
586
|
inlineAllOfRefsDeep(option, usedSchemas);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
@@ -590,12 +590,12 @@ function inlineAllOfRefsDeep(schema, usedSchemas) {
|
|
|
590
590
|
if ("properties" in schema && typeof schema.properties === "object" && schema.properties !== null) {
|
|
591
591
|
for (const key of Object.keys(schema.properties)) {
|
|
592
592
|
const val = schema.properties[key];
|
|
593
|
-
if (
|
|
593
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, val) && val.$ref.includes(allOfKey)) {
|
|
594
594
|
const resolved = usedSchemas.get(val.$ref);
|
|
595
595
|
if (resolved !== void 0 && !isPendingSchema(resolved)) {
|
|
596
596
|
schema.properties[key] = structuredClone(resolved);
|
|
597
597
|
}
|
|
598
|
-
} else if (val && typeof val === "object" && !Array.isArray(val) && !
|
|
598
|
+
} else if (val && typeof val === "object" && !Array.isArray(val) && !_chunk7PWF3F2Wcjs.isRef.call(void 0, val)) {
|
|
599
599
|
inlineAllOfRefsDeep(val, usedSchemas);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
@@ -620,7 +620,7 @@ function resolveAndCacheRefSchema({
|
|
|
620
620
|
if (_optionalChain([refsEmittedAsStub, 'optionalAccess', _20 => _20.has, 'call', _21 => _21(ref)])) {
|
|
621
621
|
return { $ref: ref };
|
|
622
622
|
}
|
|
623
|
-
if (!
|
|
623
|
+
if (!_chunk7PWF3F2Wcjs.isRef.call(void 0, existing)) {
|
|
624
624
|
return structuredClone(existing);
|
|
625
625
|
}
|
|
626
626
|
return { $ref: ref };
|
|
@@ -634,7 +634,7 @@ function resolveAndCacheRefSchema({
|
|
|
634
634
|
let resolved;
|
|
635
635
|
try {
|
|
636
636
|
const dereferenced = dereferenceRef(schema, definition, seenRefs);
|
|
637
|
-
if (
|
|
637
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, dereferenced)) {
|
|
638
638
|
refLogger(dereferenced.$ref, "ref");
|
|
639
639
|
let converted2;
|
|
640
640
|
try {
|
|
@@ -668,7 +668,7 @@ function resolveAndCacheRefSchema({
|
|
|
668
668
|
}
|
|
669
669
|
try {
|
|
670
670
|
const dereferenced = dereferenceRef(schema, definition, seenRefs);
|
|
671
|
-
if (
|
|
671
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, dereferenced)) {
|
|
672
672
|
let converted2;
|
|
673
673
|
try {
|
|
674
674
|
const pointer = ref.startsWith("#") ? decodeURIComponent(ref.substring(1)) : ref;
|
|
@@ -739,7 +739,7 @@ function searchForValueByPropAndPointer(property, pointer, schemas = []) {
|
|
|
739
739
|
}
|
|
740
740
|
function toJSONSchema(data, opts) {
|
|
741
741
|
let schema = data === true ? {} : { ...data };
|
|
742
|
-
const schemaAdditionalProperties =
|
|
742
|
+
const schemaAdditionalProperties = _chunk7PWF3F2Wcjs.isSchema.call(void 0, schema) ? schema.additionalProperties : null;
|
|
743
743
|
const {
|
|
744
744
|
addEnumsToDescriptions,
|
|
745
745
|
currentLocation,
|
|
@@ -784,7 +784,7 @@ function toJSONSchema(data, opts) {
|
|
|
784
784
|
usedSchemas,
|
|
785
785
|
refsEmittedAsStub
|
|
786
786
|
};
|
|
787
|
-
if (
|
|
787
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, schema)) {
|
|
788
788
|
if (definition && usedSchemas) {
|
|
789
789
|
const resolved = resolveAndCacheRefSchema({
|
|
790
790
|
schema,
|
|
@@ -810,7 +810,7 @@ function toJSONSchema(data, opts) {
|
|
|
810
810
|
refLogger(schema.$ref, "ref");
|
|
811
811
|
return schema;
|
|
812
812
|
}
|
|
813
|
-
if (
|
|
813
|
+
if (_chunk7PWF3F2Wcjs.isSchema.call(void 0, schema, isPolymorphicAllOfChild)) {
|
|
814
814
|
if ("allOf" in schema && Array.isArray(schema.allOf)) {
|
|
815
815
|
if ("properties" in schema && schema.properties !== void 0 && typeof schema.properties === "object" && schema.properties !== null && !Array.isArray(schema.properties)) {
|
|
816
816
|
const preprocessed = {};
|
|
@@ -825,9 +825,9 @@ function toJSONSchema(data, opts) {
|
|
|
825
825
|
});
|
|
826
826
|
if (hideReadOnlyProperties || hideWriteOnlyProperties) {
|
|
827
827
|
let resolvedRefIsEmpty = false;
|
|
828
|
-
if (
|
|
828
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, converted) && usedSchemas) {
|
|
829
829
|
const cached = usedSchemas.get(converted.$ref);
|
|
830
|
-
if (cached && !
|
|
830
|
+
if (cached && !_chunk7PWF3F2Wcjs.isRef.call(void 0, cached) && !isPendingSchema(cached) && Object.keys(cached).length === 0) {
|
|
831
831
|
resolvedRefIsEmpty = true;
|
|
832
832
|
}
|
|
833
833
|
}
|
|
@@ -848,7 +848,7 @@ function toJSONSchema(data, opts) {
|
|
|
848
848
|
const allOfOptions = allOfSchemas.length > 1 ? { ...polyOptions, refLogger: () => {
|
|
849
849
|
} } : polyOptions;
|
|
850
850
|
allOfSchemas = allOfSchemas.map((item) => {
|
|
851
|
-
if (
|
|
851
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, item)) {
|
|
852
852
|
if (Object.keys(item).length === 1) {
|
|
853
853
|
return resolveAndCacheRefSchema({
|
|
854
854
|
schema: item,
|
|
@@ -902,7 +902,7 @@ function toJSONSchema(data, opts) {
|
|
|
902
902
|
};
|
|
903
903
|
const requiredSet = new Set(Array.isArray(fallback.required) ? fallback.required : []);
|
|
904
904
|
for (const branch of branches) {
|
|
905
|
-
if (!branch || typeof branch !== "object" ||
|
|
905
|
+
if (!branch || typeof branch !== "object" || _chunk7PWF3F2Wcjs.isRef.call(void 0, branch)) continue;
|
|
906
906
|
if (fallback.type === void 0 && "type" in branch && branch.type !== void 0) {
|
|
907
907
|
fallback.type = branch.type;
|
|
908
908
|
}
|
|
@@ -933,7 +933,7 @@ function toJSONSchema(data, opts) {
|
|
|
933
933
|
collectRefsInSchema(schema).forEach((ref) => {
|
|
934
934
|
refLogger(ref, "ref");
|
|
935
935
|
});
|
|
936
|
-
if (
|
|
936
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, schema)) {
|
|
937
937
|
refLogger(schema.$ref, "ref");
|
|
938
938
|
return schema;
|
|
939
939
|
}
|
|
@@ -991,7 +991,7 @@ function toJSONSchema(data, opts) {
|
|
|
991
991
|
delete childSchema.anyOf;
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
if (definition && usedSchemas &&
|
|
994
|
+
if (definition && usedSchemas && _chunk7PWF3F2Wcjs.isRef.call(void 0, childSchema)) {
|
|
995
995
|
const resolved = usedSchemas.get(childSchema.$ref);
|
|
996
996
|
if (resolved && typeof resolved === "object" && !isPendingSchema(resolved)) {
|
|
997
997
|
if ("discriminator" in resolved) {
|
|
@@ -1112,7 +1112,7 @@ function toJSONSchema(data, opts) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
if (
|
|
1115
|
+
if (_chunk7PWF3F2Wcjs.isSchema.call(void 0, schema, isPolymorphicAllOfChild)) {
|
|
1116
1116
|
if ("default" in schema && isObject(schema.default)) {
|
|
1117
1117
|
prevDefaultSchemas.push({ default: schema.default });
|
|
1118
1118
|
}
|
|
@@ -1136,7 +1136,7 @@ function toJSONSchema(data, opts) {
|
|
|
1136
1136
|
let currentExample = example;
|
|
1137
1137
|
if (name === "$ref") {
|
|
1138
1138
|
currentExample = dereferenceRef({ $ref: currentExample }, definition, seenRefs);
|
|
1139
|
-
if (!currentExample ||
|
|
1139
|
+
if (!currentExample || _chunk7PWF3F2Wcjs.isRef.call(void 0, currentExample)) {
|
|
1140
1140
|
refLogger(currentExample.$ref, "ref");
|
|
1141
1141
|
return;
|
|
1142
1142
|
}
|
|
@@ -1176,7 +1176,7 @@ function toJSONSchema(data, opts) {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
if (hasSchemaType(schema, "array")) {
|
|
1178
1178
|
if ("items" in schema && schema.items !== void 0) {
|
|
1179
|
-
if (!(definition && usedSchemas) && !Array.isArray(schema.items) && Object.keys(schema.items).length === 1 &&
|
|
1179
|
+
if (!(definition && usedSchemas) && !Array.isArray(schema.items) && Object.keys(schema.items).length === 1 && _chunk7PWF3F2Wcjs.isRef.call(void 0, schema.items)) {
|
|
1180
1180
|
refLogger(schema.items.$ref, "ref");
|
|
1181
1181
|
} else if (schema.items !== true) {
|
|
1182
1182
|
schema.items = toJSONSchema(schema.items, {
|
|
@@ -1214,9 +1214,9 @@ function toJSONSchema(data, opts) {
|
|
|
1214
1214
|
let propShouldBeUpdated = true;
|
|
1215
1215
|
if (hideReadOnlyProperties || hideWriteOnlyProperties) {
|
|
1216
1216
|
let resolvedRefIsEmpty = false;
|
|
1217
|
-
if (
|
|
1217
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, newPropSchema) && usedSchemas) {
|
|
1218
1218
|
const cached = usedSchemas.get(newPropSchema.$ref);
|
|
1219
|
-
if (cached && !
|
|
1219
|
+
if (cached && !_chunk7PWF3F2Wcjs.isRef.call(void 0, cached) && !isPendingSchema(cached) && Object.keys(cached).length === 0) {
|
|
1220
1220
|
resolvedRefIsEmpty = true;
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
@@ -1264,7 +1264,7 @@ function toJSONSchema(data, opts) {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
if (
|
|
1267
|
+
if (_chunk7PWF3F2Wcjs.isSchema.call(void 0, schema, isPolymorphicAllOfChild) && globalDefaults && Object.keys(globalDefaults).length > 0 && currentLocation) {
|
|
1268
1268
|
try {
|
|
1269
1269
|
const userJwtDefault = _jsonpointer2.default.get(globalDefaults, currentLocation);
|
|
1270
1270
|
if (userJwtDefault) {
|
|
@@ -1286,7 +1286,7 @@ function toJSONSchema(data, opts) {
|
|
|
1286
1286
|
schema.default = foundDefault;
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
if (
|
|
1289
|
+
if (_chunk7PWF3F2Wcjs.isSchema.call(void 0, schema, isPolymorphicAllOfChild) && "enum" in schema && Array.isArray(schema.enum)) {
|
|
1290
1290
|
schema.enum = Array.from(new Set(schema.enum));
|
|
1291
1291
|
if (addEnumsToDescriptions) {
|
|
1292
1292
|
const enums = schema.enum.filter((v) => v !== void 0 && (typeof v !== "string" || v.trim() !== "")).map((str) => `\`${str}\``).join(" ");
|
|
@@ -1342,6 +1342,10 @@ ${enums}`;
|
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
1344
|
// src/operation/transformers/get-parameters-as-json-schema.ts
|
|
1345
|
+
var RESERVED_HEADER_PARAMETERS = /* @__PURE__ */ new Set(["accept", "authorization", "content-type"]);
|
|
1346
|
+
function isReservedHeaderParameter(param) {
|
|
1347
|
+
return param.in === "header" && RESERVED_HEADER_PARAMETERS.has(param.name.toLowerCase());
|
|
1348
|
+
}
|
|
1345
1349
|
var types = {
|
|
1346
1350
|
path: "Path Params",
|
|
1347
1351
|
query: "Query Params",
|
|
@@ -1395,9 +1399,9 @@ function getParametersAsJSONSchema(operation, api, opts) {
|
|
|
1395
1399
|
examples: Object.values(mediaTypeObject.examples || {}).map((ex) => {
|
|
1396
1400
|
let example = ex;
|
|
1397
1401
|
if (!example) return;
|
|
1398
|
-
if (
|
|
1402
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
|
|
1399
1403
|
example = dereferenceRef(example, operation.api);
|
|
1400
|
-
if (!example ||
|
|
1404
|
+
if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) return;
|
|
1401
1405
|
}
|
|
1402
1406
|
return example.value;
|
|
1403
1407
|
}).filter((item) => item !== void 0)
|
|
@@ -1427,7 +1431,9 @@ function getParametersAsJSONSchema(operation, api, opts) {
|
|
|
1427
1431
|
const operationParams = operation.getParameters();
|
|
1428
1432
|
const transformed = Object.keys(types).map((type) => {
|
|
1429
1433
|
const required = [];
|
|
1430
|
-
const parameters = operationParams.filter((param) =>
|
|
1434
|
+
const parameters = operationParams.filter((param) => {
|
|
1435
|
+
return param.in === type && !isReservedHeaderParameter(param);
|
|
1436
|
+
});
|
|
1431
1437
|
if (parameters.length === 0) {
|
|
1432
1438
|
return null;
|
|
1433
1439
|
}
|
|
@@ -1524,7 +1530,7 @@ function getParametersAsJSONSchema(operation, api, opts) {
|
|
|
1524
1530
|
}
|
|
1525
1531
|
try {
|
|
1526
1532
|
const resolved = dereferenceRef({ $ref: ref }, api, seenRefs);
|
|
1527
|
-
if (
|
|
1533
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) return;
|
|
1528
1534
|
const converted = toJSONSchema(structuredClone(resolved), {
|
|
1529
1535
|
...baseSchemaOptions,
|
|
1530
1536
|
usedSchemas,
|
|
@@ -1577,4 +1583,4 @@ var SERVER_VARIABLE_REGEX = /{([-_a-zA-Z0-9:.[\]]+)}/g;
|
|
|
1577
1583
|
|
|
1578
1584
|
|
|
1579
1585
|
exports.isObject = isObject; exports.isPrimitive = isPrimitive; exports.decorateComponentSchemasWithRefName = decorateComponentSchemasWithRefName; exports.decodePointer = decodePointer; exports.dereferenceRef = dereferenceRef; exports.dereferenceRefDeep = dereferenceRefDeep; exports.getDereferencingOptions = getDereferencingOptions; exports.collectRefsInSchema = collectRefsInSchema; exports.filterRequiredRefsToReferenced = filterRequiredRefsToReferenced; exports.mergeReferencedSchemasIntoRoot = mergeReferencedSchemasIntoRoot; exports.matches_mimetype_default = matches_mimetype_default; exports.getParameterContentType = getParameterContentType; exports.cloneObject = cloneObject; exports.applyDiscriminatorOneOfToUsedSchemas = applyDiscriminatorOneOfToUsedSchemas; exports.getSchemaVersionString = getSchemaVersionString; exports.toJSONSchema = toJSONSchema; exports.types = types; exports.getParametersAsJSONSchema = getParametersAsJSONSchema; exports.supportedMethods = supportedMethods; exports.SERVER_VARIABLE_REGEX = SERVER_VARIABLE_REGEX;
|
|
1580
|
-
//# sourceMappingURL=chunk-
|
|
1586
|
+
//# sourceMappingURL=chunk-SCWW2SNX.cjs.map
|