oas 32.1.9 → 32.1.11
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-WRZUJO3I.js → chunk-2J4VKLIT.js} +4 -4
- package/dist/{chunk-YPR7YTHM.cjs → chunk-3MTU2ESP.cjs} +1 -1
- package/dist/{chunk-YPR7YTHM.cjs.map → chunk-3MTU2ESP.cjs.map} +1 -1
- package/dist/{chunk-NG4A45EE.cjs → chunk-DNLCD3K6.cjs} +153 -141
- package/dist/chunk-DNLCD3K6.cjs.map +1 -0
- package/dist/{chunk-Q6ABRA4U.cjs → chunk-FGPV2UXT.cjs} +28 -28
- package/dist/{chunk-Q6ABRA4U.cjs.map → chunk-FGPV2UXT.cjs.map} +1 -1
- package/dist/{chunk-55H65L6J.js → chunk-JCBISKOK.js} +37 -25
- package/dist/chunk-JCBISKOK.js.map +1 -0
- package/dist/{chunk-MNOEMVCF.js → chunk-PSNTODZL.js} +1 -1
- package/dist/{chunk-MNOEMVCF.js.map → chunk-PSNTODZL.js.map} +1 -1
- package/dist/{chunk-7BR3G6FM.js → chunk-QINBUHP2.js} +179 -48
- package/dist/chunk-QINBUHP2.js.map +1 -0
- package/dist/{chunk-KZCEPS4J.cjs → chunk-X7KOY66H.cjs} +206 -75
- package/dist/chunk-X7KOY66H.cjs.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.js +4 -4
- package/dist/operation/index.cjs +4 -4
- package/dist/operation/index.js +3 -3
- package/dist/reducer/index.cjs +49 -28
- package/dist/reducer/index.cjs.map +1 -1
- package/dist/reducer/index.js +23 -2
- package/dist/reducer/index.js.map +1 -1
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +3 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -1
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-55H65L6J.js.map +0 -1
- package/dist/chunk-7BR3G6FM.js.map +0 -1
- package/dist/chunk-KZCEPS4J.cjs.map +0 -1
- package/dist/chunk-NG4A45EE.cjs.map +0 -1
- /package/dist/{chunk-WRZUJO3I.js.map → chunk-2J4VKLIT.js.map} +0 -0
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkX7KOY66Hcjs = require('./chunk-X7KOY66H.cjs');
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
var _chunkAYA3UT4Lcjs = require('./chunk-AYA3UT4L.cjs');
|
|
20
22
|
|
|
21
23
|
|
|
22
|
-
var
|
|
24
|
+
var _chunk3MTU2ESPcjs = require('./chunk-3MTU2ESP.cjs');
|
|
23
25
|
|
|
24
26
|
// src/operation/index.ts
|
|
25
27
|
var _jsonschemarefparser = require('@apidevtools/json-schema-ref-parser');
|
|
@@ -30,7 +32,7 @@ function dedupeCommonParameters(parameters, commonParameters) {
|
|
|
30
32
|
return !parameters.find((param2) => {
|
|
31
33
|
if (param.name && param2.name) {
|
|
32
34
|
return param.name === param2.name && param.in === param2.in;
|
|
33
|
-
} else if (
|
|
35
|
+
} else if (_chunk3MTU2ESPcjs.isRef.call(void 0, param) && _chunk3MTU2ESPcjs.isRef.call(void 0, param2)) {
|
|
34
36
|
return param.$ref === param2.$ref;
|
|
35
37
|
}
|
|
36
38
|
return false;
|
|
@@ -54,7 +56,7 @@ function usesPolymorphism(schema) {
|
|
|
54
56
|
return false;
|
|
55
57
|
}
|
|
56
58
|
function objectify(thing) {
|
|
57
|
-
if (!
|
|
59
|
+
if (!_chunkX7KOY66Hcjs.isObject.call(void 0, thing)) {
|
|
58
60
|
return {};
|
|
59
61
|
}
|
|
60
62
|
return thing;
|
|
@@ -128,13 +130,13 @@ function sampleFromSchema(schema, opts = {}) {
|
|
|
128
130
|
const seenRefs = opts.seenRefs || /* @__PURE__ */ new Set();
|
|
129
131
|
let objectifySchema = objectify(schema);
|
|
130
132
|
let refToRelease;
|
|
131
|
-
if (opts.definition &&
|
|
133
|
+
if (opts.definition && _chunk3MTU2ESPcjs.isRef.call(void 0, objectifySchema)) {
|
|
132
134
|
refToRelease = objectifySchema.$ref;
|
|
133
135
|
if (seenRefs.has(refToRelease)) {
|
|
134
136
|
return void 0;
|
|
135
137
|
}
|
|
136
|
-
objectifySchema =
|
|
137
|
-
if (!objectifySchema ||
|
|
138
|
+
objectifySchema = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
|
|
139
|
+
if (!objectifySchema || _chunk3MTU2ESPcjs.isRef.call(void 0, objectifySchema)) {
|
|
138
140
|
return void 0;
|
|
139
141
|
}
|
|
140
142
|
}
|
|
@@ -151,14 +153,28 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
151
153
|
const hasPolymorphism = usesPolymorphism(schema);
|
|
152
154
|
if (hasPolymorphism === "allOf") {
|
|
153
155
|
try {
|
|
156
|
+
const definition = opts.definition;
|
|
157
|
+
const resolvedAllOf = schema.allOf.map((subSchema) => {
|
|
158
|
+
let sub = objectify(subSchema);
|
|
159
|
+
if (definition && _chunk3MTU2ESPcjs.isRef.call(void 0, sub)) {
|
|
160
|
+
const resolved = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
|
|
161
|
+
if (resolved && !_chunk3MTU2ESPcjs.isRef.call(void 0, resolved)) {
|
|
162
|
+
sub = resolved;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return sub;
|
|
166
|
+
});
|
|
154
167
|
return sampleFromSchema(
|
|
155
|
-
_jsonschemamergeallof2.default.call(void 0,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
168
|
+
_jsonschemamergeallof2.default.call(void 0,
|
|
169
|
+
{ ...schema, allOf: resolvedAllOf },
|
|
170
|
+
{
|
|
171
|
+
resolvers: {
|
|
172
|
+
// Ignore any unrecognized OAS-specific keywords that might be present on the schema
|
|
173
|
+
// (like `xml`).
|
|
174
|
+
defaultResolver: _jsonschemamergeallof2.default.options.resolvers.title
|
|
175
|
+
}
|
|
160
176
|
}
|
|
161
|
-
|
|
177
|
+
),
|
|
162
178
|
{
|
|
163
179
|
...opts,
|
|
164
180
|
seenRefs
|
|
@@ -261,11 +277,9 @@ var samples_default = memo;
|
|
|
261
277
|
// src/operation/lib/get-mediatype-examples.ts
|
|
262
278
|
function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
|
|
263
279
|
if (mediaTypeObject.example) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
return [];
|
|
268
|
-
}
|
|
280
|
+
mediaTypeObject.example = _chunkX7KOY66Hcjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
|
|
281
|
+
if (mediaTypeObject.example === void 0 || _chunkX7KOY66Hcjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
|
|
282
|
+
return [];
|
|
269
283
|
}
|
|
270
284
|
return [
|
|
271
285
|
{
|
|
@@ -279,24 +293,22 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
279
293
|
let description;
|
|
280
294
|
let example = examples[key];
|
|
281
295
|
if (example !== null && typeof example === "object") {
|
|
296
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, example)) {
|
|
297
|
+
example = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, example, definition);
|
|
298
|
+
if (!example || _chunk3MTU2ESPcjs.isRef.call(void 0, example)) {
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
282
302
|
if ("summary" in example) {
|
|
283
303
|
summary = example.summary;
|
|
284
304
|
}
|
|
285
305
|
if ("description" in example) {
|
|
286
306
|
description = example.description;
|
|
287
307
|
}
|
|
288
|
-
if (_chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
|
|
289
|
-
example = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, example, definition);
|
|
290
|
-
if (!example || _chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
|
|
291
|
-
return false;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
308
|
if ("value" in example) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
return false;
|
|
299
|
-
}
|
|
309
|
+
example.value = _chunkX7KOY66Hcjs.dereferenceRefDeep.call(void 0, example.value, definition);
|
|
310
|
+
if (example.value === void 0 || _chunkX7KOY66Hcjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
|
|
311
|
+
return false;
|
|
300
312
|
}
|
|
301
313
|
example = example.value;
|
|
302
314
|
}
|
|
@@ -312,7 +324,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
312
324
|
}
|
|
313
325
|
}
|
|
314
326
|
if (mediaTypeObject.schema) {
|
|
315
|
-
if (!
|
|
327
|
+
if (!_chunkX7KOY66Hcjs.matches_mimetype_default.xml(mediaType)) {
|
|
316
328
|
return [
|
|
317
329
|
{
|
|
318
330
|
value: samples_default(structuredClone(mediaTypeObject.schema), {
|
|
@@ -332,9 +344,9 @@ function getResponseExamples(operation, definition) {
|
|
|
332
344
|
let response = _optionalChain([operation, 'access', _11 => _11.responses, 'optionalAccess', _12 => _12[status]]);
|
|
333
345
|
let onlyHeaders = false;
|
|
334
346
|
if (!response) return false;
|
|
335
|
-
if (
|
|
336
|
-
response =
|
|
337
|
-
if (!response ||
|
|
347
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, response)) {
|
|
348
|
+
response = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, response, definition);
|
|
349
|
+
if (!response || _chunk3MTU2ESPcjs.isRef.call(void 0, response)) return false;
|
|
338
350
|
}
|
|
339
351
|
const mediaTypes = {};
|
|
340
352
|
(_optionalChain([response, 'optionalAccess', _13 => _13.content]) ? Object.keys(response.content) : []).forEach((mediaType) => {
|
|
@@ -372,16 +384,16 @@ function getCallbackExamples(operation, definition) {
|
|
|
372
384
|
const examples = Object.keys(operation.callbacks).map((identifier) => {
|
|
373
385
|
let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
|
|
374
386
|
if (!callback) return [];
|
|
375
|
-
if (
|
|
376
|
-
callback =
|
|
377
|
-
if (!callback ||
|
|
387
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, callback)) {
|
|
388
|
+
callback = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, callback, definition);
|
|
389
|
+
if (!callback || _chunk3MTU2ESPcjs.isRef.call(void 0, callback)) return [];
|
|
378
390
|
}
|
|
379
391
|
const items = Object.keys(callback).map((expression) => {
|
|
380
392
|
let callbackPath = callback[expression];
|
|
381
393
|
if (!callbackPath) return [];
|
|
382
|
-
if (
|
|
383
|
-
callbackPath =
|
|
384
|
-
if (!callbackPath ||
|
|
394
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, callbackPath)) {
|
|
395
|
+
callbackPath = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, callbackPath, definition);
|
|
396
|
+
if (!callbackPath || _chunk3MTU2ESPcjs.isRef.call(void 0, callbackPath)) return [];
|
|
385
397
|
}
|
|
386
398
|
return Object.keys(callbackPath).map((method) => {
|
|
387
399
|
if (["servers", "parameters", "summary", "description"].includes(method)) {
|
|
@@ -462,9 +474,9 @@ function getExampleGroups(operation) {
|
|
|
462
474
|
operation.getParameters().forEach((param) => {
|
|
463
475
|
Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
|
|
464
476
|
let example = paramExample;
|
|
465
|
-
if (
|
|
466
|
-
example =
|
|
467
|
-
if (!example ||
|
|
477
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, example)) {
|
|
478
|
+
example = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, example, operation.api);
|
|
479
|
+
if (!example || _chunk3MTU2ESPcjs.isRef.call(void 0, example)) return;
|
|
468
480
|
}
|
|
469
481
|
groups[exampleKey] = {
|
|
470
482
|
...groups[exampleKey],
|
|
@@ -510,10 +522,10 @@ function getRequestBodyExamples(operation, definition) {
|
|
|
510
522
|
let requestBody = operation.requestBody;
|
|
511
523
|
if (!requestBody) {
|
|
512
524
|
return [];
|
|
513
|
-
} else if (
|
|
514
|
-
requestBody =
|
|
525
|
+
} else if (_chunk3MTU2ESPcjs.isRef.call(void 0, requestBody)) {
|
|
526
|
+
requestBody = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, requestBody, definition);
|
|
515
527
|
}
|
|
516
|
-
if (!requestBody ||
|
|
528
|
+
if (!requestBody || _chunk3MTU2ESPcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
|
|
517
529
|
return [];
|
|
518
530
|
}
|
|
519
531
|
return Object.keys(requestBody.content || {}).map((mediaType) => {
|
|
@@ -576,7 +588,7 @@ function getOperationId(path, method, operation, opts = {}) {
|
|
|
576
588
|
}
|
|
577
589
|
|
|
578
590
|
// src/operation/transformers/get-response-as-json-schema.ts
|
|
579
|
-
var isJSON =
|
|
591
|
+
var isJSON = _chunkX7KOY66Hcjs.matches_mimetype_default.json;
|
|
580
592
|
function buildHeadersSchema(response, schemaOptions) {
|
|
581
593
|
const headersSchema = {
|
|
582
594
|
type: "object",
|
|
@@ -588,19 +600,19 @@ function buildHeadersSchema(response, schemaOptions) {
|
|
|
588
600
|
Object.keys(response.headers).forEach((key) => {
|
|
589
601
|
let headerEntry = _optionalChain([response, 'access', _44 => _44.headers, 'optionalAccess', _45 => _45[key]]);
|
|
590
602
|
if (!headerEntry) return;
|
|
591
|
-
if (
|
|
592
|
-
headerEntry =
|
|
593
|
-
if (!headerEntry ||
|
|
603
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, headerEntry)) {
|
|
604
|
+
headerEntry = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
|
|
605
|
+
if (!headerEntry || _chunk3MTU2ESPcjs.isRef.call(void 0, headerEntry)) return;
|
|
594
606
|
}
|
|
595
607
|
if (headerEntry.schema) {
|
|
596
608
|
const header = headerEntry;
|
|
597
609
|
let headerSchema = header.schema;
|
|
598
610
|
if (!headerSchema) return;
|
|
599
|
-
if (
|
|
600
|
-
headerSchema =
|
|
601
|
-
if (!headerSchema ||
|
|
611
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, headerSchema)) {
|
|
612
|
+
headerSchema = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
|
|
613
|
+
if (!headerSchema || _chunk3MTU2ESPcjs.isRef.call(void 0, headerSchema)) return;
|
|
602
614
|
}
|
|
603
|
-
headersSchema.properties[key] =
|
|
615
|
+
headersSchema.properties[key] = _chunkX7KOY66Hcjs.toJSONSchema.call(void 0, _chunkX7KOY66Hcjs.cloneObject.call(void 0, headerSchema), {
|
|
604
616
|
addEnumsToDescriptions: true,
|
|
605
617
|
...schemaOptions
|
|
606
618
|
});
|
|
@@ -654,32 +666,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
654
666
|
}
|
|
655
667
|
if (preferredContentType) {
|
|
656
668
|
if (contentTypes.includes(preferredContentType)) {
|
|
657
|
-
const schema2 =
|
|
669
|
+
const schema2 = _chunkX7KOY66Hcjs.cloneObject.call(void 0, content[preferredContentType].schema);
|
|
658
670
|
if (!schema2) {
|
|
659
671
|
return null;
|
|
660
672
|
}
|
|
661
|
-
return
|
|
673
|
+
return _chunkX7KOY66Hcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
662
674
|
}
|
|
663
675
|
return null;
|
|
664
676
|
}
|
|
665
677
|
for (let i = 0; i < contentTypes.length; i++) {
|
|
666
678
|
if (isJSON(contentTypes[i])) {
|
|
667
|
-
const schema2 =
|
|
679
|
+
const schema2 = _chunkX7KOY66Hcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
|
|
668
680
|
if (!schema2) {
|
|
669
681
|
return {};
|
|
670
682
|
}
|
|
671
|
-
return
|
|
683
|
+
return _chunkX7KOY66Hcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
672
684
|
}
|
|
673
685
|
}
|
|
674
686
|
const contentType = contentTypes.shift();
|
|
675
687
|
if (!contentType) {
|
|
676
688
|
return {};
|
|
677
689
|
}
|
|
678
|
-
const schema =
|
|
690
|
+
const schema = _chunkX7KOY66Hcjs.cloneObject.call(void 0, content[contentType].schema);
|
|
679
691
|
if (!schema) {
|
|
680
692
|
return {};
|
|
681
693
|
}
|
|
682
|
-
return
|
|
694
|
+
return _chunkX7KOY66Hcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
|
|
683
695
|
}
|
|
684
696
|
const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _46 => _46.contentType]));
|
|
685
697
|
if (_optionalChain([opts, 'optionalAccess', _47 => _47.contentType]) && !foundSchema) {
|
|
@@ -688,7 +700,7 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
688
700
|
if (foundSchema) {
|
|
689
701
|
const schema = structuredClone(foundSchema);
|
|
690
702
|
let schemaType = foundSchema.type;
|
|
691
|
-
if (schemaType === void 0 &&
|
|
703
|
+
if (schemaType === void 0 && _chunk3MTU2ESPcjs.isRef.call(void 0, foundSchema) && usedSchemas.size > 0) {
|
|
692
704
|
const resolvedSchema = usedSchemas.get(foundSchema.$ref);
|
|
693
705
|
const resolvedType = resolvedSchema && typeof resolvedSchema === "object" && "type" in resolvedSchema ? resolvedSchema.type : void 0;
|
|
694
706
|
schemaType = Array.isArray(resolvedType) ? resolvedType[0] : resolvedType;
|
|
@@ -698,23 +710,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
698
710
|
// able to render so instead of generating a JSON Schema with an `undefined` type we should
|
|
699
711
|
// default to `string` so there's at least *something* the end-user can interact with.
|
|
700
712
|
type: _nullishCoalesce(schemaType, () => ( "string")),
|
|
701
|
-
schema:
|
|
713
|
+
schema: _chunkX7KOY66Hcjs.isPrimitive.call(void 0, schema) ? schema : {
|
|
702
714
|
...schema,
|
|
703
|
-
$schema:
|
|
715
|
+
$schema: _chunkX7KOY66Hcjs.getSchemaVersionString.call(void 0, schema, api)
|
|
704
716
|
},
|
|
705
717
|
label: "Response body"
|
|
706
718
|
};
|
|
707
719
|
if (response.description && schemaWrapper.schema) {
|
|
708
720
|
schemaWrapper.description = response.description;
|
|
709
721
|
}
|
|
710
|
-
|
|
722
|
+
_chunkX7KOY66Hcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
|
|
711
723
|
if (usedSchemas.has(ref)) {
|
|
712
724
|
return usedSchemas.get(ref);
|
|
713
725
|
}
|
|
714
726
|
try {
|
|
715
|
-
const resolved =
|
|
716
|
-
if (
|
|
717
|
-
const converted =
|
|
727
|
+
const resolved = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
|
|
728
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, resolved)) return void 0;
|
|
729
|
+
const converted = _chunkX7KOY66Hcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
|
|
718
730
|
...baseSchemaOptions,
|
|
719
731
|
seenRefs
|
|
720
732
|
});
|
|
@@ -726,9 +738,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
726
738
|
});
|
|
727
739
|
if (schemaWrapper.schema && usedSchemas.size > 0) {
|
|
728
740
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
|
|
729
|
-
const referencedSchemas =
|
|
741
|
+
const referencedSchemas = _chunkX7KOY66Hcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
|
|
730
742
|
if (referencedSchemas.size > 0) {
|
|
731
|
-
|
|
743
|
+
_chunkX7KOY66Hcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
|
|
732
744
|
}
|
|
733
745
|
}
|
|
734
746
|
jsonSchema.push(schemaWrapper);
|
|
@@ -740,9 +752,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
740
752
|
});
|
|
741
753
|
if (headersWrapper.schema && usedSchemas.size > 0) {
|
|
742
754
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
|
|
743
|
-
const referencedSchemas =
|
|
755
|
+
const referencedSchemas = _chunkX7KOY66Hcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
|
|
744
756
|
if (referencedSchemas.size > 0) {
|
|
745
|
-
|
|
757
|
+
_chunkX7KOY66Hcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
|
|
746
758
|
}
|
|
747
759
|
}
|
|
748
760
|
jsonSchema.push(headersWrapper);
|
|
@@ -881,8 +893,8 @@ var Operation = (_class = class {
|
|
|
881
893
|
}
|
|
882
894
|
let types = [];
|
|
883
895
|
if (this.schema.requestBody) {
|
|
884
|
-
if (
|
|
885
|
-
this.schema.requestBody =
|
|
896
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, this.schema.requestBody)) {
|
|
897
|
+
this.schema.requestBody = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
|
|
886
898
|
}
|
|
887
899
|
if (this.schema.requestBody && "content" in this.schema.requestBody) {
|
|
888
900
|
types = Object.keys(this.schema.requestBody.content);
|
|
@@ -893,7 +905,7 @@ var Operation = (_class = class {
|
|
|
893
905
|
this.contentType = types[0];
|
|
894
906
|
}
|
|
895
907
|
types.forEach((t) => {
|
|
896
|
-
if (
|
|
908
|
+
if (_chunkX7KOY66Hcjs.matches_mimetype_default.json(t)) {
|
|
897
909
|
this.contentType = t;
|
|
898
910
|
}
|
|
899
911
|
});
|
|
@@ -906,7 +918,7 @@ var Operation = (_class = class {
|
|
|
906
918
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
907
919
|
*/
|
|
908
920
|
isFormUrlEncoded() {
|
|
909
|
-
return
|
|
921
|
+
return _chunkX7KOY66Hcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
|
|
910
922
|
}
|
|
911
923
|
/**
|
|
912
924
|
* Checks if the current operation has a mutipart content type payload.
|
|
@@ -915,7 +927,7 @@ var Operation = (_class = class {
|
|
|
915
927
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
916
928
|
*/
|
|
917
929
|
isMultipart() {
|
|
918
|
-
return
|
|
930
|
+
return _chunkX7KOY66Hcjs.matches_mimetype_default.multipart(this.getContentType());
|
|
919
931
|
}
|
|
920
932
|
/**
|
|
921
933
|
* Checks if the current operation has a JSON-like content type payload.
|
|
@@ -924,7 +936,7 @@ var Operation = (_class = class {
|
|
|
924
936
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
925
937
|
*/
|
|
926
938
|
isJson() {
|
|
927
|
-
return
|
|
939
|
+
return _chunkX7KOY66Hcjs.matches_mimetype_default.json(this.getContentType());
|
|
928
940
|
}
|
|
929
941
|
/**
|
|
930
942
|
* Checks if the current operation has an XML content type payload.
|
|
@@ -933,7 +945,7 @@ var Operation = (_class = class {
|
|
|
933
945
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
934
946
|
*/
|
|
935
947
|
isXml() {
|
|
936
|
-
return
|
|
948
|
+
return _chunkX7KOY66Hcjs.matches_mimetype_default.xml(this.getContentType());
|
|
937
949
|
}
|
|
938
950
|
/**
|
|
939
951
|
* Checks if the current operation is a webhook or not.
|
|
@@ -980,14 +992,14 @@ var Operation = (_class = class {
|
|
|
980
992
|
try {
|
|
981
993
|
security = _optionalChain([this, 'access', _64 => _64.api, 'optionalAccess', _65 => _65.components, 'optionalAccess', _66 => _66.securitySchemes, 'optionalAccess', _67 => _67[key]]);
|
|
982
994
|
if (!security) return false;
|
|
983
|
-
if (
|
|
984
|
-
security =
|
|
985
|
-
if (!security ||
|
|
995
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, security)) {
|
|
996
|
+
security = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, security, this.api);
|
|
997
|
+
if (!security || _chunk3MTU2ESPcjs.isRef.call(void 0, security)) return false;
|
|
986
998
|
}
|
|
987
999
|
} catch (e4) {
|
|
988
1000
|
return false;
|
|
989
1001
|
}
|
|
990
|
-
if (!security ||
|
|
1002
|
+
if (!security || _chunk3MTU2ESPcjs.isRef.call(void 0, security)) return false;
|
|
991
1003
|
let type = null;
|
|
992
1004
|
if (security.type === "http") {
|
|
993
1005
|
if (security.scheme === "basic") type = "Basic";
|
|
@@ -1061,9 +1073,9 @@ var Operation = (_class = class {
|
|
|
1061
1073
|
this.headers.request = this.headers.request.concat(
|
|
1062
1074
|
this.schema.parameters.map((p) => {
|
|
1063
1075
|
let param = p;
|
|
1064
|
-
if (
|
|
1065
|
-
param =
|
|
1066
|
-
if (!param ||
|
|
1076
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, param)) {
|
|
1077
|
+
param = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1078
|
+
if (!param || _chunk3MTU2ESPcjs.isRef.call(void 0, param)) return void 0;
|
|
1067
1079
|
}
|
|
1068
1080
|
if (param.in && param.in === "header") return param.name;
|
|
1069
1081
|
return void 0;
|
|
@@ -1074,10 +1086,10 @@ var Operation = (_class = class {
|
|
|
1074
1086
|
this.headers.response = Object.keys(this.schema.responses).map((r) => {
|
|
1075
1087
|
let response = this.schema.responses[r];
|
|
1076
1088
|
if (!response) return [];
|
|
1077
|
-
if (
|
|
1078
|
-
this.schema.responses[r] =
|
|
1089
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, response)) {
|
|
1090
|
+
this.schema.responses[r] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1079
1091
|
response = this.schema.responses[r];
|
|
1080
|
-
if (!response ||
|
|
1092
|
+
if (!response || _chunk3MTU2ESPcjs.isRef.call(void 0, response)) {
|
|
1081
1093
|
return [];
|
|
1082
1094
|
}
|
|
1083
1095
|
}
|
|
@@ -1087,11 +1099,11 @@ var Operation = (_class = class {
|
|
|
1087
1099
|
if (!this.headers.request.includes("Content-Type") && this.schema.requestBody) {
|
|
1088
1100
|
let requestBody = this.schema.requestBody;
|
|
1089
1101
|
if (requestBody) {
|
|
1090
|
-
if (
|
|
1091
|
-
this.schema.requestBody =
|
|
1102
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, requestBody)) {
|
|
1103
|
+
this.schema.requestBody = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1092
1104
|
requestBody = this.schema.requestBody;
|
|
1093
1105
|
}
|
|
1094
|
-
if (requestBody && !
|
|
1106
|
+
if (requestBody && !_chunk3MTU2ESPcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
|
|
1095
1107
|
this.headers.request.push("Content-Type");
|
|
1096
1108
|
}
|
|
1097
1109
|
}
|
|
@@ -1100,10 +1112,10 @@ var Operation = (_class = class {
|
|
|
1100
1112
|
const hasResponseContent = Object.keys(this.schema.responses).some((r) => {
|
|
1101
1113
|
let response = _optionalChain([this, 'access', _71 => _71.schema, 'access', _72 => _72.responses, 'optionalAccess', _73 => _73[r]]);
|
|
1102
1114
|
if (!response) return false;
|
|
1103
|
-
if (
|
|
1104
|
-
this.schema.responses[r] =
|
|
1115
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, response)) {
|
|
1116
|
+
this.schema.responses[r] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1105
1117
|
response = this.schema.responses[r];
|
|
1106
|
-
if (!response ||
|
|
1118
|
+
if (!response || _chunk3MTU2ESPcjs.isRef.call(void 0, response)) {
|
|
1107
1119
|
return false;
|
|
1108
1120
|
}
|
|
1109
1121
|
}
|
|
@@ -1210,17 +1222,17 @@ var Operation = (_class = class {
|
|
|
1210
1222
|
getParameters() {
|
|
1211
1223
|
let parameters = (_optionalChain([this, 'access', _76 => _76.schema, 'optionalAccess', _77 => _77.parameters]) || []).map((p) => {
|
|
1212
1224
|
let param = p;
|
|
1213
|
-
if (
|
|
1214
|
-
param =
|
|
1215
|
-
if (!param ||
|
|
1225
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, param)) {
|
|
1226
|
+
param = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1227
|
+
if (!param || _chunk3MTU2ESPcjs.isRef.call(void 0, param)) return void 0;
|
|
1216
1228
|
}
|
|
1217
1229
|
return param;
|
|
1218
1230
|
}).filter((param) => param !== void 0);
|
|
1219
1231
|
const commonParams = (_optionalChain([this, 'access', _78 => _78.api, 'optionalAccess', _79 => _79.paths, 'optionalAccess', _80 => _80[this.path], 'optionalAccess', _81 => _81.parameters]) || []).map((p) => {
|
|
1220
1232
|
let param = p;
|
|
1221
|
-
if (
|
|
1222
|
-
param =
|
|
1223
|
-
if (!param ||
|
|
1233
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, param)) {
|
|
1234
|
+
param = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1235
|
+
if (!param || _chunk3MTU2ESPcjs.isRef.call(void 0, param)) return void 0;
|
|
1224
1236
|
}
|
|
1225
1237
|
return param;
|
|
1226
1238
|
}).filter((param) => param !== void 0);
|
|
@@ -1257,10 +1269,10 @@ var Operation = (_class = class {
|
|
|
1257
1269
|
);
|
|
1258
1270
|
}
|
|
1259
1271
|
if (!this.schemasDecorated) {
|
|
1260
|
-
|
|
1272
|
+
_chunkX7KOY66Hcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1261
1273
|
this.schemasDecorated = true;
|
|
1262
1274
|
}
|
|
1263
|
-
return
|
|
1275
|
+
return _chunkX7KOY66Hcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
|
|
1264
1276
|
includeDiscriminatorMappingRefs: true,
|
|
1265
1277
|
...opts
|
|
1266
1278
|
});
|
|
@@ -1285,7 +1297,7 @@ var Operation = (_class = class {
|
|
|
1285
1297
|
);
|
|
1286
1298
|
}
|
|
1287
1299
|
if (!this.schemasDecorated) {
|
|
1288
|
-
|
|
1300
|
+
_chunkX7KOY66Hcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1289
1301
|
this.schemasDecorated = true;
|
|
1290
1302
|
}
|
|
1291
1303
|
return getResponseAsJSONSchema(this, this.api, statusCode, {
|
|
@@ -1299,9 +1311,9 @@ var Operation = (_class = class {
|
|
|
1299
1311
|
*/
|
|
1300
1312
|
getResponseStatusCodes() {
|
|
1301
1313
|
if (!this.schema.responses) return [];
|
|
1302
|
-
if (
|
|
1303
|
-
this.schema.responses =
|
|
1304
|
-
if (!this.schema.responses ||
|
|
1314
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1315
|
+
this.schema.responses = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
|
|
1316
|
+
if (!this.schema.responses || _chunk3MTU2ESPcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1305
1317
|
return [];
|
|
1306
1318
|
}
|
|
1307
1319
|
}
|
|
@@ -1325,9 +1337,9 @@ var Operation = (_class = class {
|
|
|
1325
1337
|
Object.values(this.schema.responses).forEach((response) => {
|
|
1326
1338
|
let resp = response;
|
|
1327
1339
|
if (!resp) return;
|
|
1328
|
-
if (
|
|
1329
|
-
resp =
|
|
1330
|
-
if (!resp ||
|
|
1340
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, resp)) {
|
|
1341
|
+
resp = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, resp, this.api);
|
|
1342
|
+
if (!resp || _chunk3MTU2ESPcjs.isRef.call(void 0, resp)) {
|
|
1331
1343
|
return;
|
|
1332
1344
|
}
|
|
1333
1345
|
}
|
|
@@ -1354,10 +1366,10 @@ var Operation = (_class = class {
|
|
|
1354
1366
|
getResolvedRequestBody() {
|
|
1355
1367
|
let requestBody = this.schema.requestBody;
|
|
1356
1368
|
if (!requestBody) return false;
|
|
1357
|
-
if (
|
|
1358
|
-
this.schema.requestBody =
|
|
1369
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, requestBody)) {
|
|
1370
|
+
this.schema.requestBody = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1359
1371
|
requestBody = this.schema.requestBody;
|
|
1360
|
-
if (!requestBody ||
|
|
1372
|
+
if (!requestBody || _chunk3MTU2ESPcjs.isRef.call(void 0, requestBody)) {
|
|
1361
1373
|
return false;
|
|
1362
1374
|
}
|
|
1363
1375
|
}
|
|
@@ -1425,7 +1437,7 @@ var Operation = (_class = class {
|
|
|
1425
1437
|
let availableMediaType;
|
|
1426
1438
|
const mediaTypes = this.getRequestBodyMediaTypes();
|
|
1427
1439
|
mediaTypes.forEach((mt) => {
|
|
1428
|
-
if (!availableMediaType &&
|
|
1440
|
+
if (!availableMediaType && _chunkX7KOY66Hcjs.matches_mimetype_default.json(mt)) {
|
|
1429
1441
|
availableMediaType = mt;
|
|
1430
1442
|
}
|
|
1431
1443
|
});
|
|
@@ -1472,10 +1484,10 @@ var Operation = (_class = class {
|
|
|
1472
1484
|
}
|
|
1473
1485
|
let response = this.schema.responses[statusCode];
|
|
1474
1486
|
if (!response) return false;
|
|
1475
|
-
if (
|
|
1476
|
-
this.schema.responses[statusCode] =
|
|
1487
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, response)) {
|
|
1488
|
+
this.schema.responses[statusCode] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1477
1489
|
response = this.schema.responses[statusCode];
|
|
1478
|
-
if (!response ||
|
|
1490
|
+
if (!response || _chunk3MTU2ESPcjs.isRef.call(void 0, response)) {
|
|
1479
1491
|
return false;
|
|
1480
1492
|
}
|
|
1481
1493
|
}
|
|
@@ -1516,19 +1528,19 @@ var Operation = (_class = class {
|
|
|
1516
1528
|
if (!this.schema.callbacks) return false;
|
|
1517
1529
|
let callbackObj = this.schema.callbacks[identifier];
|
|
1518
1530
|
if (!callbackObj) return false;
|
|
1519
|
-
if (
|
|
1520
|
-
this.schema.callbacks[identifier] =
|
|
1531
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, callbackObj)) {
|
|
1532
|
+
this.schema.callbacks[identifier] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, callbackObj, this.api);
|
|
1521
1533
|
callbackObj = this.schema.callbacks[identifier];
|
|
1522
|
-
if (!callbackObj ||
|
|
1534
|
+
if (!callbackObj || _chunk3MTU2ESPcjs.isRef.call(void 0, callbackObj)) {
|
|
1523
1535
|
return false;
|
|
1524
1536
|
}
|
|
1525
1537
|
}
|
|
1526
1538
|
let callback = callbackObj[expression];
|
|
1527
1539
|
if (!callback) return false;
|
|
1528
|
-
if (
|
|
1529
|
-
callbackObj[expression] =
|
|
1540
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, callback)) {
|
|
1541
|
+
callbackObj[expression] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, callback, this.api);
|
|
1530
1542
|
callback = callbackObj[expression];
|
|
1531
|
-
if (!callback ||
|
|
1543
|
+
if (!callback || _chunk3MTU2ESPcjs.isRef.call(void 0, callback)) {
|
|
1532
1544
|
return false;
|
|
1533
1545
|
}
|
|
1534
1546
|
}
|
|
@@ -1549,25 +1561,25 @@ var Operation = (_class = class {
|
|
|
1549
1561
|
Object.keys(this.schema.callbacks).forEach((callback) => {
|
|
1550
1562
|
let cb = _optionalChain([this, 'access', _90 => _90.schema, 'access', _91 => _91.callbacks, 'optionalAccess', _92 => _92[callback]]);
|
|
1551
1563
|
if (!cb) return;
|
|
1552
|
-
if (
|
|
1553
|
-
this.schema.callbacks[callback] =
|
|
1564
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, cb)) {
|
|
1565
|
+
this.schema.callbacks[callback] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, cb, this.api);
|
|
1554
1566
|
cb = this.schema.callbacks[callback];
|
|
1555
|
-
if (!cb ||
|
|
1567
|
+
if (!cb || _chunk3MTU2ESPcjs.isRef.call(void 0, cb)) {
|
|
1556
1568
|
return;
|
|
1557
1569
|
}
|
|
1558
1570
|
}
|
|
1559
1571
|
Object.keys(cb).forEach((expression) => {
|
|
1560
1572
|
let callbackPath = cb[expression];
|
|
1561
1573
|
if (!callbackPath) return;
|
|
1562
|
-
if (
|
|
1563
|
-
cb[expression] =
|
|
1574
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, callbackPath)) {
|
|
1575
|
+
cb[expression] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, callbackPath, this.api);
|
|
1564
1576
|
callbackPath = cb[expression];
|
|
1565
|
-
if (!callbackPath ||
|
|
1577
|
+
if (!callbackPath || _chunk3MTU2ESPcjs.isRef.call(void 0, callbackPath)) {
|
|
1566
1578
|
return;
|
|
1567
1579
|
}
|
|
1568
1580
|
}
|
|
1569
1581
|
Object.keys(callbackPath).forEach((method) => {
|
|
1570
|
-
if (!
|
|
1582
|
+
if (!_chunkX7KOY66Hcjs.supportedMethods.includes(method)) return;
|
|
1571
1583
|
const found = this.getCallback(callback, expression, method);
|
|
1572
1584
|
if (found) {
|
|
1573
1585
|
callbacks.push(found);
|
|
@@ -1645,12 +1657,12 @@ var Operation = (_class = class {
|
|
|
1645
1657
|
}
|
|
1646
1658
|
this.dereferencing.processing = true;
|
|
1647
1659
|
if (!this.schemasDecorated) {
|
|
1648
|
-
|
|
1660
|
+
_chunkX7KOY66Hcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1649
1661
|
this.schemasDecorated = true;
|
|
1650
1662
|
}
|
|
1651
1663
|
const { api, schema, promises } = this;
|
|
1652
1664
|
const circularRefs = /* @__PURE__ */ new Set();
|
|
1653
|
-
const dereferencingOptions =
|
|
1665
|
+
const dereferencingOptions = _chunkX7KOY66Hcjs.getDereferencingOptions.call(void 0, circularRefs);
|
|
1654
1666
|
const parser = new (0, _jsonschemarefparser.$RefParser)();
|
|
1655
1667
|
return parser.dereference(
|
|
1656
1668
|
"#/__INTERNAL__",
|
|
@@ -1791,17 +1803,17 @@ var Callback = class extends Operation {
|
|
|
1791
1803
|
getParameters() {
|
|
1792
1804
|
let parameters = (_optionalChain([this, 'access', _100 => _100.schema, 'optionalAccess', _101 => _101.parameters]) || []).map((p) => {
|
|
1793
1805
|
let param = p;
|
|
1794
|
-
if (
|
|
1795
|
-
param =
|
|
1796
|
-
if (!param ||
|
|
1806
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, param)) {
|
|
1807
|
+
param = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1808
|
+
if (!param || _chunk3MTU2ESPcjs.isRef.call(void 0, param)) return void 0;
|
|
1797
1809
|
}
|
|
1798
1810
|
return param;
|
|
1799
1811
|
}).filter((param) => param !== void 0);
|
|
1800
1812
|
const commonParams = (this.parentSchema.parameters || []).map((p) => {
|
|
1801
1813
|
let param = p;
|
|
1802
|
-
if (
|
|
1803
|
-
param =
|
|
1804
|
-
if (!param ||
|
|
1814
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, param)) {
|
|
1815
|
+
param = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1816
|
+
if (!param || _chunk3MTU2ESPcjs.isRef.call(void 0, param)) return void 0;
|
|
1805
1817
|
}
|
|
1806
1818
|
return param;
|
|
1807
1819
|
}).filter((param) => param !== void 0);
|
|
@@ -1825,8 +1837,8 @@ var Webhook = class extends Operation {
|
|
|
1825
1837
|
return void 0;
|
|
1826
1838
|
}
|
|
1827
1839
|
let webhookPath = this.api.webhooks[this.path];
|
|
1828
|
-
if (
|
|
1829
|
-
this.api.webhooks[this.path] =
|
|
1840
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, webhookPath)) {
|
|
1841
|
+
this.api.webhooks[this.path] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1830
1842
|
webhookPath = this.api.webhooks[this.path];
|
|
1831
1843
|
}
|
|
1832
1844
|
return _optionalChain([webhookPath, 'optionalAccess', _104 => _104.summary]);
|
|
@@ -1844,8 +1856,8 @@ var Webhook = class extends Operation {
|
|
|
1844
1856
|
return void 0;
|
|
1845
1857
|
}
|
|
1846
1858
|
let webhookPath = this.api.webhooks[this.path];
|
|
1847
|
-
if (
|
|
1848
|
-
this.api.webhooks[this.path] =
|
|
1859
|
+
if (_chunk3MTU2ESPcjs.isRef.call(void 0, webhookPath)) {
|
|
1860
|
+
this.api.webhooks[this.path] = _chunkX7KOY66Hcjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1849
1861
|
webhookPath = this.api.webhooks[this.path];
|
|
1850
1862
|
}
|
|
1851
1863
|
return _optionalChain([webhookPath, 'optionalAccess', _107 => _107.description]);
|
|
@@ -1869,4 +1881,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
|
|
|
1869
1881
|
* @license Apache-2.0
|
|
1870
1882
|
* @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
|
|
1871
1883
|
*/
|
|
1872
|
-
//# sourceMappingURL=chunk-
|
|
1884
|
+
//# sourceMappingURL=chunk-DNLCD3K6.cjs.map
|