oas 38.1.0 → 38.1.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 +15 -15
- package/dist/analyzer/index.js +1 -1
- package/dist/{chunk-EOX2WUUF.js → chunk-2OBRN6YW.js} +24 -23
- package/dist/chunk-2OBRN6YW.js.map +1 -0
- package/dist/{chunk-VSILRJVM.js → chunk-KUSZJDZB.js} +29 -2
- package/dist/chunk-KUSZJDZB.js.map +1 -0
- package/dist/{chunk-ZD7R5BNE.cjs → chunk-LD4LGZBB.cjs} +29 -2
- package/dist/chunk-LD4LGZBB.cjs.map +1 -0
- package/dist/{chunk-SOS76E36.cjs → chunk-MBBCDUMF.cjs} +154 -153
- package/dist/chunk-MBBCDUMF.cjs.map +1 -0
- package/dist/index.cjs +45 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/operation/index.cjs +3 -3
- package/dist/operation/index.js +2 -2
- package/dist/reducer/index.cjs +7 -7
- package/dist/reducer/index.js +1 -1
- package/dist/utils.cjs +2 -2
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-EOX2WUUF.js.map +0 -1
- package/dist/chunk-SOS76E36.cjs.map +0 -1
- package/dist/chunk-VSILRJVM.js.map +0 -1
- package/dist/chunk-ZD7R5BNE.cjs.map +0 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkLD4LGZBBcjs = require('./chunk-LD4LGZBB.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk6HXOZ5GYcjs = require('./chunk-6HXOZ5GY.cjs');
|
|
@@ -40,40 +40,40 @@ function getUserVariable(user, property, selectedApp) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// src/lib/urls.ts
|
|
43
|
+
var PROTOCOL_REGEX = /^[a-z][a-z\d+.-]*:\/\//i;
|
|
43
44
|
function stripTrailingSlash(url) {
|
|
44
45
|
if (url[url.length - 1] === "/") {
|
|
45
46
|
return url.slice(0, -1);
|
|
46
47
|
}
|
|
47
48
|
return url;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
50
|
+
function normalizeURL(url, urlForProtocolCheck = url) {
|
|
51
|
+
const exampleDotCom = "https://example.com";
|
|
52
|
+
if (!url) return exampleDotCom;
|
|
53
|
+
url = stripTrailingSlash(url);
|
|
54
|
+
if (!url) return exampleDotCom;
|
|
55
|
+
if (url.startsWith("/") && !url.startsWith("//")) {
|
|
56
|
+
const urlWithOrigin = new URL(exampleDotCom);
|
|
57
|
+
urlWithOrigin.pathname = url;
|
|
58
|
+
return urlWithOrigin.href;
|
|
59
|
+
}
|
|
60
|
+
if (_optionalChain([urlForProtocolCheck, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("//")])) {
|
|
51
61
|
return `https:${url}`;
|
|
52
62
|
}
|
|
53
|
-
if (!
|
|
63
|
+
if (!PROTOCOL_REGEX.test(_nullishCoalesce(_optionalChain([urlForProtocolCheck, 'optionalAccess', _5 => _5.trim, 'call', _6 => _6()]), () => ( "")))) {
|
|
54
64
|
return `https://${url}`;
|
|
55
65
|
}
|
|
56
66
|
return url;
|
|
57
67
|
}
|
|
58
68
|
function normalizedURLFromServers(servers, selected) {
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
url = stripTrailingSlash(url);
|
|
65
|
-
if (url.startsWith("/") && !url.startsWith("//")) {
|
|
66
|
-
const urlWithOrigin = new URL(exampleDotCom);
|
|
67
|
-
urlWithOrigin.pathname = url;
|
|
68
|
-
url = urlWithOrigin.href;
|
|
69
|
-
}
|
|
70
|
-
} catch (e) {
|
|
71
|
-
url = exampleDotCom;
|
|
72
|
-
}
|
|
73
|
-
return ensureProtocol(url);
|
|
69
|
+
const server = _optionalChain([servers, 'optionalAccess', _7 => _7[selected]]);
|
|
70
|
+
const resolvedUrl = _optionalChain([server, 'optionalAccess', _8 => _8.url, 'optionalAccess', _9 => _9.replace, 'call', _10 => _10(_chunkLD4LGZBBcjs.SERVER_VARIABLE_REGEX, (original, key) => {
|
|
71
|
+
return key in (server.variables || {}) ? String(_optionalChain([server, 'access', _11 => _11.variables, 'optionalAccess', _12 => _12[key], 'access', _13 => _13.default])) : original;
|
|
72
|
+
})]);
|
|
73
|
+
return normalizeURL(_optionalChain([server, 'optionalAccess', _14 => _14.url]), resolvedUrl);
|
|
74
74
|
}
|
|
75
75
|
function variablesFromServers(servers, selected = 0) {
|
|
76
|
-
return _optionalChain([servers, 'optionalAccess',
|
|
76
|
+
return _optionalChain([servers, 'optionalAccess', _15 => _15[selected], 'optionalAccess', _16 => _16.variables]) || {};
|
|
77
77
|
}
|
|
78
78
|
function defaultVariablesFromServers(servers, selected = 0, user = {}) {
|
|
79
79
|
const variables = variablesFromServers(servers, selected);
|
|
@@ -97,18 +97,18 @@ function splitUrlFromServers(servers, selected = 0) {
|
|
|
97
97
|
key
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
const variable = _optionalChain([variables, 'optionalAccess',
|
|
100
|
+
const variable = _optionalChain([variables, 'optionalAccess', _17 => _17[value]]);
|
|
101
101
|
return {
|
|
102
102
|
type: "variable",
|
|
103
103
|
value,
|
|
104
104
|
key,
|
|
105
|
-
description: _optionalChain([variable, 'optionalAccess',
|
|
106
|
-
enum: _optionalChain([variable, 'optionalAccess',
|
|
105
|
+
description: _optionalChain([variable, 'optionalAccess', _18 => _18.description]),
|
|
106
|
+
enum: _optionalChain([variable, 'optionalAccess', _19 => _19.enum])
|
|
107
107
|
};
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
function transformURLIntoRegex(url) {
|
|
111
|
-
return stripTrailingSlash(url.replace(
|
|
111
|
+
return stripTrailingSlash(url.replace(_chunkLD4LGZBBcjs.SERVER_VARIABLE_REGEX, "([-_a-zA-Z0-9:.[\\]]+)"));
|
|
112
112
|
}
|
|
113
113
|
function normalizePath(path) {
|
|
114
114
|
return path.replace(/({?){(.*?)}(}?)/g, (str, ...args) => {
|
|
@@ -124,7 +124,7 @@ function compilePathMatcher(path) {
|
|
|
124
124
|
let matcher = null;
|
|
125
125
|
try {
|
|
126
126
|
matcher = _pathtoregexp.match.call(void 0, cleanedPath, { decode: decodeURIComponent });
|
|
127
|
-
} catch (
|
|
127
|
+
} catch (e) {
|
|
128
128
|
}
|
|
129
129
|
if (matcherCache.size >= MATCHER_CACHE_MAX_SIZE) {
|
|
130
130
|
matcherCache.delete(matcherCache.keys().next().value);
|
|
@@ -142,7 +142,7 @@ function generatePathMatches(paths, pathName, origin) {
|
|
|
142
142
|
let matchResult;
|
|
143
143
|
try {
|
|
144
144
|
matchResult = matcher(prunedPathName);
|
|
145
|
-
} catch (
|
|
145
|
+
} catch (e2) {
|
|
146
146
|
return false;
|
|
147
147
|
}
|
|
148
148
|
const slugs = {};
|
|
@@ -225,7 +225,7 @@ function usesPolymorphism(schema) {
|
|
|
225
225
|
return false;
|
|
226
226
|
}
|
|
227
227
|
function objectify(thing) {
|
|
228
|
-
if (!
|
|
228
|
+
if (!_chunkLD4LGZBBcjs.isObject.call(void 0, thing)) {
|
|
229
229
|
return {};
|
|
230
230
|
}
|
|
231
231
|
return thing;
|
|
@@ -290,7 +290,7 @@ function sampleFromSchema(schema, opts = {}) {
|
|
|
290
290
|
if (seenRefs.has(refToRelease)) {
|
|
291
291
|
return void 0;
|
|
292
292
|
}
|
|
293
|
-
objectifySchema =
|
|
293
|
+
objectifySchema = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
|
|
294
294
|
if (!objectifySchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, objectifySchema)) {
|
|
295
295
|
return void 0;
|
|
296
296
|
}
|
|
@@ -308,7 +308,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
308
308
|
const { example, additionalProperties, properties, items } = schema;
|
|
309
309
|
const { includeReadOnly, includeWriteOnly } = opts;
|
|
310
310
|
if (example !== void 0) {
|
|
311
|
-
return
|
|
311
|
+
return _chunkLD4LGZBBcjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
|
|
312
312
|
}
|
|
313
313
|
const hasPolymorphism = usesPolymorphism(schema);
|
|
314
314
|
if (hasPolymorphism === "allOf") {
|
|
@@ -317,7 +317,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
317
317
|
const resolvedAllOf = schema.allOf.map((subSchema) => {
|
|
318
318
|
let sub = objectify(subSchema);
|
|
319
319
|
if (definition && _chunk7PWF3F2Wcjs.isRef.call(void 0, sub)) {
|
|
320
|
-
const resolved =
|
|
320
|
+
const resolved = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
|
|
321
321
|
if (resolved && !_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) {
|
|
322
322
|
sub = resolved;
|
|
323
323
|
}
|
|
@@ -340,7 +340,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
340
340
|
seenRefs
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
|
-
} catch (
|
|
343
|
+
} catch (e3) {
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
} else if (hasPolymorphism) {
|
|
@@ -367,16 +367,16 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
367
367
|
const props = objectify(properties);
|
|
368
368
|
const obj = {};
|
|
369
369
|
for (const name in props) {
|
|
370
|
-
if (_optionalChain([props, 'optionalAccess',
|
|
370
|
+
if (_optionalChain([props, 'optionalAccess', _20 => _20[name], 'access', _21 => _21.deprecated])) {
|
|
371
371
|
continue;
|
|
372
372
|
}
|
|
373
|
-
if (_optionalChain([props, 'optionalAccess',
|
|
373
|
+
if (_optionalChain([props, 'optionalAccess', _22 => _22[name], 'access', _23 => _23.readOnly]) && !includeReadOnly) {
|
|
374
374
|
continue;
|
|
375
375
|
}
|
|
376
|
-
if (_optionalChain([props, 'optionalAccess',
|
|
376
|
+
if (_optionalChain([props, 'optionalAccess', _24 => _24[name], 'access', _25 => _25.writeOnly]) && !includeWriteOnly) {
|
|
377
377
|
continue;
|
|
378
378
|
}
|
|
379
|
-
if (_optionalChain([props, 'access',
|
|
379
|
+
if (_optionalChain([props, 'access', _26 => _26[name], 'access', _27 => _27.examples, 'optionalAccess', _28 => _28.length])) {
|
|
380
380
|
obj[name] = props[name].examples[0];
|
|
381
381
|
continue;
|
|
382
382
|
}
|
|
@@ -428,8 +428,8 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
428
428
|
// src/operation/lib/get-mediatype-examples.ts
|
|
429
429
|
function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
|
|
430
430
|
if (mediaTypeObject.example) {
|
|
431
|
-
mediaTypeObject.example =
|
|
432
|
-
if (mediaTypeObject.example === void 0 ||
|
|
431
|
+
mediaTypeObject.example = _chunkLD4LGZBBcjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
|
|
432
|
+
if (mediaTypeObject.example === void 0 || _chunkLD4LGZBBcjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
|
|
433
433
|
return [];
|
|
434
434
|
}
|
|
435
435
|
return [
|
|
@@ -445,7 +445,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
445
445
|
let example = examples[key];
|
|
446
446
|
if (example !== null && typeof example === "object") {
|
|
447
447
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
|
|
448
|
-
example =
|
|
448
|
+
example = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, example, definition);
|
|
449
449
|
if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
|
|
450
450
|
return false;
|
|
451
451
|
}
|
|
@@ -457,8 +457,8 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
457
457
|
description = example.description;
|
|
458
458
|
}
|
|
459
459
|
if ("value" in example) {
|
|
460
|
-
example.value =
|
|
461
|
-
if (example.value === void 0 ||
|
|
460
|
+
example.value = _chunkLD4LGZBBcjs.dereferenceRefDeep.call(void 0, example.value, definition);
|
|
461
|
+
if (example.value === void 0 || _chunkLD4LGZBBcjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
|
|
462
462
|
return false;
|
|
463
463
|
}
|
|
464
464
|
example = example.value;
|
|
@@ -475,7 +475,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
if (mediaTypeObject.schema) {
|
|
478
|
-
if (!
|
|
478
|
+
if (!_chunkLD4LGZBBcjs.matches_mimetype_default.xml(mediaType)) {
|
|
479
479
|
return [
|
|
480
480
|
{
|
|
481
481
|
value: sampleFromSchema(structuredClone(mediaTypeObject.schema), {
|
|
@@ -492,17 +492,17 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
492
492
|
// src/operation/lib/get-response-examples.ts
|
|
493
493
|
function getResponseExamples(operation, definition) {
|
|
494
494
|
return Object.keys(operation.responses || {}).map((status) => {
|
|
495
|
-
let response = _optionalChain([operation, 'access',
|
|
495
|
+
let response = _optionalChain([operation, 'access', _29 => _29.responses, 'optionalAccess', _30 => _30[status]]);
|
|
496
496
|
let onlyHeaders = false;
|
|
497
497
|
if (!response) return false;
|
|
498
498
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
499
|
-
response =
|
|
499
|
+
response = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, response, definition);
|
|
500
500
|
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) return false;
|
|
501
501
|
}
|
|
502
502
|
const mediaTypes = {};
|
|
503
|
-
(_optionalChain([response, 'optionalAccess',
|
|
503
|
+
(_optionalChain([response, 'optionalAccess', _31 => _31.content]) ? Object.keys(response.content) : []).forEach((mediaType) => {
|
|
504
504
|
if (!mediaType) return;
|
|
505
|
-
const mediaTypeObject = _optionalChain([response, 'access',
|
|
505
|
+
const mediaTypeObject = _optionalChain([response, 'access', _32 => _32.content, 'optionalAccess', _33 => _33[mediaType]]);
|
|
506
506
|
if (!mediaTypeObject) return;
|
|
507
507
|
const examples = getMediaTypeExamples(mediaType, mediaTypeObject, definition, {
|
|
508
508
|
includeReadOnly: true,
|
|
@@ -533,17 +533,17 @@ function getCallbackExamples(operation, definition) {
|
|
|
533
533
|
return [];
|
|
534
534
|
}
|
|
535
535
|
const examples = Object.keys(operation.callbacks).map((identifier) => {
|
|
536
|
-
let callback = _optionalChain([operation, 'access',
|
|
536
|
+
let callback = _optionalChain([operation, 'access', _34 => _34.callbacks, 'optionalAccess', _35 => _35[identifier]]);
|
|
537
537
|
if (!callback) return [];
|
|
538
538
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
|
|
539
|
-
callback =
|
|
539
|
+
callback = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, callback, definition);
|
|
540
540
|
if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) return [];
|
|
541
541
|
}
|
|
542
542
|
const items = Object.keys(callback).map((expression) => {
|
|
543
543
|
let callbackPath = callback[expression];
|
|
544
544
|
if (!callbackPath) return [];
|
|
545
545
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
|
|
546
|
-
callbackPath =
|
|
546
|
+
callbackPath = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, callbackPath, definition);
|
|
547
547
|
if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) return [];
|
|
548
548
|
}
|
|
549
549
|
return Object.keys(callbackPath).map((method) => {
|
|
@@ -593,7 +593,7 @@ function getExampleGroups(operation) {
|
|
|
593
593
|
const namelessCodeSampleCounts = {};
|
|
594
594
|
const groups = {};
|
|
595
595
|
const codeSamples = _chunk6HXOZ5GYcjs.getExtension.call(void 0, "code-samples", operation.api, operation);
|
|
596
|
-
_optionalChain([codeSamples, 'optionalAccess',
|
|
596
|
+
_optionalChain([codeSamples, 'optionalAccess', _36 => _36.forEach, 'call', _37 => _37((sample, i) => {
|
|
597
597
|
if (namelessCodeSampleCounts[sample.language]) {
|
|
598
598
|
namelessCodeSampleCounts[sample.language] += 1;
|
|
599
599
|
} else {
|
|
@@ -601,7 +601,7 @@ function getExampleGroups(operation) {
|
|
|
601
601
|
}
|
|
602
602
|
const name = getDefaultName(sample, namelessCodeSampleCounts);
|
|
603
603
|
if (sample.correspondingExample) {
|
|
604
|
-
if (_optionalChain([groups, 'access',
|
|
604
|
+
if (_optionalChain([groups, 'access', _38 => _38[sample.correspondingExample], 'optionalAccess', _39 => _39.customCodeSamples, 'optionalAccess', _40 => _40.length])) {
|
|
605
605
|
groups[sample.correspondingExample].customCodeSamples.push({ ...sample, name, originalIndex: i });
|
|
606
606
|
} else if (sample.correspondingExample) {
|
|
607
607
|
groups[sample.correspondingExample] = {
|
|
@@ -609,7 +609,7 @@ function getExampleGroups(operation) {
|
|
|
609
609
|
customCodeSamples: [{ ...sample, name, originalIndex: i }]
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
} else if (_optionalChain([groups, 'access',
|
|
612
|
+
} else if (_optionalChain([groups, 'access', _41 => _41[noCorrespondingResponseKey], 'optionalAccess', _42 => _42.customCodeSamples, 'optionalAccess', _43 => _43.length])) {
|
|
613
613
|
groups[noCorrespondingResponseKey].customCodeSamples.push({ ...sample, name, originalIndex: i });
|
|
614
614
|
} else {
|
|
615
615
|
groups[noCorrespondingResponseKey] = {
|
|
@@ -626,16 +626,16 @@ function getExampleGroups(operation) {
|
|
|
626
626
|
Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
|
|
627
627
|
let example = paramExample;
|
|
628
628
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
|
|
629
|
-
example =
|
|
629
|
+
example = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, example, operation.api);
|
|
630
630
|
if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) return;
|
|
631
631
|
}
|
|
632
632
|
groups[exampleKey] = {
|
|
633
633
|
...groups[exampleKey],
|
|
634
|
-
name: _optionalChain([groups, 'access',
|
|
634
|
+
name: _optionalChain([groups, 'access', _44 => _44[exampleKey], 'optionalAccess', _45 => _45.name]) || example.summary || exampleKey,
|
|
635
635
|
request: {
|
|
636
|
-
..._optionalChain([groups, 'access',
|
|
636
|
+
..._optionalChain([groups, 'access', _46 => _46[exampleKey], 'optionalAccess', _47 => _47.request]),
|
|
637
637
|
[param.in]: {
|
|
638
|
-
..._optionalChain([groups, 'access',
|
|
638
|
+
..._optionalChain([groups, 'access', _48 => _48[exampleKey], 'optionalAccess', _49 => _49.request, 'optionalAccess', _50 => _50[param.in]]),
|
|
639
639
|
[param.name]: example.value
|
|
640
640
|
}
|
|
641
641
|
}
|
|
@@ -648,9 +648,9 @@ function getExampleGroups(operation) {
|
|
|
648
648
|
const mediaType = requestExample.mediaType === "application/x-www-form-urlencoded" ? "formData" : "body";
|
|
649
649
|
groups[mediaTypeExample.title] = {
|
|
650
650
|
...groups[mediaTypeExample.title],
|
|
651
|
-
name: _optionalChain([groups, 'access',
|
|
651
|
+
name: _optionalChain([groups, 'access', _51 => _51[mediaTypeExample.title], 'optionalAccess', _52 => _52.name]) || mediaTypeExample.summary || mediaTypeExample.title,
|
|
652
652
|
request: {
|
|
653
|
-
..._optionalChain([groups, 'access',
|
|
653
|
+
..._optionalChain([groups, 'access', _53 => _53[mediaTypeExample.title], 'optionalAccess', _54 => _54.request]),
|
|
654
654
|
[mediaType]: mediaTypeExample.value
|
|
655
655
|
}
|
|
656
656
|
};
|
|
@@ -674,7 +674,7 @@ function getRequestBodyExamples(operation, definition) {
|
|
|
674
674
|
if (!requestBody) {
|
|
675
675
|
return [];
|
|
676
676
|
} else if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
677
|
-
requestBody =
|
|
677
|
+
requestBody = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, requestBody, definition);
|
|
678
678
|
}
|
|
679
679
|
if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
|
|
680
680
|
return [];
|
|
@@ -697,11 +697,11 @@ function getRequestBodyExamples(operation, definition) {
|
|
|
697
697
|
|
|
698
698
|
// src/operation/lib/operationId.ts
|
|
699
699
|
function hasOperationId(operation) {
|
|
700
|
-
return Boolean("operationId" in operation && _optionalChain([operation, 'access',
|
|
700
|
+
return Boolean("operationId" in operation && _optionalChain([operation, 'access', _55 => _55.operationId, 'optionalAccess', _56 => _56.length]));
|
|
701
701
|
}
|
|
702
702
|
function getOperationId(path, method, operation, opts = {}) {
|
|
703
703
|
function sanitize(id) {
|
|
704
|
-
return id.replace(_optionalChain([opts, 'optionalAccess',
|
|
704
|
+
return id.replace(_optionalChain([opts, 'optionalAccess', _57 => _57.camelCase]) || _optionalChain([opts, 'optionalAccess', _58 => _58.friendlyCase]) ? /[^a-zA-Z0-9_]/g : /[^a-zA-Z0-9]/g, "-").replace(/--+/g, "-").replace(/^-|-$/g, "");
|
|
705
705
|
}
|
|
706
706
|
const operationIdExists = hasOperationId(operation);
|
|
707
707
|
let operationId;
|
|
@@ -711,8 +711,8 @@ function getOperationId(path, method, operation, opts = {}) {
|
|
|
711
711
|
operationId = sanitize(path).toLowerCase();
|
|
712
712
|
}
|
|
713
713
|
const currMethod = method.toLowerCase();
|
|
714
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
715
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
714
|
+
if (_optionalChain([opts, 'optionalAccess', _59 => _59.camelCase]) || _optionalChain([opts, 'optionalAccess', _60 => _60.friendlyCase])) {
|
|
715
|
+
if (_optionalChain([opts, 'optionalAccess', _61 => _61.friendlyCase])) {
|
|
716
716
|
operationId = operationId.replaceAll("_", " ");
|
|
717
717
|
if (!operationIdExists) {
|
|
718
718
|
operationId = operationId.replace(/[^a-zA-Z0-9_]+(.)/g, (_, chr) => ` ${chr}`).split(" ").filter((word, i, arr) => word !== arr[i - 1]).join(" ");
|
|
@@ -739,7 +739,7 @@ function getOperationId(path, method, operation, opts = {}) {
|
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
// src/operation/transformers/get-response-as-json-schema.ts
|
|
742
|
-
var isJSON =
|
|
742
|
+
var isJSON = _chunkLD4LGZBBcjs.matches_mimetype_default.json;
|
|
743
743
|
function buildHeadersSchema(response, schemaOptions) {
|
|
744
744
|
const headersSchema = {
|
|
745
745
|
type: "object",
|
|
@@ -749,10 +749,10 @@ function buildHeadersSchema(response, schemaOptions) {
|
|
|
749
749
|
const seenRefs = _nullishCoalesce(schemaOptions.seenRefs, () => ( /* @__PURE__ */ new Set()));
|
|
750
750
|
if (response.headers) {
|
|
751
751
|
Object.keys(response.headers).forEach((key) => {
|
|
752
|
-
let headerEntry = _optionalChain([response, 'access',
|
|
752
|
+
let headerEntry = _optionalChain([response, 'access', _62 => _62.headers, 'optionalAccess', _63 => _63[key]]);
|
|
753
753
|
if (!headerEntry) return;
|
|
754
754
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) {
|
|
755
|
-
headerEntry =
|
|
755
|
+
headerEntry = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
|
|
756
756
|
if (!headerEntry || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) return;
|
|
757
757
|
}
|
|
758
758
|
if (headerEntry.schema) {
|
|
@@ -760,10 +760,10 @@ function buildHeadersSchema(response, schemaOptions) {
|
|
|
760
760
|
let headerSchema = header.schema;
|
|
761
761
|
if (!headerSchema) return;
|
|
762
762
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) {
|
|
763
|
-
headerSchema =
|
|
763
|
+
headerSchema = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
|
|
764
764
|
if (!headerSchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) return;
|
|
765
765
|
}
|
|
766
|
-
headersSchema.properties[key] =
|
|
766
|
+
headersSchema.properties[key] = _chunkLD4LGZBBcjs.toJSONSchema.call(void 0, _chunkLD4LGZBBcjs.cloneObject.call(void 0, headerSchema), {
|
|
767
767
|
addEnumsToDescriptions: true,
|
|
768
768
|
...schemaOptions
|
|
769
769
|
});
|
|
@@ -817,35 +817,35 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
817
817
|
}
|
|
818
818
|
if (preferredContentType) {
|
|
819
819
|
if (contentTypes.includes(preferredContentType)) {
|
|
820
|
-
const schema2 =
|
|
820
|
+
const schema2 = _chunkLD4LGZBBcjs.cloneObject.call(void 0, content[preferredContentType].schema);
|
|
821
821
|
if (!schema2) {
|
|
822
822
|
return null;
|
|
823
823
|
}
|
|
824
|
-
return
|
|
824
|
+
return _chunkLD4LGZBBcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
825
825
|
}
|
|
826
826
|
return null;
|
|
827
827
|
}
|
|
828
828
|
for (let i = 0; i < contentTypes.length; i++) {
|
|
829
829
|
if (isJSON(contentTypes[i])) {
|
|
830
|
-
const schema2 =
|
|
830
|
+
const schema2 = _chunkLD4LGZBBcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
|
|
831
831
|
if (!schema2) {
|
|
832
832
|
return {};
|
|
833
833
|
}
|
|
834
|
-
return
|
|
834
|
+
return _chunkLD4LGZBBcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
const contentType = contentTypes.shift();
|
|
838
838
|
if (!contentType) {
|
|
839
839
|
return {};
|
|
840
840
|
}
|
|
841
|
-
const schema =
|
|
841
|
+
const schema = _chunkLD4LGZBBcjs.cloneObject.call(void 0, content[contentType].schema);
|
|
842
842
|
if (!schema) {
|
|
843
843
|
return {};
|
|
844
844
|
}
|
|
845
|
-
return
|
|
845
|
+
return _chunkLD4LGZBBcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
|
|
846
846
|
}
|
|
847
|
-
const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess',
|
|
848
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
847
|
+
const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _64 => _64.contentType]));
|
|
848
|
+
if (_optionalChain([opts, 'optionalAccess', _65 => _65.contentType]) && !foundSchema) {
|
|
849
849
|
return null;
|
|
850
850
|
}
|
|
851
851
|
if (foundSchema) {
|
|
@@ -861,37 +861,37 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
861
861
|
// able to render so instead of generating a JSON Schema with an `undefined` type we should
|
|
862
862
|
// default to `string` so there's at least *something* the end-user can interact with.
|
|
863
863
|
type: _nullishCoalesce(schemaType, () => ( "string")),
|
|
864
|
-
schema:
|
|
864
|
+
schema: _chunkLD4LGZBBcjs.isPrimitive.call(void 0, schema) ? schema : {
|
|
865
865
|
...schema,
|
|
866
|
-
$schema:
|
|
866
|
+
$schema: _chunkLD4LGZBBcjs.getSchemaVersionString.call(void 0, schema, api)
|
|
867
867
|
},
|
|
868
868
|
label: "Response body"
|
|
869
869
|
};
|
|
870
870
|
if (response.description && schemaWrapper.schema) {
|
|
871
871
|
schemaWrapper.description = response.description;
|
|
872
872
|
}
|
|
873
|
-
|
|
873
|
+
_chunkLD4LGZBBcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
|
|
874
874
|
if (usedSchemas.has(ref)) {
|
|
875
875
|
return usedSchemas.get(ref);
|
|
876
876
|
}
|
|
877
877
|
try {
|
|
878
|
-
const resolved =
|
|
878
|
+
const resolved = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
|
|
879
879
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) return;
|
|
880
|
-
const converted =
|
|
880
|
+
const converted = _chunkLD4LGZBBcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
|
|
881
881
|
...baseSchemaOptions,
|
|
882
882
|
seenRefs
|
|
883
883
|
});
|
|
884
884
|
usedSchemas.set(ref, converted);
|
|
885
885
|
return converted;
|
|
886
|
-
} catch (
|
|
886
|
+
} catch (e4) {
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
889
|
if (schemaWrapper.schema && usedSchemas.size > 0) {
|
|
890
|
-
const refsInOutput =
|
|
890
|
+
const refsInOutput = _chunkLD4LGZBBcjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
|
|
891
891
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
|
|
892
|
-
const referencedSchemas =
|
|
892
|
+
const referencedSchemas = _chunkLD4LGZBBcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
|
|
893
893
|
if (referencedSchemas.size > 0) {
|
|
894
|
-
|
|
894
|
+
_chunkLD4LGZBBcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
jsonSchema.push(schemaWrapper);
|
|
@@ -903,10 +903,10 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
903
903
|
});
|
|
904
904
|
if (headersWrapper.schema && usedSchemas.size > 0) {
|
|
905
905
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
|
|
906
|
-
const refsInOutput =
|
|
907
|
-
const referencedSchemas =
|
|
906
|
+
const refsInOutput = _chunkLD4LGZBBcjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
|
|
907
|
+
const referencedSchemas = _chunkLD4LGZBBcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
|
|
908
908
|
if (referencedSchemas.size > 0) {
|
|
909
|
-
|
|
909
|
+
_chunkLD4LGZBBcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
jsonSchema.push(headersWrapper);
|
|
@@ -983,11 +983,11 @@ var Operation = class {
|
|
|
983
983
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-summary}
|
|
984
984
|
*/
|
|
985
985
|
getSummary() {
|
|
986
|
-
if (_optionalChain([this, 'access',
|
|
986
|
+
if (_optionalChain([this, 'access', _66 => _66.schema, 'optionalAccess', _67 => _67.summary]) && typeof this.schema.summary === "string") {
|
|
987
987
|
return this.schema.summary;
|
|
988
988
|
}
|
|
989
|
-
const pathItem = _optionalChain([this, 'access',
|
|
990
|
-
if (_optionalChain([pathItem, 'optionalAccess',
|
|
989
|
+
const pathItem = _optionalChain([this, 'access', _68 => _68.api, 'access', _69 => _69.paths, 'optionalAccess', _70 => _70[this.path]]);
|
|
990
|
+
if (_optionalChain([pathItem, 'optionalAccess', _71 => _71.summary]) && typeof pathItem.summary === "string") {
|
|
991
991
|
return pathItem.summary;
|
|
992
992
|
}
|
|
993
993
|
return void 0;
|
|
@@ -999,11 +999,11 @@ var Operation = class {
|
|
|
999
999
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-description}
|
|
1000
1000
|
*/
|
|
1001
1001
|
getDescription() {
|
|
1002
|
-
if (_optionalChain([this, 'access',
|
|
1002
|
+
if (_optionalChain([this, 'access', _72 => _72.schema, 'optionalAccess', _73 => _73.description]) && typeof this.schema.description === "string") {
|
|
1003
1003
|
return this.schema.description;
|
|
1004
1004
|
}
|
|
1005
|
-
const pathItem = _optionalChain([this, 'access',
|
|
1006
|
-
if (_optionalChain([pathItem, 'optionalAccess',
|
|
1005
|
+
const pathItem = _optionalChain([this, 'access', _74 => _74.api, 'access', _75 => _75.paths, 'optionalAccess', _76 => _76[this.path]]);
|
|
1006
|
+
if (_optionalChain([pathItem, 'optionalAccess', _77 => _77.description]) && typeof pathItem.description === "string") {
|
|
1007
1007
|
return pathItem.description;
|
|
1008
1008
|
}
|
|
1009
1009
|
return void 0;
|
|
@@ -1013,20 +1013,21 @@ var Operation = class {
|
|
|
1013
1013
|
* operation-level servers, then path-item servers, then root-level servers.
|
|
1014
1014
|
*/
|
|
1015
1015
|
getServers() {
|
|
1016
|
-
if (_optionalChain([this, 'access',
|
|
1016
|
+
if (_optionalChain([this, 'access', _78 => _78.schema, 'access', _79 => _79.servers, 'optionalAccess', _80 => _80.length])) {
|
|
1017
1017
|
return this.schema.servers;
|
|
1018
1018
|
}
|
|
1019
|
-
if (_optionalChain([this, 'access',
|
|
1020
|
-
const pathItem =
|
|
1021
|
-
if (pathItem && !_chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem) && _optionalChain([pathItem, 'access',
|
|
1019
|
+
if (_optionalChain([this, 'access', _81 => _81.api, 'access', _82 => _82.paths, 'optionalAccess', _83 => _83[this.path]])) {
|
|
1020
|
+
const pathItem = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, this.api.paths[this.path], this.api);
|
|
1021
|
+
if (pathItem && !_chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem) && _optionalChain([pathItem, 'access', _84 => _84.servers, 'optionalAccess', _85 => _85.length])) {
|
|
1022
1022
|
return pathItem.servers;
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
return this.api.servers || [];
|
|
1026
1026
|
}
|
|
1027
1027
|
url(selected = 0, variables) {
|
|
1028
|
-
const url =
|
|
1029
|
-
|
|
1028
|
+
const url = _optionalChain([this, 'access', _86 => _86.getServers, 'call', _87 => _87(), 'access', _88 => _88[selected], 'optionalAccess', _89 => _89.url]);
|
|
1029
|
+
const resolvedUrl = url ? this.oas.replaceUrl(url, variables || this.defaultVariables(selected)) : void 0;
|
|
1030
|
+
return normalizeURL(resolvedUrl).trim();
|
|
1030
1031
|
}
|
|
1031
1032
|
variables(selected = 0) {
|
|
1032
1033
|
return variablesFromServers(this.getServers(), selected);
|
|
@@ -1051,18 +1052,18 @@ var Operation = class {
|
|
|
1051
1052
|
let types = [];
|
|
1052
1053
|
if (this.schema.requestBody) {
|
|
1053
1054
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.requestBody)) {
|
|
1054
|
-
this.schema.requestBody =
|
|
1055
|
+
this.schema.requestBody = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
|
|
1055
1056
|
}
|
|
1056
1057
|
if (this.schema.requestBody && "content" in this.schema.requestBody) {
|
|
1057
1058
|
types = Object.keys(this.schema.requestBody.content);
|
|
1058
1059
|
}
|
|
1059
1060
|
}
|
|
1060
1061
|
this.contentType = "application/json";
|
|
1061
|
-
if (_optionalChain([types, 'optionalAccess',
|
|
1062
|
+
if (_optionalChain([types, 'optionalAccess', _90 => _90.length])) {
|
|
1062
1063
|
this.contentType = types[0];
|
|
1063
1064
|
}
|
|
1064
1065
|
types.forEach((t) => {
|
|
1065
|
-
if (
|
|
1066
|
+
if (_chunkLD4LGZBBcjs.matches_mimetype_default.json(t)) {
|
|
1066
1067
|
this.contentType = t;
|
|
1067
1068
|
}
|
|
1068
1069
|
});
|
|
@@ -1075,7 +1076,7 @@ var Operation = class {
|
|
|
1075
1076
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
1076
1077
|
*/
|
|
1077
1078
|
isFormUrlEncoded() {
|
|
1078
|
-
return
|
|
1079
|
+
return _chunkLD4LGZBBcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
|
|
1079
1080
|
}
|
|
1080
1081
|
/**
|
|
1081
1082
|
* Checks if the current operation has a mutipart content type payload.
|
|
@@ -1084,7 +1085,7 @@ var Operation = class {
|
|
|
1084
1085
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
1085
1086
|
*/
|
|
1086
1087
|
isMultipart() {
|
|
1087
|
-
return
|
|
1088
|
+
return _chunkLD4LGZBBcjs.matches_mimetype_default.multipart(this.getContentType());
|
|
1088
1089
|
}
|
|
1089
1090
|
/**
|
|
1090
1091
|
* Checks if the current operation has a JSON-like content type payload.
|
|
@@ -1093,7 +1094,7 @@ var Operation = class {
|
|
|
1093
1094
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
1094
1095
|
*/
|
|
1095
1096
|
isJson() {
|
|
1096
|
-
return
|
|
1097
|
+
return _chunkLD4LGZBBcjs.matches_mimetype_default.json(this.getContentType());
|
|
1097
1098
|
}
|
|
1098
1099
|
/**
|
|
1099
1100
|
* Checks if the current operation has an XML content type payload.
|
|
@@ -1102,7 +1103,7 @@ var Operation = class {
|
|
|
1102
1103
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
1103
1104
|
*/
|
|
1104
1105
|
isXml() {
|
|
1105
|
-
return
|
|
1106
|
+
return _chunkLD4LGZBBcjs.matches_mimetype_default.xml(this.getContentType());
|
|
1106
1107
|
}
|
|
1107
1108
|
/**
|
|
1108
1109
|
* Checks if the current operation is a webhook or not.
|
|
@@ -1121,7 +1122,7 @@ var Operation = class {
|
|
|
1121
1122
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#security-requirement-object}
|
|
1122
1123
|
*/
|
|
1123
1124
|
getSecurity() {
|
|
1124
|
-
if (!_optionalChain([this, 'access',
|
|
1125
|
+
if (!_optionalChain([this, 'access', _91 => _91.api, 'optionalAccess', _92 => _92.components, 'optionalAccess', _93 => _93.securitySchemes]) || !Object.keys(this.api.components.securitySchemes).length) {
|
|
1125
1126
|
return [];
|
|
1126
1127
|
}
|
|
1127
1128
|
return this.schema.security || this.api.security || [];
|
|
@@ -1141,19 +1142,19 @@ var Operation = class {
|
|
|
1141
1142
|
let keys;
|
|
1142
1143
|
try {
|
|
1143
1144
|
keys = Object.keys(requirement);
|
|
1144
|
-
} catch (
|
|
1145
|
+
} catch (e5) {
|
|
1145
1146
|
return false;
|
|
1146
1147
|
}
|
|
1147
1148
|
const keysWithTypes = keys.map((key) => {
|
|
1148
1149
|
let security;
|
|
1149
1150
|
try {
|
|
1150
|
-
security = _optionalChain([this, 'access',
|
|
1151
|
+
security = _optionalChain([this, 'access', _94 => _94.api, 'optionalAccess', _95 => _95.components, 'optionalAccess', _96 => _96.securitySchemes, 'optionalAccess', _97 => _97[key]]);
|
|
1151
1152
|
if (!security) return false;
|
|
1152
1153
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, security)) {
|
|
1153
|
-
security =
|
|
1154
|
+
security = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, security, this.api);
|
|
1154
1155
|
if (!security || _chunk7PWF3F2Wcjs.isRef.call(void 0, security)) return false;
|
|
1155
1156
|
}
|
|
1156
|
-
} catch (
|
|
1157
|
+
} catch (e6) {
|
|
1157
1158
|
return false;
|
|
1158
1159
|
}
|
|
1159
1160
|
if (!security || _chunk7PWF3F2Wcjs.isRef.call(void 0, security)) return false;
|
|
@@ -1199,7 +1200,7 @@ var Operation = class {
|
|
|
1199
1200
|
if (!prev[security.type]) prev[security.type] = [];
|
|
1200
1201
|
const exists = prev[security.type].some((sec) => sec._key === security.security._key);
|
|
1201
1202
|
if (!exists) {
|
|
1202
|
-
if (_optionalChain([security, 'access',
|
|
1203
|
+
if (_optionalChain([security, 'access', _98 => _98.security, 'optionalAccess', _99 => _99._requirements])) delete security.security._requirements;
|
|
1203
1204
|
prev[security.type].push(security.security);
|
|
1204
1205
|
}
|
|
1205
1206
|
});
|
|
@@ -1231,7 +1232,7 @@ var Operation = class {
|
|
|
1231
1232
|
this.schema.parameters.map((p) => {
|
|
1232
1233
|
let param = p;
|
|
1233
1234
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1234
|
-
param =
|
|
1235
|
+
param = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1235
1236
|
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1236
1237
|
}
|
|
1237
1238
|
if (param.in && param.in === "header") return param.name;
|
|
@@ -1244,20 +1245,20 @@ var Operation = class {
|
|
|
1244
1245
|
let response = this.schema.responses[r];
|
|
1245
1246
|
if (!response) return [];
|
|
1246
1247
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1247
|
-
this.schema.responses[r] =
|
|
1248
|
+
this.schema.responses[r] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1248
1249
|
response = this.schema.responses[r];
|
|
1249
1250
|
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1250
1251
|
return [];
|
|
1251
1252
|
}
|
|
1252
1253
|
}
|
|
1253
|
-
return _optionalChain([response, 'optionalAccess',
|
|
1254
|
+
return _optionalChain([response, 'optionalAccess', _100 => _100.headers]) ? Object.keys(response.headers) : [];
|
|
1254
1255
|
}).reduce((a, b) => a.concat(b), []);
|
|
1255
1256
|
}
|
|
1256
1257
|
if (!this.headers.request.includes("Content-Type") && this.schema.requestBody) {
|
|
1257
1258
|
let requestBody = this.schema.requestBody;
|
|
1258
1259
|
if (requestBody) {
|
|
1259
1260
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
1260
|
-
this.schema.requestBody =
|
|
1261
|
+
this.schema.requestBody = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1261
1262
|
requestBody = this.schema.requestBody;
|
|
1262
1263
|
}
|
|
1263
1264
|
if (requestBody && !_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
|
|
@@ -1267,10 +1268,10 @@ var Operation = class {
|
|
|
1267
1268
|
}
|
|
1268
1269
|
if (this.schema.responses) {
|
|
1269
1270
|
const hasResponseContent = Object.keys(this.schema.responses).some((r) => {
|
|
1270
|
-
let response = _optionalChain([this, 'access',
|
|
1271
|
+
let response = _optionalChain([this, 'access', _101 => _101.schema, 'access', _102 => _102.responses, 'optionalAccess', _103 => _103[r]]);
|
|
1271
1272
|
if (!response) return false;
|
|
1272
1273
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1273
|
-
this.schema.responses[r] =
|
|
1274
|
+
this.schema.responses[r] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1274
1275
|
response = this.schema.responses[r];
|
|
1275
1276
|
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1276
1277
|
return false;
|
|
@@ -1334,7 +1335,7 @@ var Operation = class {
|
|
|
1334
1335
|
return [];
|
|
1335
1336
|
}
|
|
1336
1337
|
const oasTagMap = /* @__PURE__ */ new Map();
|
|
1337
|
-
if (Array.isArray(_optionalChain([this, 'access',
|
|
1338
|
+
if (Array.isArray(_optionalChain([this, 'access', _104 => _104.api, 'optionalAccess', _105 => _105.tags]))) {
|
|
1338
1339
|
this.api.tags.forEach((tag) => {
|
|
1339
1340
|
oasTagMap.set(tag.name, tag);
|
|
1340
1341
|
});
|
|
@@ -1377,18 +1378,18 @@ var Operation = class {
|
|
|
1377
1378
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-parameters}
|
|
1378
1379
|
*/
|
|
1379
1380
|
getParameters() {
|
|
1380
|
-
let parameters = (_optionalChain([this, 'access',
|
|
1381
|
+
let parameters = (_optionalChain([this, 'access', _106 => _106.schema, 'optionalAccess', _107 => _107.parameters]) || []).map((p) => {
|
|
1381
1382
|
let param = p;
|
|
1382
1383
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1383
|
-
param =
|
|
1384
|
+
param = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1384
1385
|
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1385
1386
|
}
|
|
1386
1387
|
return param;
|
|
1387
1388
|
}).filter((param) => param !== void 0);
|
|
1388
|
-
const commonParams = (_optionalChain([this, 'access',
|
|
1389
|
+
const commonParams = (_optionalChain([this, 'access', _108 => _108.api, 'optionalAccess', _109 => _109.paths, 'optionalAccess', _110 => _110[this.path], 'optionalAccess', _111 => _111.parameters]) || []).map((p) => {
|
|
1389
1390
|
let param = p;
|
|
1390
1391
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1391
|
-
param =
|
|
1392
|
+
param = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1392
1393
|
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1393
1394
|
}
|
|
1394
1395
|
return param;
|
|
@@ -1420,8 +1421,8 @@ var Operation = class {
|
|
|
1420
1421
|
*
|
|
1421
1422
|
*/
|
|
1422
1423
|
getParametersAsJSONSchema(opts = {}) {
|
|
1423
|
-
|
|
1424
|
-
return
|
|
1424
|
+
_chunkLD4LGZBBcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1425
|
+
return _chunkLD4LGZBBcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
|
|
1425
1426
|
includeDiscriminatorMappingRefs: true,
|
|
1426
1427
|
...opts
|
|
1427
1428
|
});
|
|
@@ -1440,7 +1441,7 @@ var Operation = class {
|
|
|
1440
1441
|
* this content-type, the function will return null.
|
|
1441
1442
|
*/
|
|
1442
1443
|
getResponseAsJSONSchema(statusCode, opts = {}) {
|
|
1443
|
-
|
|
1444
|
+
_chunkLD4LGZBBcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1444
1445
|
return getResponseAsJSONSchema(this, this.api, statusCode, {
|
|
1445
1446
|
includeDiscriminatorMappingRefs: true,
|
|
1446
1447
|
...opts
|
|
@@ -1453,7 +1454,7 @@ var Operation = class {
|
|
|
1453
1454
|
getResponseStatusCodes() {
|
|
1454
1455
|
if (!this.schema.responses) return [];
|
|
1455
1456
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1456
|
-
this.schema.responses =
|
|
1457
|
+
this.schema.responses = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
|
|
1457
1458
|
if (!this.schema.responses || _chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1458
1459
|
return [];
|
|
1459
1460
|
}
|
|
@@ -1462,7 +1463,7 @@ var Operation = class {
|
|
|
1462
1463
|
if (key.startsWith("x-")) {
|
|
1463
1464
|
return false;
|
|
1464
1465
|
}
|
|
1465
|
-
const response = _optionalChain([this, 'access',
|
|
1466
|
+
const response = _optionalChain([this, 'access', _112 => _112.schema, 'access', _113 => _113.responses, 'optionalAccess', _114 => _114[key]]);
|
|
1466
1467
|
return response && typeof response === "object";
|
|
1467
1468
|
});
|
|
1468
1469
|
}
|
|
@@ -1479,7 +1480,7 @@ var Operation = class {
|
|
|
1479
1480
|
let resp = response;
|
|
1480
1481
|
if (!resp) return;
|
|
1481
1482
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
|
|
1482
|
-
resp =
|
|
1483
|
+
resp = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, resp, this.api);
|
|
1483
1484
|
if (!resp || _chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
|
|
1484
1485
|
return;
|
|
1485
1486
|
}
|
|
@@ -1508,7 +1509,7 @@ var Operation = class {
|
|
|
1508
1509
|
let requestBody = this.schema.requestBody;
|
|
1509
1510
|
if (!requestBody) return false;
|
|
1510
1511
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
1511
|
-
this.schema.requestBody =
|
|
1512
|
+
this.schema.requestBody = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1512
1513
|
requestBody = this.schema.requestBody;
|
|
1513
1514
|
if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
1514
1515
|
return false;
|
|
@@ -1582,7 +1583,7 @@ var Operation = class {
|
|
|
1582
1583
|
let availableMediaType;
|
|
1583
1584
|
const mediaTypes = this.getRequestBodyMediaTypes();
|
|
1584
1585
|
mediaTypes.forEach((mt) => {
|
|
1585
|
-
if (!availableMediaType &&
|
|
1586
|
+
if (!availableMediaType && _chunkLD4LGZBBcjs.matches_mimetype_default.json(mt)) {
|
|
1586
1587
|
availableMediaType = mt;
|
|
1587
1588
|
}
|
|
1588
1589
|
});
|
|
@@ -1609,7 +1610,7 @@ var Operation = class {
|
|
|
1609
1610
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#request-body-examples}
|
|
1610
1611
|
*/
|
|
1611
1612
|
getRequestBodyExamples() {
|
|
1612
|
-
const isRequestExampleValueDefined = typeof _optionalChain([this, 'access',
|
|
1613
|
+
const isRequestExampleValueDefined = typeof _optionalChain([this, 'access', _115 => _115.requestBodyExamples, 'optionalAccess', _116 => _116[0], 'optionalAccess', _117 => _117.examples, 'optionalAccess', _118 => _118[0], 'access', _119 => _119.value]) !== "undefined";
|
|
1613
1614
|
if (this.requestBodyExamples && isRequestExampleValueDefined) {
|
|
1614
1615
|
return this.requestBodyExamples;
|
|
1615
1616
|
}
|
|
@@ -1630,7 +1631,7 @@ var Operation = class {
|
|
|
1630
1631
|
let response = this.schema.responses[statusCode];
|
|
1631
1632
|
if (!response) return false;
|
|
1632
1633
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1633
|
-
this.schema.responses[statusCode] =
|
|
1634
|
+
this.schema.responses[statusCode] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1634
1635
|
response = this.schema.responses[statusCode];
|
|
1635
1636
|
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1636
1637
|
return false;
|
|
@@ -1674,7 +1675,7 @@ var Operation = class {
|
|
|
1674
1675
|
let callbackObj = this.schema.callbacks[identifier];
|
|
1675
1676
|
if (!callbackObj) return false;
|
|
1676
1677
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
|
|
1677
|
-
this.schema.callbacks[identifier] =
|
|
1678
|
+
this.schema.callbacks[identifier] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, callbackObj, this.api);
|
|
1678
1679
|
callbackObj = this.schema.callbacks[identifier];
|
|
1679
1680
|
if (!callbackObj || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
|
|
1680
1681
|
return false;
|
|
@@ -1683,7 +1684,7 @@ var Operation = class {
|
|
|
1683
1684
|
let callback = callbackObj[expression];
|
|
1684
1685
|
if (!callback) return false;
|
|
1685
1686
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
|
|
1686
|
-
callbackObj[expression] =
|
|
1687
|
+
callbackObj[expression] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, callback, this.api);
|
|
1687
1688
|
callback = callbackObj[expression];
|
|
1688
1689
|
if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
|
|
1689
1690
|
return false;
|
|
@@ -1704,10 +1705,10 @@ var Operation = class {
|
|
|
1704
1705
|
if (!this.hasCallbacks()) return [];
|
|
1705
1706
|
const callbacks = [];
|
|
1706
1707
|
Object.keys(this.schema.callbacks).forEach((callback) => {
|
|
1707
|
-
let cb = _optionalChain([this, 'access',
|
|
1708
|
+
let cb = _optionalChain([this, 'access', _120 => _120.schema, 'access', _121 => _121.callbacks, 'optionalAccess', _122 => _122[callback]]);
|
|
1708
1709
|
if (!cb) return;
|
|
1709
1710
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
|
|
1710
|
-
this.schema.callbacks[callback] =
|
|
1711
|
+
this.schema.callbacks[callback] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, cb, this.api);
|
|
1711
1712
|
cb = this.schema.callbacks[callback];
|
|
1712
1713
|
if (!cb || _chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
|
|
1713
1714
|
return;
|
|
@@ -1717,14 +1718,14 @@ var Operation = class {
|
|
|
1717
1718
|
let callbackPath = cb[expression];
|
|
1718
1719
|
if (!callbackPath) return;
|
|
1719
1720
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
|
|
1720
|
-
cb[expression] =
|
|
1721
|
+
cb[expression] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, callbackPath, this.api);
|
|
1721
1722
|
callbackPath = cb[expression];
|
|
1722
1723
|
if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
|
|
1723
1724
|
return;
|
|
1724
1725
|
}
|
|
1725
1726
|
}
|
|
1726
1727
|
Object.keys(callbackPath).forEach((method) => {
|
|
1727
|
-
if (!
|
|
1728
|
+
if (!_chunkLD4LGZBBcjs.supportedMethods.includes(method)) return;
|
|
1728
1729
|
const found = this.getCallback(callback, expression, method);
|
|
1729
1730
|
if (found) {
|
|
1730
1731
|
callbacks.push(found);
|
|
@@ -1767,7 +1768,7 @@ var Operation = class {
|
|
|
1767
1768
|
* @deprecated Use `oas.getExtension(extension, operation)` instead.
|
|
1768
1769
|
*/
|
|
1769
1770
|
getExtension(extension) {
|
|
1770
|
-
return _optionalChain([this, 'access',
|
|
1771
|
+
return _optionalChain([this, 'access', _123 => _123.schema, 'optionalAccess', _124 => _124[extension]]);
|
|
1771
1772
|
}
|
|
1772
1773
|
/**
|
|
1773
1774
|
* Returns an object with groups of all example definitions (body/header/query/path/response/etc.).
|
|
@@ -1817,7 +1818,7 @@ var Callback = class extends Operation {
|
|
|
1817
1818
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-summary}
|
|
1818
1819
|
*/
|
|
1819
1820
|
getSummary() {
|
|
1820
|
-
if (_optionalChain([this, 'access',
|
|
1821
|
+
if (_optionalChain([this, 'access', _125 => _125.schema, 'optionalAccess', _126 => _126.summary]) && typeof this.schema.summary === "string") {
|
|
1821
1822
|
return this.schema.summary;
|
|
1822
1823
|
} else if (this.parentSchema.summary && typeof this.parentSchema.summary === "string") {
|
|
1823
1824
|
return this.parentSchema.summary;
|
|
@@ -1831,7 +1832,7 @@ var Callback = class extends Operation {
|
|
|
1831
1832
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-description}
|
|
1832
1833
|
*/
|
|
1833
1834
|
getDescription() {
|
|
1834
|
-
if (_optionalChain([this, 'access',
|
|
1835
|
+
if (_optionalChain([this, 'access', _127 => _127.schema, 'optionalAccess', _128 => _128.description]) && typeof this.schema.description === "string") {
|
|
1835
1836
|
return this.schema.description;
|
|
1836
1837
|
} else if (this.parentSchema.description && typeof this.parentSchema.description === "string") {
|
|
1837
1838
|
return this.parentSchema.description;
|
|
@@ -1845,10 +1846,10 @@ var Callback = class extends Operation {
|
|
|
1845
1846
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-parameters}
|
|
1846
1847
|
*/
|
|
1847
1848
|
getParameters() {
|
|
1848
|
-
let parameters = (_optionalChain([this, 'access',
|
|
1849
|
+
let parameters = (_optionalChain([this, 'access', _129 => _129.schema, 'optionalAccess', _130 => _130.parameters]) || []).map((p) => {
|
|
1849
1850
|
let param = p;
|
|
1850
1851
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1851
|
-
param =
|
|
1852
|
+
param = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1852
1853
|
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1853
1854
|
}
|
|
1854
1855
|
return param;
|
|
@@ -1856,7 +1857,7 @@ var Callback = class extends Operation {
|
|
|
1856
1857
|
const commonParams = (this.parentSchema.parameters || []).map((p) => {
|
|
1857
1858
|
let param = p;
|
|
1858
1859
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1859
|
-
param =
|
|
1860
|
+
param = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1860
1861
|
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1861
1862
|
}
|
|
1862
1863
|
return param;
|
|
@@ -1875,17 +1876,17 @@ var Webhook = class extends Operation {
|
|
|
1875
1876
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-summary}
|
|
1876
1877
|
*/
|
|
1877
1878
|
getSummary() {
|
|
1878
|
-
if (_optionalChain([this, 'access',
|
|
1879
|
+
if (_optionalChain([this, 'access', _131 => _131.schema, 'optionalAccess', _132 => _132.summary]) && typeof this.schema.summary === "string") {
|
|
1879
1880
|
return this.schema.summary;
|
|
1880
1881
|
} else if (!this.api.webhooks) {
|
|
1881
1882
|
return void 0;
|
|
1882
1883
|
}
|
|
1883
1884
|
let webhookPath = this.api.webhooks[this.path];
|
|
1884
1885
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
|
|
1885
|
-
this.api.webhooks[this.path] =
|
|
1886
|
+
this.api.webhooks[this.path] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1886
1887
|
webhookPath = this.api.webhooks[this.path];
|
|
1887
1888
|
}
|
|
1888
|
-
return _optionalChain([webhookPath, 'optionalAccess',
|
|
1889
|
+
return _optionalChain([webhookPath, 'optionalAccess', _133 => _133.summary]);
|
|
1889
1890
|
}
|
|
1890
1891
|
/**
|
|
1891
1892
|
* Retrieve the `description` for this operation.
|
|
@@ -1894,17 +1895,17 @@ var Webhook = class extends Operation {
|
|
|
1894
1895
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-description}
|
|
1895
1896
|
*/
|
|
1896
1897
|
getDescription() {
|
|
1897
|
-
if (_optionalChain([this, 'access',
|
|
1898
|
+
if (_optionalChain([this, 'access', _134 => _134.schema, 'optionalAccess', _135 => _135.description]) && typeof this.schema.description === "string") {
|
|
1898
1899
|
return this.schema.description;
|
|
1899
1900
|
} else if (!this.api.webhooks) {
|
|
1900
1901
|
return void 0;
|
|
1901
1902
|
}
|
|
1902
1903
|
let webhookPath = this.api.webhooks[this.path];
|
|
1903
1904
|
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
|
|
1904
|
-
this.api.webhooks[this.path] =
|
|
1905
|
+
this.api.webhooks[this.path] = _chunkLD4LGZBBcjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1905
1906
|
webhookPath = this.api.webhooks[this.path];
|
|
1906
1907
|
}
|
|
1907
|
-
return _optionalChain([webhookPath, 'optionalAccess',
|
|
1908
|
+
return _optionalChain([webhookPath, 'optionalAccess', _136 => _136.description]);
|
|
1908
1909
|
}
|
|
1909
1910
|
};
|
|
1910
1911
|
|
|
@@ -1922,7 +1923,7 @@ var Webhook = class extends Operation {
|
|
|
1922
1923
|
|
|
1923
1924
|
|
|
1924
1925
|
|
|
1925
|
-
exports.getUserVariable = getUserVariable; exports.stripTrailingSlash = stripTrailingSlash; exports.
|
|
1926
|
+
exports.getUserVariable = getUserVariable; exports.stripTrailingSlash = stripTrailingSlash; exports.normalizeURL = normalizeURL; exports.variablesFromServers = variablesFromServers; exports.defaultVariablesFromServers = defaultVariablesFromServers; exports.splitUrlFromServers = splitUrlFromServers; exports.transformURLIntoRegex = transformURLIntoRegex; exports.generatePathMatches = generatePathMatches; exports.filterPathMethods = filterPathMethods; exports.findTargetPath = findTargetPath; exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = Webhook;
|
|
1926
1927
|
/**
|
|
1927
1928
|
* Portions of this file have been extracted and modified from Swagger UI.
|
|
1928
1929
|
*
|
|
@@ -1935,4 +1936,4 @@ exports.getUserVariable = getUserVariable; exports.stripTrailingSlash = stripTra
|
|
|
1935
1936
|
* @license Apache-2.0
|
|
1936
1937
|
* @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
|
|
1937
1938
|
*/
|
|
1938
|
-
//# sourceMappingURL=chunk-
|
|
1939
|
+
//# sourceMappingURL=chunk-MBBCDUMF.cjs.map
|