oas 34.0.1 → 34.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzer/index.cjs +6 -6
- package/dist/analyzer/index.js +4 -4
- package/dist/{chunk-GIGPEUAX.cjs → chunk-4CVTOSVQ.cjs} +186 -203
- package/dist/chunk-4CVTOSVQ.cjs.map +1 -0
- package/dist/{chunk-V4IQC5XF.cjs → chunk-6KWJOFQ2.cjs} +37 -37
- package/dist/{chunk-V4IQC5XF.cjs.map → chunk-6KWJOFQ2.cjs.map} +1 -1
- package/dist/{chunk-GQ6E7DXK.js → chunk-6OI7XULA.js} +2 -2
- package/dist/{chunk-OJJWGF3Y.js → chunk-CHFSBT33.js} +8 -5
- package/dist/{chunk-OJJWGF3Y.js.map → chunk-CHFSBT33.js.map} +1 -1
- package/dist/{chunk-A4FUA2VC.cjs → chunk-JGJR6Y6O.cjs} +32 -29
- package/dist/chunk-JGJR6Y6O.cjs.map +1 -0
- package/dist/{chunk-HNSSBMDJ.js → chunk-LIBQ2UJH.js} +8 -25
- package/dist/chunk-LIBQ2UJH.js.map +1 -0
- package/dist/{chunk-PSNTODZL.js → chunk-NM3QL4AB.js} +1 -1
- package/dist/{chunk-PSNTODZL.js.map → chunk-NM3QL4AB.js.map} +1 -1
- package/dist/{chunk-3MTU2ESP.cjs → chunk-NR45NABA.cjs} +1 -1
- package/dist/{chunk-3MTU2ESP.cjs.map → chunk-NR45NABA.cjs.map} +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +4 -4
- package/dist/operation/index.cjs +4 -4
- package/dist/operation/index.js +3 -3
- package/dist/reducer/index.cjs +13 -13
- package/dist/reducer/index.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +4 -1
- package/dist/types.d.ts +4 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-A4FUA2VC.cjs.map +0 -1
- package/dist/chunk-GIGPEUAX.cjs.map +0 -1
- package/dist/chunk-HNSSBMDJ.js.map +0 -1
- /package/dist/{chunk-GQ6E7DXK.js.map → chunk-6OI7XULA.js.map} +0 -0
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk6KWJOFQ2cjs = require('./chunk-6KWJOFQ2.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkAYA3UT4Lcjs = require('./chunk-AYA3UT4L.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkNR45NABAcjs = require('./chunk-NR45NABA.cjs');
|
|
25
25
|
|
|
26
26
|
// src/operation/index.ts
|
|
27
27
|
var _jsonschemarefparser = require('@apidevtools/json-schema-ref-parser');
|
|
@@ -32,7 +32,7 @@ function dedupeCommonParameters(parameters, commonParameters) {
|
|
|
32
32
|
return !parameters.find((param2) => {
|
|
33
33
|
if (param.name && param2.name) {
|
|
34
34
|
return param.name === param2.name && param.in === param2.in;
|
|
35
|
-
} else if (
|
|
35
|
+
} else if (_chunkNR45NABAcjs.isRef.call(void 0, param) && _chunkNR45NABAcjs.isRef.call(void 0, param2)) {
|
|
36
36
|
return param.$ref === param2.$ref;
|
|
37
37
|
}
|
|
38
38
|
return false;
|
|
@@ -56,7 +56,7 @@ function usesPolymorphism(schema) {
|
|
|
56
56
|
return false;
|
|
57
57
|
}
|
|
58
58
|
function objectify(thing) {
|
|
59
|
-
if (!
|
|
59
|
+
if (!_chunk6KWJOFQ2cjs.isObject.call(void 0, thing)) {
|
|
60
60
|
return {};
|
|
61
61
|
}
|
|
62
62
|
return thing;
|
|
@@ -70,20 +70,6 @@ function normalizeArray(arr) {
|
|
|
70
70
|
function isFunc(thing) {
|
|
71
71
|
return typeof thing === "function";
|
|
72
72
|
}
|
|
73
|
-
function deeplyStripKey(input, keyToStrip, predicate) {
|
|
74
|
-
if (typeof input !== "object" || Array.isArray(input) || input === null || !keyToStrip) {
|
|
75
|
-
return input;
|
|
76
|
-
}
|
|
77
|
-
const obj = { ...input };
|
|
78
|
-
Object.keys(obj).forEach((k) => {
|
|
79
|
-
if (k === keyToStrip && _optionalChain([predicate, 'optionalCall', _2 => _2(obj[k], k)])) {
|
|
80
|
-
delete obj[k];
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
obj[k] = deeplyStripKey(obj[k], keyToStrip, predicate);
|
|
84
|
-
});
|
|
85
|
-
return obj;
|
|
86
|
-
}
|
|
87
73
|
|
|
88
74
|
// src/samples/index.ts
|
|
89
75
|
var sampleDefaults = (genericSample) => {
|
|
@@ -130,13 +116,13 @@ function sampleFromSchema(schema, opts = {}) {
|
|
|
130
116
|
const seenRefs = opts.seenRefs || /* @__PURE__ */ new Set();
|
|
131
117
|
let objectifySchema = objectify(schema);
|
|
132
118
|
let refToRelease;
|
|
133
|
-
if (opts.definition &&
|
|
119
|
+
if (opts.definition && _chunkNR45NABAcjs.isRef.call(void 0, objectifySchema)) {
|
|
134
120
|
refToRelease = objectifySchema.$ref;
|
|
135
121
|
if (seenRefs.has(refToRelease)) {
|
|
136
122
|
return void 0;
|
|
137
123
|
}
|
|
138
|
-
objectifySchema =
|
|
139
|
-
if (!objectifySchema ||
|
|
124
|
+
objectifySchema = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
|
|
125
|
+
if (!objectifySchema || _chunkNR45NABAcjs.isRef.call(void 0, objectifySchema)) {
|
|
140
126
|
return void 0;
|
|
141
127
|
}
|
|
142
128
|
}
|
|
@@ -150,15 +136,20 @@ function sampleFromSchema(schema, opts = {}) {
|
|
|
150
136
|
}
|
|
151
137
|
function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
152
138
|
let { type } = schema;
|
|
139
|
+
const { example, additionalProperties, properties, items } = schema;
|
|
140
|
+
const { includeReadOnly, includeWriteOnly } = opts;
|
|
141
|
+
if (example !== void 0) {
|
|
142
|
+
return _chunk6KWJOFQ2cjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
|
|
143
|
+
}
|
|
153
144
|
const hasPolymorphism = usesPolymorphism(schema);
|
|
154
145
|
if (hasPolymorphism === "allOf") {
|
|
155
146
|
try {
|
|
156
147
|
const definition = opts.definition;
|
|
157
148
|
const resolvedAllOf = schema.allOf.map((subSchema) => {
|
|
158
149
|
let sub = objectify(subSchema);
|
|
159
|
-
if (definition &&
|
|
160
|
-
const resolved =
|
|
161
|
-
if (resolved && !
|
|
150
|
+
if (definition && _chunkNR45NABAcjs.isRef.call(void 0, sub)) {
|
|
151
|
+
const resolved = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
|
|
152
|
+
if (resolved && !_chunkNR45NABAcjs.isRef.call(void 0, resolved)) {
|
|
162
153
|
sub = resolved;
|
|
163
154
|
}
|
|
164
155
|
}
|
|
@@ -194,14 +185,6 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
194
185
|
}
|
|
195
186
|
return samples[0];
|
|
196
187
|
}
|
|
197
|
-
const { example, additionalProperties, properties, items } = schema;
|
|
198
|
-
const { includeReadOnly, includeWriteOnly } = opts;
|
|
199
|
-
if (example !== void 0) {
|
|
200
|
-
const cleanedExample = deeplyStripKey(example, "$$ref", (val) => {
|
|
201
|
-
return typeof val === "string" && val.indexOf("#") > -1;
|
|
202
|
-
});
|
|
203
|
-
return _chunkV4IQC5XFcjs.dereferenceRefDeep.call(void 0, cleanedExample, opts.definition, seenRefs);
|
|
204
|
-
}
|
|
205
188
|
if (!type) {
|
|
206
189
|
if (properties || additionalProperties) {
|
|
207
190
|
type = "object";
|
|
@@ -215,16 +198,16 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
215
198
|
const props = objectify(properties);
|
|
216
199
|
const obj = {};
|
|
217
200
|
for (const name in props) {
|
|
218
|
-
if (_optionalChain([props, 'optionalAccess',
|
|
201
|
+
if (_optionalChain([props, 'optionalAccess', _2 => _2[name], 'access', _3 => _3.deprecated])) {
|
|
219
202
|
continue;
|
|
220
203
|
}
|
|
221
|
-
if (_optionalChain([props, 'optionalAccess',
|
|
204
|
+
if (_optionalChain([props, 'optionalAccess', _4 => _4[name], 'access', _5 => _5.readOnly]) && !includeReadOnly) {
|
|
222
205
|
continue;
|
|
223
206
|
}
|
|
224
|
-
if (_optionalChain([props, 'optionalAccess',
|
|
207
|
+
if (_optionalChain([props, 'optionalAccess', _6 => _6[name], 'access', _7 => _7.writeOnly]) && !includeWriteOnly) {
|
|
225
208
|
continue;
|
|
226
209
|
}
|
|
227
|
-
if (_optionalChain([props, 'access',
|
|
210
|
+
if (_optionalChain([props, 'access', _8 => _8[name], 'access', _9 => _9.examples, 'optionalAccess', _10 => _10.length])) {
|
|
228
211
|
obj[name] = props[name].examples[0];
|
|
229
212
|
continue;
|
|
230
213
|
}
|
|
@@ -278,8 +261,8 @@ var samples_default = memo;
|
|
|
278
261
|
// src/operation/lib/get-mediatype-examples.ts
|
|
279
262
|
function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
|
|
280
263
|
if (mediaTypeObject.example) {
|
|
281
|
-
mediaTypeObject.example =
|
|
282
|
-
if (mediaTypeObject.example === void 0 ||
|
|
264
|
+
mediaTypeObject.example = _chunk6KWJOFQ2cjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
|
|
265
|
+
if (mediaTypeObject.example === void 0 || _chunk6KWJOFQ2cjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
|
|
283
266
|
return [];
|
|
284
267
|
}
|
|
285
268
|
return [
|
|
@@ -294,9 +277,9 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
294
277
|
let description;
|
|
295
278
|
let example = examples[key];
|
|
296
279
|
if (example !== null && typeof example === "object") {
|
|
297
|
-
if (
|
|
298
|
-
example =
|
|
299
|
-
if (!example ||
|
|
280
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, example)) {
|
|
281
|
+
example = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, example, definition);
|
|
282
|
+
if (!example || _chunkNR45NABAcjs.isRef.call(void 0, example)) {
|
|
300
283
|
return false;
|
|
301
284
|
}
|
|
302
285
|
}
|
|
@@ -307,8 +290,8 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
307
290
|
description = example.description;
|
|
308
291
|
}
|
|
309
292
|
if ("value" in example) {
|
|
310
|
-
example.value =
|
|
311
|
-
if (example.value === void 0 ||
|
|
293
|
+
example.value = _chunk6KWJOFQ2cjs.dereferenceRefDeep.call(void 0, example.value, definition);
|
|
294
|
+
if (example.value === void 0 || _chunk6KWJOFQ2cjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
|
|
312
295
|
return false;
|
|
313
296
|
}
|
|
314
297
|
example = example.value;
|
|
@@ -325,7 +308,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
325
308
|
}
|
|
326
309
|
}
|
|
327
310
|
if (mediaTypeObject.schema) {
|
|
328
|
-
if (!
|
|
311
|
+
if (!_chunk6KWJOFQ2cjs.matches_mimetype_default.xml(mediaType)) {
|
|
329
312
|
return [
|
|
330
313
|
{
|
|
331
314
|
value: samples_default(structuredClone(mediaTypeObject.schema), {
|
|
@@ -342,17 +325,17 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
342
325
|
// src/operation/lib/get-response-examples.ts
|
|
343
326
|
function getResponseExamples(operation, definition) {
|
|
344
327
|
return Object.keys(operation.responses || {}).map((status) => {
|
|
345
|
-
let response = _optionalChain([operation, 'access',
|
|
328
|
+
let response = _optionalChain([operation, 'access', _11 => _11.responses, 'optionalAccess', _12 => _12[status]]);
|
|
346
329
|
let onlyHeaders = false;
|
|
347
330
|
if (!response) return false;
|
|
348
|
-
if (
|
|
349
|
-
response =
|
|
350
|
-
if (!response ||
|
|
331
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, response)) {
|
|
332
|
+
response = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, response, definition);
|
|
333
|
+
if (!response || _chunkNR45NABAcjs.isRef.call(void 0, response)) return false;
|
|
351
334
|
}
|
|
352
335
|
const mediaTypes = {};
|
|
353
|
-
(_optionalChain([response, 'optionalAccess',
|
|
336
|
+
(_optionalChain([response, 'optionalAccess', _13 => _13.content]) ? Object.keys(response.content) : []).forEach((mediaType) => {
|
|
354
337
|
if (!mediaType) return;
|
|
355
|
-
const mediaTypeObject = _optionalChain([response, 'access',
|
|
338
|
+
const mediaTypeObject = _optionalChain([response, 'access', _14 => _14.content, 'optionalAccess', _15 => _15[mediaType]]);
|
|
356
339
|
if (!mediaTypeObject) return;
|
|
357
340
|
const examples = getMediaTypeExamples(mediaType, mediaTypeObject, definition, {
|
|
358
341
|
includeReadOnly: true,
|
|
@@ -383,18 +366,18 @@ function getCallbackExamples(operation, definition) {
|
|
|
383
366
|
return [];
|
|
384
367
|
}
|
|
385
368
|
const examples = Object.keys(operation.callbacks).map((identifier) => {
|
|
386
|
-
let callback = _optionalChain([operation, 'access',
|
|
369
|
+
let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
|
|
387
370
|
if (!callback) return [];
|
|
388
|
-
if (
|
|
389
|
-
callback =
|
|
390
|
-
if (!callback ||
|
|
371
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, callback)) {
|
|
372
|
+
callback = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, callback, definition);
|
|
373
|
+
if (!callback || _chunkNR45NABAcjs.isRef.call(void 0, callback)) return [];
|
|
391
374
|
}
|
|
392
375
|
const items = Object.keys(callback).map((expression) => {
|
|
393
376
|
let callbackPath = callback[expression];
|
|
394
377
|
if (!callbackPath) return [];
|
|
395
|
-
if (
|
|
396
|
-
callbackPath =
|
|
397
|
-
if (!callbackPath ||
|
|
378
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, callbackPath)) {
|
|
379
|
+
callbackPath = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, callbackPath, definition);
|
|
380
|
+
if (!callbackPath || _chunkNR45NABAcjs.isRef.call(void 0, callbackPath)) return [];
|
|
398
381
|
}
|
|
399
382
|
return Object.keys(callbackPath).map((method) => {
|
|
400
383
|
if (["servers", "parameters", "summary", "description"].includes(method)) {
|
|
@@ -443,7 +426,7 @@ function getExampleGroups(operation) {
|
|
|
443
426
|
const namelessCodeSampleCounts = {};
|
|
444
427
|
const groups = {};
|
|
445
428
|
const codeSamples = _chunkAYA3UT4Lcjs.getExtension.call(void 0, "code-samples", operation.api, operation);
|
|
446
|
-
_optionalChain([codeSamples, 'optionalAccess',
|
|
429
|
+
_optionalChain([codeSamples, 'optionalAccess', _18 => _18.forEach, 'call', _19 => _19((sample, i) => {
|
|
447
430
|
if (namelessCodeSampleCounts[sample.language]) {
|
|
448
431
|
namelessCodeSampleCounts[sample.language] += 1;
|
|
449
432
|
} else {
|
|
@@ -451,7 +434,7 @@ function getExampleGroups(operation) {
|
|
|
451
434
|
}
|
|
452
435
|
const name = getDefaultName(sample, namelessCodeSampleCounts);
|
|
453
436
|
if (sample.correspondingExample) {
|
|
454
|
-
if (_optionalChain([groups, 'access',
|
|
437
|
+
if (_optionalChain([groups, 'access', _20 => _20[sample.correspondingExample], 'optionalAccess', _21 => _21.customCodeSamples, 'optionalAccess', _22 => _22.length])) {
|
|
455
438
|
groups[sample.correspondingExample].customCodeSamples.push({ ...sample, name, originalIndex: i });
|
|
456
439
|
} else if (sample.correspondingExample) {
|
|
457
440
|
groups[sample.correspondingExample] = {
|
|
@@ -459,7 +442,7 @@ function getExampleGroups(operation) {
|
|
|
459
442
|
customCodeSamples: [{ ...sample, name, originalIndex: i }]
|
|
460
443
|
};
|
|
461
444
|
}
|
|
462
|
-
} else if (_optionalChain([groups, 'access',
|
|
445
|
+
} else if (_optionalChain([groups, 'access', _23 => _23[noCorrespondingResponseKey], 'optionalAccess', _24 => _24.customCodeSamples, 'optionalAccess', _25 => _25.length])) {
|
|
463
446
|
groups[noCorrespondingResponseKey].customCodeSamples.push({ ...sample, name, originalIndex: i });
|
|
464
447
|
} else {
|
|
465
448
|
groups[noCorrespondingResponseKey] = {
|
|
@@ -475,17 +458,17 @@ function getExampleGroups(operation) {
|
|
|
475
458
|
operation.getParameters().forEach((param) => {
|
|
476
459
|
Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
|
|
477
460
|
let example = paramExample;
|
|
478
|
-
if (
|
|
479
|
-
example =
|
|
480
|
-
if (!example ||
|
|
461
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, example)) {
|
|
462
|
+
example = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, example, operation.api);
|
|
463
|
+
if (!example || _chunkNR45NABAcjs.isRef.call(void 0, example)) return;
|
|
481
464
|
}
|
|
482
465
|
groups[exampleKey] = {
|
|
483
466
|
...groups[exampleKey],
|
|
484
|
-
name: _optionalChain([groups, 'access',
|
|
467
|
+
name: _optionalChain([groups, 'access', _26 => _26[exampleKey], 'optionalAccess', _27 => _27.name]) || example.summary || exampleKey,
|
|
485
468
|
request: {
|
|
486
|
-
..._optionalChain([groups, 'access',
|
|
469
|
+
..._optionalChain([groups, 'access', _28 => _28[exampleKey], 'optionalAccess', _29 => _29.request]),
|
|
487
470
|
[param.in]: {
|
|
488
|
-
..._optionalChain([groups, 'access',
|
|
471
|
+
..._optionalChain([groups, 'access', _30 => _30[exampleKey], 'optionalAccess', _31 => _31.request, 'optionalAccess', _32 => _32[param.in]]),
|
|
489
472
|
[param.name]: example.value
|
|
490
473
|
}
|
|
491
474
|
}
|
|
@@ -498,9 +481,9 @@ function getExampleGroups(operation) {
|
|
|
498
481
|
const mediaType = requestExample.mediaType === "application/x-www-form-urlencoded" ? "formData" : "body";
|
|
499
482
|
groups[mediaTypeExample.title] = {
|
|
500
483
|
...groups[mediaTypeExample.title],
|
|
501
|
-
name: _optionalChain([groups, 'access',
|
|
484
|
+
name: _optionalChain([groups, 'access', _33 => _33[mediaTypeExample.title], 'optionalAccess', _34 => _34.name]) || mediaTypeExample.summary || mediaTypeExample.title,
|
|
502
485
|
request: {
|
|
503
|
-
..._optionalChain([groups, 'access',
|
|
486
|
+
..._optionalChain([groups, 'access', _35 => _35[mediaTypeExample.title], 'optionalAccess', _36 => _36.request]),
|
|
504
487
|
[mediaType]: mediaTypeExample.value
|
|
505
488
|
}
|
|
506
489
|
};
|
|
@@ -523,10 +506,10 @@ function getRequestBodyExamples(operation, definition) {
|
|
|
523
506
|
let requestBody = operation.requestBody;
|
|
524
507
|
if (!requestBody) {
|
|
525
508
|
return [];
|
|
526
|
-
} else if (
|
|
527
|
-
requestBody =
|
|
509
|
+
} else if (_chunkNR45NABAcjs.isRef.call(void 0, requestBody)) {
|
|
510
|
+
requestBody = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, requestBody, definition);
|
|
528
511
|
}
|
|
529
|
-
if (!requestBody ||
|
|
512
|
+
if (!requestBody || _chunkNR45NABAcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
|
|
530
513
|
return [];
|
|
531
514
|
}
|
|
532
515
|
return Object.keys(requestBody.content || {}).map((mediaType) => {
|
|
@@ -547,11 +530,11 @@ function getRequestBodyExamples(operation, definition) {
|
|
|
547
530
|
|
|
548
531
|
// src/operation/lib/operationId.ts
|
|
549
532
|
function hasOperationId(operation) {
|
|
550
|
-
return Boolean("operationId" in operation && _optionalChain([operation, 'access',
|
|
533
|
+
return Boolean("operationId" in operation && _optionalChain([operation, 'access', _37 => _37.operationId, 'optionalAccess', _38 => _38.length]));
|
|
551
534
|
}
|
|
552
535
|
function getOperationId(path, method, operation, opts = {}) {
|
|
553
536
|
function sanitize(id) {
|
|
554
|
-
return id.replace(_optionalChain([opts, 'optionalAccess',
|
|
537
|
+
return id.replace(_optionalChain([opts, 'optionalAccess', _39 => _39.camelCase]) || _optionalChain([opts, 'optionalAccess', _40 => _40.friendlyCase]) ? /[^a-zA-Z0-9_]/g : /[^a-zA-Z0-9]/g, "-").replace(/--+/g, "-").replace(/^-|-$/g, "");
|
|
555
538
|
}
|
|
556
539
|
const operationIdExists = hasOperationId(operation);
|
|
557
540
|
let operationId;
|
|
@@ -561,8 +544,8 @@ function getOperationId(path, method, operation, opts = {}) {
|
|
|
561
544
|
operationId = sanitize(path).toLowerCase();
|
|
562
545
|
}
|
|
563
546
|
const currMethod = method.toLowerCase();
|
|
564
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
565
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
547
|
+
if (_optionalChain([opts, 'optionalAccess', _41 => _41.camelCase]) || _optionalChain([opts, 'optionalAccess', _42 => _42.friendlyCase])) {
|
|
548
|
+
if (_optionalChain([opts, 'optionalAccess', _43 => _43.friendlyCase])) {
|
|
566
549
|
operationId = operationId.replaceAll("_", " ");
|
|
567
550
|
if (!operationIdExists) {
|
|
568
551
|
operationId = operationId.replace(/[^a-zA-Z0-9_]+(.)/g, (_, chr) => ` ${chr}`).split(" ").filter((word, i, arr) => word !== arr[i - 1]).join(" ");
|
|
@@ -589,7 +572,7 @@ function getOperationId(path, method, operation, opts = {}) {
|
|
|
589
572
|
}
|
|
590
573
|
|
|
591
574
|
// src/operation/transformers/get-response-as-json-schema.ts
|
|
592
|
-
var isJSON =
|
|
575
|
+
var isJSON = _chunk6KWJOFQ2cjs.matches_mimetype_default.json;
|
|
593
576
|
function buildHeadersSchema(response, schemaOptions) {
|
|
594
577
|
const headersSchema = {
|
|
595
578
|
type: "object",
|
|
@@ -599,21 +582,21 @@ function buildHeadersSchema(response, schemaOptions) {
|
|
|
599
582
|
const seenRefs = _nullishCoalesce(schemaOptions.seenRefs, () => ( /* @__PURE__ */ new Set()));
|
|
600
583
|
if (response.headers) {
|
|
601
584
|
Object.keys(response.headers).forEach((key) => {
|
|
602
|
-
let headerEntry = _optionalChain([response, 'access',
|
|
585
|
+
let headerEntry = _optionalChain([response, 'access', _44 => _44.headers, 'optionalAccess', _45 => _45[key]]);
|
|
603
586
|
if (!headerEntry) return;
|
|
604
|
-
if (
|
|
605
|
-
headerEntry =
|
|
606
|
-
if (!headerEntry ||
|
|
587
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, headerEntry)) {
|
|
588
|
+
headerEntry = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
|
|
589
|
+
if (!headerEntry || _chunkNR45NABAcjs.isRef.call(void 0, headerEntry)) return;
|
|
607
590
|
}
|
|
608
591
|
if (headerEntry.schema) {
|
|
609
592
|
const header = headerEntry;
|
|
610
593
|
let headerSchema = header.schema;
|
|
611
594
|
if (!headerSchema) return;
|
|
612
|
-
if (
|
|
613
|
-
headerSchema =
|
|
614
|
-
if (!headerSchema ||
|
|
595
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, headerSchema)) {
|
|
596
|
+
headerSchema = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
|
|
597
|
+
if (!headerSchema || _chunkNR45NABAcjs.isRef.call(void 0, headerSchema)) return;
|
|
615
598
|
}
|
|
616
|
-
headersSchema.properties[key] =
|
|
599
|
+
headersSchema.properties[key] = _chunk6KWJOFQ2cjs.toJSONSchema.call(void 0, _chunk6KWJOFQ2cjs.cloneObject.call(void 0, headerSchema), {
|
|
617
600
|
addEnumsToDescriptions: true,
|
|
618
601
|
...schemaOptions
|
|
619
602
|
});
|
|
@@ -667,41 +650,41 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
667
650
|
}
|
|
668
651
|
if (preferredContentType) {
|
|
669
652
|
if (contentTypes.includes(preferredContentType)) {
|
|
670
|
-
const schema2 =
|
|
653
|
+
const schema2 = _chunk6KWJOFQ2cjs.cloneObject.call(void 0, content[preferredContentType].schema);
|
|
671
654
|
if (!schema2) {
|
|
672
655
|
return null;
|
|
673
656
|
}
|
|
674
|
-
return
|
|
657
|
+
return _chunk6KWJOFQ2cjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
675
658
|
}
|
|
676
659
|
return null;
|
|
677
660
|
}
|
|
678
661
|
for (let i = 0; i < contentTypes.length; i++) {
|
|
679
662
|
if (isJSON(contentTypes[i])) {
|
|
680
|
-
const schema2 =
|
|
663
|
+
const schema2 = _chunk6KWJOFQ2cjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
|
|
681
664
|
if (!schema2) {
|
|
682
665
|
return {};
|
|
683
666
|
}
|
|
684
|
-
return
|
|
667
|
+
return _chunk6KWJOFQ2cjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
685
668
|
}
|
|
686
669
|
}
|
|
687
670
|
const contentType = contentTypes.shift();
|
|
688
671
|
if (!contentType) {
|
|
689
672
|
return {};
|
|
690
673
|
}
|
|
691
|
-
const schema =
|
|
674
|
+
const schema = _chunk6KWJOFQ2cjs.cloneObject.call(void 0, content[contentType].schema);
|
|
692
675
|
if (!schema) {
|
|
693
676
|
return {};
|
|
694
677
|
}
|
|
695
|
-
return
|
|
678
|
+
return _chunk6KWJOFQ2cjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
|
|
696
679
|
}
|
|
697
|
-
const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess',
|
|
698
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
680
|
+
const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _46 => _46.contentType]));
|
|
681
|
+
if (_optionalChain([opts, 'optionalAccess', _47 => _47.contentType]) && !foundSchema) {
|
|
699
682
|
return null;
|
|
700
683
|
}
|
|
701
684
|
if (foundSchema) {
|
|
702
685
|
const schema = structuredClone(foundSchema);
|
|
703
686
|
let schemaType = foundSchema.type;
|
|
704
|
-
if (schemaType === void 0 &&
|
|
687
|
+
if (schemaType === void 0 && _chunkNR45NABAcjs.isRef.call(void 0, foundSchema) && usedSchemas.size > 0) {
|
|
705
688
|
const resolvedSchema = usedSchemas.get(foundSchema.$ref);
|
|
706
689
|
const resolvedType = resolvedSchema && typeof resolvedSchema === "object" && "type" in resolvedSchema ? resolvedSchema.type : void 0;
|
|
707
690
|
schemaType = Array.isArray(resolvedType) ? resolvedType[0] : resolvedType;
|
|
@@ -711,23 +694,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
711
694
|
// able to render so instead of generating a JSON Schema with an `undefined` type we should
|
|
712
695
|
// default to `string` so there's at least *something* the end-user can interact with.
|
|
713
696
|
type: _nullishCoalesce(schemaType, () => ( "string")),
|
|
714
|
-
schema:
|
|
697
|
+
schema: _chunk6KWJOFQ2cjs.isPrimitive.call(void 0, schema) ? schema : {
|
|
715
698
|
...schema,
|
|
716
|
-
$schema:
|
|
699
|
+
$schema: _chunk6KWJOFQ2cjs.getSchemaVersionString.call(void 0, schema, api)
|
|
717
700
|
},
|
|
718
701
|
label: "Response body"
|
|
719
702
|
};
|
|
720
703
|
if (response.description && schemaWrapper.schema) {
|
|
721
704
|
schemaWrapper.description = response.description;
|
|
722
705
|
}
|
|
723
|
-
|
|
706
|
+
_chunk6KWJOFQ2cjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
|
|
724
707
|
if (usedSchemas.has(ref)) {
|
|
725
708
|
return usedSchemas.get(ref);
|
|
726
709
|
}
|
|
727
710
|
try {
|
|
728
|
-
const resolved =
|
|
729
|
-
if (
|
|
730
|
-
const converted =
|
|
711
|
+
const resolved = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
|
|
712
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, resolved)) return;
|
|
713
|
+
const converted = _chunk6KWJOFQ2cjs.toJSONSchema.call(void 0, structuredClone(resolved), {
|
|
731
714
|
...baseSchemaOptions,
|
|
732
715
|
seenRefs
|
|
733
716
|
});
|
|
@@ -737,11 +720,11 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
737
720
|
}
|
|
738
721
|
});
|
|
739
722
|
if (schemaWrapper.schema && usedSchemas.size > 0) {
|
|
740
|
-
const refsInOutput =
|
|
723
|
+
const refsInOutput = _chunk6KWJOFQ2cjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
|
|
741
724
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
|
|
742
|
-
const referencedSchemas =
|
|
725
|
+
const referencedSchemas = _chunk6KWJOFQ2cjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
|
|
743
726
|
if (referencedSchemas.size > 0) {
|
|
744
|
-
|
|
727
|
+
_chunk6KWJOFQ2cjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
|
|
745
728
|
}
|
|
746
729
|
}
|
|
747
730
|
jsonSchema.push(schemaWrapper);
|
|
@@ -753,10 +736,10 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
753
736
|
});
|
|
754
737
|
if (headersWrapper.schema && usedSchemas.size > 0) {
|
|
755
738
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
|
|
756
|
-
const refsInOutput =
|
|
757
|
-
const referencedSchemas =
|
|
739
|
+
const refsInOutput = _chunk6KWJOFQ2cjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
|
|
740
|
+
const referencedSchemas = _chunk6KWJOFQ2cjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
|
|
758
741
|
if (referencedSchemas.size > 0) {
|
|
759
|
-
|
|
742
|
+
_chunk6KWJOFQ2cjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
|
|
760
743
|
}
|
|
761
744
|
}
|
|
762
745
|
jsonSchema.push(headersWrapper);
|
|
@@ -857,11 +840,11 @@ var Operation = (_class = class {
|
|
|
857
840
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-summary}
|
|
858
841
|
*/
|
|
859
842
|
getSummary() {
|
|
860
|
-
if (_optionalChain([this, 'access',
|
|
843
|
+
if (_optionalChain([this, 'access', _48 => _48.schema, 'optionalAccess', _49 => _49.summary]) && typeof this.schema.summary === "string") {
|
|
861
844
|
return this.schema.summary;
|
|
862
845
|
}
|
|
863
|
-
const pathItem = _optionalChain([this, 'access',
|
|
864
|
-
if (_optionalChain([pathItem, 'optionalAccess',
|
|
846
|
+
const pathItem = _optionalChain([this, 'access', _50 => _50.api, 'access', _51 => _51.paths, 'optionalAccess', _52 => _52[this.path]]);
|
|
847
|
+
if (_optionalChain([pathItem, 'optionalAccess', _53 => _53.summary]) && typeof pathItem.summary === "string") {
|
|
865
848
|
return pathItem.summary;
|
|
866
849
|
}
|
|
867
850
|
return void 0;
|
|
@@ -873,11 +856,11 @@ var Operation = (_class = class {
|
|
|
873
856
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-description}
|
|
874
857
|
*/
|
|
875
858
|
getDescription() {
|
|
876
|
-
if (_optionalChain([this, 'access',
|
|
859
|
+
if (_optionalChain([this, 'access', _54 => _54.schema, 'optionalAccess', _55 => _55.description]) && typeof this.schema.description === "string") {
|
|
877
860
|
return this.schema.description;
|
|
878
861
|
}
|
|
879
|
-
const pathItem = _optionalChain([this, 'access',
|
|
880
|
-
if (_optionalChain([pathItem, 'optionalAccess',
|
|
862
|
+
const pathItem = _optionalChain([this, 'access', _56 => _56.api, 'access', _57 => _57.paths, 'optionalAccess', _58 => _58[this.path]]);
|
|
863
|
+
if (_optionalChain([pathItem, 'optionalAccess', _59 => _59.description]) && typeof pathItem.description === "string") {
|
|
881
864
|
return pathItem.description;
|
|
882
865
|
}
|
|
883
866
|
return void 0;
|
|
@@ -895,19 +878,19 @@ var Operation = (_class = class {
|
|
|
895
878
|
}
|
|
896
879
|
let types = [];
|
|
897
880
|
if (this.schema.requestBody) {
|
|
898
|
-
if (
|
|
899
|
-
this.schema.requestBody =
|
|
881
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, this.schema.requestBody)) {
|
|
882
|
+
this.schema.requestBody = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
|
|
900
883
|
}
|
|
901
884
|
if (this.schema.requestBody && "content" in this.schema.requestBody) {
|
|
902
885
|
types = Object.keys(this.schema.requestBody.content);
|
|
903
886
|
}
|
|
904
887
|
}
|
|
905
888
|
this.contentType = "application/json";
|
|
906
|
-
if (_optionalChain([types, 'optionalAccess',
|
|
889
|
+
if (_optionalChain([types, 'optionalAccess', _60 => _60.length])) {
|
|
907
890
|
this.contentType = types[0];
|
|
908
891
|
}
|
|
909
892
|
types.forEach((t) => {
|
|
910
|
-
if (
|
|
893
|
+
if (_chunk6KWJOFQ2cjs.matches_mimetype_default.json(t)) {
|
|
911
894
|
this.contentType = t;
|
|
912
895
|
}
|
|
913
896
|
});
|
|
@@ -920,7 +903,7 @@ var Operation = (_class = class {
|
|
|
920
903
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
921
904
|
*/
|
|
922
905
|
isFormUrlEncoded() {
|
|
923
|
-
return
|
|
906
|
+
return _chunk6KWJOFQ2cjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
|
|
924
907
|
}
|
|
925
908
|
/**
|
|
926
909
|
* Checks if the current operation has a mutipart content type payload.
|
|
@@ -929,7 +912,7 @@ var Operation = (_class = class {
|
|
|
929
912
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
930
913
|
*/
|
|
931
914
|
isMultipart() {
|
|
932
|
-
return
|
|
915
|
+
return _chunk6KWJOFQ2cjs.matches_mimetype_default.multipart(this.getContentType());
|
|
933
916
|
}
|
|
934
917
|
/**
|
|
935
918
|
* Checks if the current operation has a JSON-like content type payload.
|
|
@@ -938,7 +921,7 @@ var Operation = (_class = class {
|
|
|
938
921
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
939
922
|
*/
|
|
940
923
|
isJson() {
|
|
941
|
-
return
|
|
924
|
+
return _chunk6KWJOFQ2cjs.matches_mimetype_default.json(this.getContentType());
|
|
942
925
|
}
|
|
943
926
|
/**
|
|
944
927
|
* Checks if the current operation has an XML content type payload.
|
|
@@ -947,7 +930,7 @@ var Operation = (_class = class {
|
|
|
947
930
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
948
931
|
*/
|
|
949
932
|
isXml() {
|
|
950
|
-
return
|
|
933
|
+
return _chunk6KWJOFQ2cjs.matches_mimetype_default.xml(this.getContentType());
|
|
951
934
|
}
|
|
952
935
|
/**
|
|
953
936
|
* Checks if the current operation is a webhook or not.
|
|
@@ -966,7 +949,7 @@ var Operation = (_class = class {
|
|
|
966
949
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#security-requirement-object}
|
|
967
950
|
*/
|
|
968
951
|
getSecurity() {
|
|
969
|
-
if (!_optionalChain([this, 'access',
|
|
952
|
+
if (!_optionalChain([this, 'access', _61 => _61.api, 'optionalAccess', _62 => _62.components, 'optionalAccess', _63 => _63.securitySchemes]) || !Object.keys(this.api.components.securitySchemes).length) {
|
|
970
953
|
return [];
|
|
971
954
|
}
|
|
972
955
|
return this.schema.security || this.api.security || [];
|
|
@@ -992,16 +975,16 @@ var Operation = (_class = class {
|
|
|
992
975
|
const keysWithTypes = keys.map((key) => {
|
|
993
976
|
let security;
|
|
994
977
|
try {
|
|
995
|
-
security = _optionalChain([this, 'access',
|
|
978
|
+
security = _optionalChain([this, 'access', _64 => _64.api, 'optionalAccess', _65 => _65.components, 'optionalAccess', _66 => _66.securitySchemes, 'optionalAccess', _67 => _67[key]]);
|
|
996
979
|
if (!security) return false;
|
|
997
|
-
if (
|
|
998
|
-
security =
|
|
999
|
-
if (!security ||
|
|
980
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, security)) {
|
|
981
|
+
security = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, security, this.api);
|
|
982
|
+
if (!security || _chunkNR45NABAcjs.isRef.call(void 0, security)) return false;
|
|
1000
983
|
}
|
|
1001
984
|
} catch (e4) {
|
|
1002
985
|
return false;
|
|
1003
986
|
}
|
|
1004
|
-
if (!security ||
|
|
987
|
+
if (!security || _chunkNR45NABAcjs.isRef.call(void 0, security)) return false;
|
|
1005
988
|
let type = null;
|
|
1006
989
|
if (security.type === "http") {
|
|
1007
990
|
if (security.scheme === "basic") type = "Basic";
|
|
@@ -1044,7 +1027,7 @@ var Operation = (_class = class {
|
|
|
1044
1027
|
if (!prev[security.type]) prev[security.type] = [];
|
|
1045
1028
|
const exists = prev[security.type].some((sec) => sec._key === security.security._key);
|
|
1046
1029
|
if (!exists) {
|
|
1047
|
-
if (_optionalChain([security, 'access',
|
|
1030
|
+
if (_optionalChain([security, 'access', _68 => _68.security, 'optionalAccess', _69 => _69._requirements])) delete security.security._requirements;
|
|
1048
1031
|
prev[security.type].push(security.security);
|
|
1049
1032
|
}
|
|
1050
1033
|
});
|
|
@@ -1075,9 +1058,9 @@ var Operation = (_class = class {
|
|
|
1075
1058
|
this.headers.request = this.headers.request.concat(
|
|
1076
1059
|
this.schema.parameters.map((p) => {
|
|
1077
1060
|
let param = p;
|
|
1078
|
-
if (
|
|
1079
|
-
param =
|
|
1080
|
-
if (!param ||
|
|
1061
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, param)) {
|
|
1062
|
+
param = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, param, this.api);
|
|
1063
|
+
if (!param || _chunkNR45NABAcjs.isRef.call(void 0, param)) return;
|
|
1081
1064
|
}
|
|
1082
1065
|
if (param.in && param.in === "header") return param.name;
|
|
1083
1066
|
return;
|
|
@@ -1088,36 +1071,36 @@ var Operation = (_class = class {
|
|
|
1088
1071
|
this.headers.response = Object.keys(this.schema.responses).map((r) => {
|
|
1089
1072
|
let response = this.schema.responses[r];
|
|
1090
1073
|
if (!response) return [];
|
|
1091
|
-
if (
|
|
1092
|
-
this.schema.responses[r] =
|
|
1074
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, response)) {
|
|
1075
|
+
this.schema.responses[r] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, response, this.api);
|
|
1093
1076
|
response = this.schema.responses[r];
|
|
1094
|
-
if (!response ||
|
|
1077
|
+
if (!response || _chunkNR45NABAcjs.isRef.call(void 0, response)) {
|
|
1095
1078
|
return [];
|
|
1096
1079
|
}
|
|
1097
1080
|
}
|
|
1098
|
-
return _optionalChain([response, 'optionalAccess',
|
|
1081
|
+
return _optionalChain([response, 'optionalAccess', _70 => _70.headers]) ? Object.keys(response.headers) : [];
|
|
1099
1082
|
}).reduce((a, b) => a.concat(b), []);
|
|
1100
1083
|
}
|
|
1101
1084
|
if (!this.headers.request.includes("Content-Type") && this.schema.requestBody) {
|
|
1102
1085
|
let requestBody = this.schema.requestBody;
|
|
1103
1086
|
if (requestBody) {
|
|
1104
|
-
if (
|
|
1105
|
-
this.schema.requestBody =
|
|
1087
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, requestBody)) {
|
|
1088
|
+
this.schema.requestBody = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1106
1089
|
requestBody = this.schema.requestBody;
|
|
1107
1090
|
}
|
|
1108
|
-
if (requestBody && !
|
|
1091
|
+
if (requestBody && !_chunkNR45NABAcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
|
|
1109
1092
|
this.headers.request.push("Content-Type");
|
|
1110
1093
|
}
|
|
1111
1094
|
}
|
|
1112
1095
|
}
|
|
1113
1096
|
if (this.schema.responses) {
|
|
1114
1097
|
const hasResponseContent = Object.keys(this.schema.responses).some((r) => {
|
|
1115
|
-
let response = _optionalChain([this, 'access',
|
|
1098
|
+
let response = _optionalChain([this, 'access', _71 => _71.schema, 'access', _72 => _72.responses, 'optionalAccess', _73 => _73[r]]);
|
|
1116
1099
|
if (!response) return false;
|
|
1117
|
-
if (
|
|
1118
|
-
this.schema.responses[r] =
|
|
1100
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, response)) {
|
|
1101
|
+
this.schema.responses[r] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, response, this.api);
|
|
1119
1102
|
response = this.schema.responses[r];
|
|
1120
|
-
if (!response ||
|
|
1103
|
+
if (!response || _chunkNR45NABAcjs.isRef.call(void 0, response)) {
|
|
1121
1104
|
return false;
|
|
1122
1105
|
}
|
|
1123
1106
|
}
|
|
@@ -1179,7 +1162,7 @@ var Operation = (_class = class {
|
|
|
1179
1162
|
return [];
|
|
1180
1163
|
}
|
|
1181
1164
|
const oasTagMap = /* @__PURE__ */ new Map();
|
|
1182
|
-
if (Array.isArray(_optionalChain([this, 'access',
|
|
1165
|
+
if (Array.isArray(_optionalChain([this, 'access', _74 => _74.api, 'optionalAccess', _75 => _75.tags]))) {
|
|
1183
1166
|
this.api.tags.forEach((tag) => {
|
|
1184
1167
|
oasTagMap.set(tag.name, tag);
|
|
1185
1168
|
});
|
|
@@ -1222,19 +1205,19 @@ var Operation = (_class = class {
|
|
|
1222
1205
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-parameters}
|
|
1223
1206
|
*/
|
|
1224
1207
|
getParameters() {
|
|
1225
|
-
let parameters = (_optionalChain([this, 'access',
|
|
1208
|
+
let parameters = (_optionalChain([this, 'access', _76 => _76.schema, 'optionalAccess', _77 => _77.parameters]) || []).map((p) => {
|
|
1226
1209
|
let param = p;
|
|
1227
|
-
if (
|
|
1228
|
-
param =
|
|
1229
|
-
if (!param ||
|
|
1210
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, param)) {
|
|
1211
|
+
param = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, param, this.api);
|
|
1212
|
+
if (!param || _chunkNR45NABAcjs.isRef.call(void 0, param)) return;
|
|
1230
1213
|
}
|
|
1231
1214
|
return param;
|
|
1232
1215
|
}).filter((param) => param !== void 0);
|
|
1233
|
-
const commonParams = (_optionalChain([this, 'access',
|
|
1216
|
+
const commonParams = (_optionalChain([this, 'access', _78 => _78.api, 'optionalAccess', _79 => _79.paths, 'optionalAccess', _80 => _80[this.path], 'optionalAccess', _81 => _81.parameters]) || []).map((p) => {
|
|
1234
1217
|
let param = p;
|
|
1235
|
-
if (
|
|
1236
|
-
param =
|
|
1237
|
-
if (!param ||
|
|
1218
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, param)) {
|
|
1219
|
+
param = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, param, this.api);
|
|
1220
|
+
if (!param || _chunkNR45NABAcjs.isRef.call(void 0, param)) return;
|
|
1238
1221
|
}
|
|
1239
1222
|
return param;
|
|
1240
1223
|
}).filter((param) => param !== void 0);
|
|
@@ -1271,10 +1254,10 @@ var Operation = (_class = class {
|
|
|
1271
1254
|
);
|
|
1272
1255
|
}
|
|
1273
1256
|
if (!this.schemasDecorated) {
|
|
1274
|
-
|
|
1257
|
+
_chunk6KWJOFQ2cjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1275
1258
|
this.schemasDecorated = true;
|
|
1276
1259
|
}
|
|
1277
|
-
return
|
|
1260
|
+
return _chunk6KWJOFQ2cjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
|
|
1278
1261
|
includeDiscriminatorMappingRefs: true,
|
|
1279
1262
|
...opts
|
|
1280
1263
|
});
|
|
@@ -1299,7 +1282,7 @@ var Operation = (_class = class {
|
|
|
1299
1282
|
);
|
|
1300
1283
|
}
|
|
1301
1284
|
if (!this.schemasDecorated) {
|
|
1302
|
-
|
|
1285
|
+
_chunk6KWJOFQ2cjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1303
1286
|
this.schemasDecorated = true;
|
|
1304
1287
|
}
|
|
1305
1288
|
return getResponseAsJSONSchema(this, this.api, statusCode, {
|
|
@@ -1313,9 +1296,9 @@ var Operation = (_class = class {
|
|
|
1313
1296
|
*/
|
|
1314
1297
|
getResponseStatusCodes() {
|
|
1315
1298
|
if (!this.schema.responses) return [];
|
|
1316
|
-
if (
|
|
1317
|
-
this.schema.responses =
|
|
1318
|
-
if (!this.schema.responses ||
|
|
1299
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1300
|
+
this.schema.responses = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
|
|
1301
|
+
if (!this.schema.responses || _chunkNR45NABAcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1319
1302
|
return [];
|
|
1320
1303
|
}
|
|
1321
1304
|
}
|
|
@@ -1323,7 +1306,7 @@ var Operation = (_class = class {
|
|
|
1323
1306
|
if (key.startsWith("x-")) {
|
|
1324
1307
|
return false;
|
|
1325
1308
|
}
|
|
1326
|
-
const response = _optionalChain([this, 'access',
|
|
1309
|
+
const response = _optionalChain([this, 'access', _82 => _82.schema, 'access', _83 => _83.responses, 'optionalAccess', _84 => _84[key]]);
|
|
1327
1310
|
return response && typeof response === "object";
|
|
1328
1311
|
});
|
|
1329
1312
|
}
|
|
@@ -1339,9 +1322,9 @@ var Operation = (_class = class {
|
|
|
1339
1322
|
Object.values(this.schema.responses).forEach((response) => {
|
|
1340
1323
|
let resp = response;
|
|
1341
1324
|
if (!resp) return;
|
|
1342
|
-
if (
|
|
1343
|
-
resp =
|
|
1344
|
-
if (!resp ||
|
|
1325
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, resp)) {
|
|
1326
|
+
resp = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, resp, this.api);
|
|
1327
|
+
if (!resp || _chunkNR45NABAcjs.isRef.call(void 0, resp)) {
|
|
1345
1328
|
return;
|
|
1346
1329
|
}
|
|
1347
1330
|
}
|
|
@@ -1368,10 +1351,10 @@ var Operation = (_class = class {
|
|
|
1368
1351
|
getResolvedRequestBody() {
|
|
1369
1352
|
let requestBody = this.schema.requestBody;
|
|
1370
1353
|
if (!requestBody) return false;
|
|
1371
|
-
if (
|
|
1372
|
-
this.schema.requestBody =
|
|
1354
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, requestBody)) {
|
|
1355
|
+
this.schema.requestBody = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1373
1356
|
requestBody = this.schema.requestBody;
|
|
1374
|
-
if (!requestBody ||
|
|
1357
|
+
if (!requestBody || _chunkNR45NABAcjs.isRef.call(void 0, requestBody)) {
|
|
1375
1358
|
return false;
|
|
1376
1359
|
}
|
|
1377
1360
|
}
|
|
@@ -1443,7 +1426,7 @@ var Operation = (_class = class {
|
|
|
1443
1426
|
let availableMediaType;
|
|
1444
1427
|
const mediaTypes = this.getRequestBodyMediaTypes();
|
|
1445
1428
|
mediaTypes.forEach((mt) => {
|
|
1446
|
-
if (!availableMediaType &&
|
|
1429
|
+
if (!availableMediaType && _chunk6KWJOFQ2cjs.matches_mimetype_default.json(mt)) {
|
|
1447
1430
|
availableMediaType = mt;
|
|
1448
1431
|
}
|
|
1449
1432
|
});
|
|
@@ -1470,7 +1453,7 @@ var Operation = (_class = class {
|
|
|
1470
1453
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#request-body-examples}
|
|
1471
1454
|
*/
|
|
1472
1455
|
getRequestBodyExamples() {
|
|
1473
|
-
const isRequestExampleValueDefined = typeof _optionalChain([this, 'access',
|
|
1456
|
+
const isRequestExampleValueDefined = typeof _optionalChain([this, 'access', _85 => _85.requestBodyExamples, 'optionalAccess', _86 => _86[0], 'optionalAccess', _87 => _87.examples, 'optionalAccess', _88 => _88[0], 'access', _89 => _89.value]) !== "undefined";
|
|
1474
1457
|
if (this.requestBodyExamples && isRequestExampleValueDefined) {
|
|
1475
1458
|
return this.requestBodyExamples;
|
|
1476
1459
|
}
|
|
@@ -1490,10 +1473,10 @@ var Operation = (_class = class {
|
|
|
1490
1473
|
}
|
|
1491
1474
|
let response = this.schema.responses[statusCode];
|
|
1492
1475
|
if (!response) return false;
|
|
1493
|
-
if (
|
|
1494
|
-
this.schema.responses[statusCode] =
|
|
1476
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, response)) {
|
|
1477
|
+
this.schema.responses[statusCode] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, response, this.api);
|
|
1495
1478
|
response = this.schema.responses[statusCode];
|
|
1496
|
-
if (!response ||
|
|
1479
|
+
if (!response || _chunkNR45NABAcjs.isRef.call(void 0, response)) {
|
|
1497
1480
|
return false;
|
|
1498
1481
|
}
|
|
1499
1482
|
}
|
|
@@ -1534,19 +1517,19 @@ var Operation = (_class = class {
|
|
|
1534
1517
|
if (!this.schema.callbacks) return false;
|
|
1535
1518
|
let callbackObj = this.schema.callbacks[identifier];
|
|
1536
1519
|
if (!callbackObj) return false;
|
|
1537
|
-
if (
|
|
1538
|
-
this.schema.callbacks[identifier] =
|
|
1520
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, callbackObj)) {
|
|
1521
|
+
this.schema.callbacks[identifier] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, callbackObj, this.api);
|
|
1539
1522
|
callbackObj = this.schema.callbacks[identifier];
|
|
1540
|
-
if (!callbackObj ||
|
|
1523
|
+
if (!callbackObj || _chunkNR45NABAcjs.isRef.call(void 0, callbackObj)) {
|
|
1541
1524
|
return false;
|
|
1542
1525
|
}
|
|
1543
1526
|
}
|
|
1544
1527
|
let callback = callbackObj[expression];
|
|
1545
1528
|
if (!callback) return false;
|
|
1546
|
-
if (
|
|
1547
|
-
callbackObj[expression] =
|
|
1529
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, callback)) {
|
|
1530
|
+
callbackObj[expression] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, callback, this.api);
|
|
1548
1531
|
callback = callbackObj[expression];
|
|
1549
|
-
if (!callback ||
|
|
1532
|
+
if (!callback || _chunkNR45NABAcjs.isRef.call(void 0, callback)) {
|
|
1550
1533
|
return false;
|
|
1551
1534
|
}
|
|
1552
1535
|
}
|
|
@@ -1565,27 +1548,27 @@ var Operation = (_class = class {
|
|
|
1565
1548
|
if (!this.hasCallbacks()) return [];
|
|
1566
1549
|
const callbacks = [];
|
|
1567
1550
|
Object.keys(this.schema.callbacks).forEach((callback) => {
|
|
1568
|
-
let cb = _optionalChain([this, 'access',
|
|
1551
|
+
let cb = _optionalChain([this, 'access', _90 => _90.schema, 'access', _91 => _91.callbacks, 'optionalAccess', _92 => _92[callback]]);
|
|
1569
1552
|
if (!cb) return;
|
|
1570
|
-
if (
|
|
1571
|
-
this.schema.callbacks[callback] =
|
|
1553
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, cb)) {
|
|
1554
|
+
this.schema.callbacks[callback] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, cb, this.api);
|
|
1572
1555
|
cb = this.schema.callbacks[callback];
|
|
1573
|
-
if (!cb ||
|
|
1556
|
+
if (!cb || _chunkNR45NABAcjs.isRef.call(void 0, cb)) {
|
|
1574
1557
|
return;
|
|
1575
1558
|
}
|
|
1576
1559
|
}
|
|
1577
1560
|
Object.keys(cb).forEach((expression) => {
|
|
1578
1561
|
let callbackPath = cb[expression];
|
|
1579
1562
|
if (!callbackPath) return;
|
|
1580
|
-
if (
|
|
1581
|
-
cb[expression] =
|
|
1563
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, callbackPath)) {
|
|
1564
|
+
cb[expression] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, callbackPath, this.api);
|
|
1582
1565
|
callbackPath = cb[expression];
|
|
1583
|
-
if (!callbackPath ||
|
|
1566
|
+
if (!callbackPath || _chunkNR45NABAcjs.isRef.call(void 0, callbackPath)) {
|
|
1584
1567
|
return;
|
|
1585
1568
|
}
|
|
1586
1569
|
}
|
|
1587
1570
|
Object.keys(callbackPath).forEach((method) => {
|
|
1588
|
-
if (!
|
|
1571
|
+
if (!_chunk6KWJOFQ2cjs.supportedMethods.includes(method)) return;
|
|
1589
1572
|
const found = this.getCallback(callback, expression, method);
|
|
1590
1573
|
if (found) {
|
|
1591
1574
|
callbacks.push(found);
|
|
@@ -1628,7 +1611,7 @@ var Operation = (_class = class {
|
|
|
1628
1611
|
* @deprecated Use `oas.getExtension(extension, operation)` instead.
|
|
1629
1612
|
*/
|
|
1630
1613
|
getExtension(extension) {
|
|
1631
|
-
return _optionalChain([this, 'access',
|
|
1614
|
+
return _optionalChain([this, 'access', _93 => _93.schema, 'optionalAccess', _94 => _94[extension]]);
|
|
1632
1615
|
}
|
|
1633
1616
|
/**
|
|
1634
1617
|
* Returns an object with groups of all example definitions (body/header/query/path/response/etc.).
|
|
@@ -1663,12 +1646,12 @@ var Operation = (_class = class {
|
|
|
1663
1646
|
}
|
|
1664
1647
|
this.dereferencing.processing = true;
|
|
1665
1648
|
if (!this.schemasDecorated) {
|
|
1666
|
-
|
|
1649
|
+
_chunk6KWJOFQ2cjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1667
1650
|
this.schemasDecorated = true;
|
|
1668
1651
|
}
|
|
1669
1652
|
const { api, schema, promises } = this;
|
|
1670
1653
|
const circularRefs = /* @__PURE__ */ new Set();
|
|
1671
|
-
const dereferencingOptions =
|
|
1654
|
+
const dereferencingOptions = _chunk6KWJOFQ2cjs.getDereferencingOptions.call(void 0, circularRefs);
|
|
1672
1655
|
const parser = new (0, _jsonschemarefparser.$RefParser)();
|
|
1673
1656
|
return parser.dereference(
|
|
1674
1657
|
"#/__INTERNAL__",
|
|
@@ -1715,7 +1698,7 @@ var Operation = (_class = class {
|
|
|
1715
1698
|
// We need to convert our `Set` to an array in order to match the typings.
|
|
1716
1699
|
circularRefs: [...circularRefs]
|
|
1717
1700
|
};
|
|
1718
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
1701
|
+
if (_optionalChain([opts, 'optionalAccess', _95 => _95.cb])) {
|
|
1719
1702
|
opts.cb();
|
|
1720
1703
|
}
|
|
1721
1704
|
}).then(() => {
|
|
@@ -1779,7 +1762,7 @@ var Callback = class extends Operation {
|
|
|
1779
1762
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-summary}
|
|
1780
1763
|
*/
|
|
1781
1764
|
getSummary() {
|
|
1782
|
-
if (_optionalChain([this, 'access',
|
|
1765
|
+
if (_optionalChain([this, 'access', _96 => _96.schema, 'optionalAccess', _97 => _97.summary]) && typeof this.schema.summary === "string") {
|
|
1783
1766
|
return this.schema.summary;
|
|
1784
1767
|
} else if (this.parentSchema.summary && typeof this.parentSchema.summary === "string") {
|
|
1785
1768
|
return this.parentSchema.summary;
|
|
@@ -1793,7 +1776,7 @@ var Callback = class extends Operation {
|
|
|
1793
1776
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-description}
|
|
1794
1777
|
*/
|
|
1795
1778
|
getDescription() {
|
|
1796
|
-
if (_optionalChain([this, 'access',
|
|
1779
|
+
if (_optionalChain([this, 'access', _98 => _98.schema, 'optionalAccess', _99 => _99.description]) && typeof this.schema.description === "string") {
|
|
1797
1780
|
return this.schema.description;
|
|
1798
1781
|
} else if (this.parentSchema.description && typeof this.parentSchema.description === "string") {
|
|
1799
1782
|
return this.parentSchema.description;
|
|
@@ -1807,19 +1790,19 @@ var Callback = class extends Operation {
|
|
|
1807
1790
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-parameters}
|
|
1808
1791
|
*/
|
|
1809
1792
|
getParameters() {
|
|
1810
|
-
let parameters = (_optionalChain([this, 'access',
|
|
1793
|
+
let parameters = (_optionalChain([this, 'access', _100 => _100.schema, 'optionalAccess', _101 => _101.parameters]) || []).map((p) => {
|
|
1811
1794
|
let param = p;
|
|
1812
|
-
if (
|
|
1813
|
-
param =
|
|
1814
|
-
if (!param ||
|
|
1795
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, param)) {
|
|
1796
|
+
param = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, param, this.api);
|
|
1797
|
+
if (!param || _chunkNR45NABAcjs.isRef.call(void 0, param)) return;
|
|
1815
1798
|
}
|
|
1816
1799
|
return param;
|
|
1817
1800
|
}).filter((param) => param !== void 0);
|
|
1818
1801
|
const commonParams = (this.parentSchema.parameters || []).map((p) => {
|
|
1819
1802
|
let param = p;
|
|
1820
|
-
if (
|
|
1821
|
-
param =
|
|
1822
|
-
if (!param ||
|
|
1803
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, param)) {
|
|
1804
|
+
param = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, param, this.api);
|
|
1805
|
+
if (!param || _chunkNR45NABAcjs.isRef.call(void 0, param)) return;
|
|
1823
1806
|
}
|
|
1824
1807
|
return param;
|
|
1825
1808
|
}).filter((param) => param !== void 0);
|
|
@@ -1837,17 +1820,17 @@ var Webhook = class extends Operation {
|
|
|
1837
1820
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-summary}
|
|
1838
1821
|
*/
|
|
1839
1822
|
getSummary() {
|
|
1840
|
-
if (_optionalChain([this, 'access',
|
|
1823
|
+
if (_optionalChain([this, 'access', _102 => _102.schema, 'optionalAccess', _103 => _103.summary]) && typeof this.schema.summary === "string") {
|
|
1841
1824
|
return this.schema.summary;
|
|
1842
1825
|
} else if (!this.api.webhooks) {
|
|
1843
1826
|
return void 0;
|
|
1844
1827
|
}
|
|
1845
1828
|
let webhookPath = this.api.webhooks[this.path];
|
|
1846
|
-
if (
|
|
1847
|
-
this.api.webhooks[this.path] =
|
|
1829
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, webhookPath)) {
|
|
1830
|
+
this.api.webhooks[this.path] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1848
1831
|
webhookPath = this.api.webhooks[this.path];
|
|
1849
1832
|
}
|
|
1850
|
-
return _optionalChain([webhookPath, 'optionalAccess',
|
|
1833
|
+
return _optionalChain([webhookPath, 'optionalAccess', _104 => _104.summary]);
|
|
1851
1834
|
}
|
|
1852
1835
|
/**
|
|
1853
1836
|
* Retrieve the `description` for this operation.
|
|
@@ -1856,17 +1839,17 @@ var Webhook = class extends Operation {
|
|
|
1856
1839
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-description}
|
|
1857
1840
|
*/
|
|
1858
1841
|
getDescription() {
|
|
1859
|
-
if (_optionalChain([this, 'access',
|
|
1842
|
+
if (_optionalChain([this, 'access', _105 => _105.schema, 'optionalAccess', _106 => _106.description]) && typeof this.schema.description === "string") {
|
|
1860
1843
|
return this.schema.description;
|
|
1861
1844
|
} else if (!this.api.webhooks) {
|
|
1862
1845
|
return void 0;
|
|
1863
1846
|
}
|
|
1864
1847
|
let webhookPath = this.api.webhooks[this.path];
|
|
1865
|
-
if (
|
|
1866
|
-
this.api.webhooks[this.path] =
|
|
1848
|
+
if (_chunkNR45NABAcjs.isRef.call(void 0, webhookPath)) {
|
|
1849
|
+
this.api.webhooks[this.path] = _chunk6KWJOFQ2cjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1867
1850
|
webhookPath = this.api.webhooks[this.path];
|
|
1868
1851
|
}
|
|
1869
|
-
return _optionalChain([webhookPath, 'optionalAccess',
|
|
1852
|
+
return _optionalChain([webhookPath, 'optionalAccess', _107 => _107.description]);
|
|
1870
1853
|
}
|
|
1871
1854
|
};
|
|
1872
1855
|
|
|
@@ -1887,4 +1870,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
|
|
|
1887
1870
|
* @license Apache-2.0
|
|
1888
1871
|
* @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
|
|
1889
1872
|
*/
|
|
1890
|
-
//# sourceMappingURL=chunk-
|
|
1873
|
+
//# sourceMappingURL=chunk-4CVTOSVQ.cjs.map
|