oas 34.1.0 → 36.0.1
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-NR45NABA.cjs → chunk-7PWF3F2W.cjs} +1 -1
- package/dist/chunk-7PWF3F2W.cjs.map +1 -0
- package/dist/{chunk-JGJR6Y6O.cjs → chunk-BECL5BTE.cjs} +32 -28
- package/dist/chunk-BECL5BTE.cjs.map +1 -0
- package/dist/{chunk-6KWJOFQ2.cjs → chunk-C6QTUTTF.cjs} +43 -37
- package/dist/{chunk-6KWJOFQ2.cjs.map → chunk-C6QTUTTF.cjs.map} +1 -1
- package/dist/{chunk-LIBQ2UJH.js → chunk-GWZBWDMT.js} +3 -3
- package/dist/{chunk-6OI7XULA.js → chunk-LYWP3CSV.js} +8 -2
- package/dist/chunk-LYWP3CSV.js.map +1 -0
- package/dist/{chunk-4CVTOSVQ.cjs → chunk-O2NUKZ7L.cjs} +132 -132
- package/dist/{chunk-4CVTOSVQ.cjs.map → chunk-O2NUKZ7L.cjs.map} +1 -1
- package/dist/{chunk-CHFSBT33.js → chunk-QI6WI5AK.js} +8 -4
- package/dist/{chunk-CHFSBT33.js.map → chunk-QI6WI5AK.js.map} +1 -1
- package/dist/{chunk-NM3QL4AB.js → chunk-XG4HGNCN.js} +1 -1
- package/dist/chunk-XG4HGNCN.js.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.js +4 -4
- package/dist/operation/index.cjs +4 -4
- package/dist/operation/index.js +3 -3
- package/dist/reducer/index.cjs +13 -13
- package/dist/reducer/index.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +14 -5
- package/dist/types.d.ts +14 -5
- package/dist/types.js +1 -1
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-6OI7XULA.js.map +0 -1
- package/dist/chunk-JGJR6Y6O.cjs.map +0 -1
- package/dist/chunk-NM3QL4AB.js.map +0 -1
- package/dist/chunk-NR45NABA.cjs.map +0 -1
- /package/dist/{chunk-LIBQ2UJH.js.map → chunk-GWZBWDMT.js.map} +0 -0
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkC6QTUTTFcjs = require('./chunk-C6QTUTTF.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkAYA3UT4Lcjs = require('./chunk-AYA3UT4L.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk7PWF3F2Wcjs = require('./chunk-7PWF3F2W.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 (_chunk7PWF3F2Wcjs.isRef.call(void 0, param) && _chunk7PWF3F2Wcjs.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 (!_chunkC6QTUTTFcjs.isObject.call(void 0, thing)) {
|
|
60
60
|
return {};
|
|
61
61
|
}
|
|
62
62
|
return thing;
|
|
@@ -116,13 +116,13 @@ function sampleFromSchema(schema, opts = {}) {
|
|
|
116
116
|
const seenRefs = opts.seenRefs || /* @__PURE__ */ new Set();
|
|
117
117
|
let objectifySchema = objectify(schema);
|
|
118
118
|
let refToRelease;
|
|
119
|
-
if (opts.definition &&
|
|
119
|
+
if (opts.definition && _chunk7PWF3F2Wcjs.isRef.call(void 0, objectifySchema)) {
|
|
120
120
|
refToRelease = objectifySchema.$ref;
|
|
121
121
|
if (seenRefs.has(refToRelease)) {
|
|
122
122
|
return void 0;
|
|
123
123
|
}
|
|
124
|
-
objectifySchema =
|
|
125
|
-
if (!objectifySchema ||
|
|
124
|
+
objectifySchema = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
|
|
125
|
+
if (!objectifySchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, objectifySchema)) {
|
|
126
126
|
return void 0;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -139,7 +139,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
139
139
|
const { example, additionalProperties, properties, items } = schema;
|
|
140
140
|
const { includeReadOnly, includeWriteOnly } = opts;
|
|
141
141
|
if (example !== void 0) {
|
|
142
|
-
return
|
|
142
|
+
return _chunkC6QTUTTFcjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
|
|
143
143
|
}
|
|
144
144
|
const hasPolymorphism = usesPolymorphism(schema);
|
|
145
145
|
if (hasPolymorphism === "allOf") {
|
|
@@ -147,9 +147,9 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
|
|
|
147
147
|
const definition = opts.definition;
|
|
148
148
|
const resolvedAllOf = schema.allOf.map((subSchema) => {
|
|
149
149
|
let sub = objectify(subSchema);
|
|
150
|
-
if (definition &&
|
|
151
|
-
const resolved =
|
|
152
|
-
if (resolved && !
|
|
150
|
+
if (definition && _chunk7PWF3F2Wcjs.isRef.call(void 0, sub)) {
|
|
151
|
+
const resolved = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
|
|
152
|
+
if (resolved && !_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) {
|
|
153
153
|
sub = resolved;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -261,8 +261,8 @@ var samples_default = memo;
|
|
|
261
261
|
// src/operation/lib/get-mediatype-examples.ts
|
|
262
262
|
function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
|
|
263
263
|
if (mediaTypeObject.example) {
|
|
264
|
-
mediaTypeObject.example =
|
|
265
|
-
if (mediaTypeObject.example === void 0 ||
|
|
264
|
+
mediaTypeObject.example = _chunkC6QTUTTFcjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
|
|
265
|
+
if (mediaTypeObject.example === void 0 || _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
|
|
266
266
|
return [];
|
|
267
267
|
}
|
|
268
268
|
return [
|
|
@@ -277,9 +277,9 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
277
277
|
let description;
|
|
278
278
|
let example = examples[key];
|
|
279
279
|
if (example !== null && typeof example === "object") {
|
|
280
|
-
if (
|
|
281
|
-
example =
|
|
282
|
-
if (!example ||
|
|
280
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
|
|
281
|
+
example = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, example, definition);
|
|
282
|
+
if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
|
|
283
283
|
return false;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
@@ -290,8 +290,8 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
290
290
|
description = example.description;
|
|
291
291
|
}
|
|
292
292
|
if ("value" in example) {
|
|
293
|
-
example.value =
|
|
294
|
-
if (example.value === void 0 ||
|
|
293
|
+
example.value = _chunkC6QTUTTFcjs.dereferenceRefDeep.call(void 0, example.value, definition);
|
|
294
|
+
if (example.value === void 0 || _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
|
|
295
295
|
return false;
|
|
296
296
|
}
|
|
297
297
|
example = example.value;
|
|
@@ -308,7 +308,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
if (mediaTypeObject.schema) {
|
|
311
|
-
if (!
|
|
311
|
+
if (!_chunkC6QTUTTFcjs.matches_mimetype_default.xml(mediaType)) {
|
|
312
312
|
return [
|
|
313
313
|
{
|
|
314
314
|
value: samples_default(structuredClone(mediaTypeObject.schema), {
|
|
@@ -328,9 +328,9 @@ function getResponseExamples(operation, definition) {
|
|
|
328
328
|
let response = _optionalChain([operation, 'access', _11 => _11.responses, 'optionalAccess', _12 => _12[status]]);
|
|
329
329
|
let onlyHeaders = false;
|
|
330
330
|
if (!response) return false;
|
|
331
|
-
if (
|
|
332
|
-
response =
|
|
333
|
-
if (!response ||
|
|
331
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
332
|
+
response = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, definition);
|
|
333
|
+
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) return false;
|
|
334
334
|
}
|
|
335
335
|
const mediaTypes = {};
|
|
336
336
|
(_optionalChain([response, 'optionalAccess', _13 => _13.content]) ? Object.keys(response.content) : []).forEach((mediaType) => {
|
|
@@ -368,16 +368,16 @@ function getCallbackExamples(operation, definition) {
|
|
|
368
368
|
const examples = Object.keys(operation.callbacks).map((identifier) => {
|
|
369
369
|
let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
|
|
370
370
|
if (!callback) return [];
|
|
371
|
-
if (
|
|
372
|
-
callback =
|
|
373
|
-
if (!callback ||
|
|
371
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
|
|
372
|
+
callback = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callback, definition);
|
|
373
|
+
if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) return [];
|
|
374
374
|
}
|
|
375
375
|
const items = Object.keys(callback).map((expression) => {
|
|
376
376
|
let callbackPath = callback[expression];
|
|
377
377
|
if (!callbackPath) return [];
|
|
378
|
-
if (
|
|
379
|
-
callbackPath =
|
|
380
|
-
if (!callbackPath ||
|
|
378
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
|
|
379
|
+
callbackPath = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackPath, definition);
|
|
380
|
+
if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) return [];
|
|
381
381
|
}
|
|
382
382
|
return Object.keys(callbackPath).map((method) => {
|
|
383
383
|
if (["servers", "parameters", "summary", "description"].includes(method)) {
|
|
@@ -458,9 +458,9 @@ function getExampleGroups(operation) {
|
|
|
458
458
|
operation.getParameters().forEach((param) => {
|
|
459
459
|
Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
|
|
460
460
|
let example = paramExample;
|
|
461
|
-
if (
|
|
462
|
-
example =
|
|
463
|
-
if (!example ||
|
|
461
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
|
|
462
|
+
example = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, example, operation.api);
|
|
463
|
+
if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) return;
|
|
464
464
|
}
|
|
465
465
|
groups[exampleKey] = {
|
|
466
466
|
...groups[exampleKey],
|
|
@@ -506,10 +506,10 @@ function getRequestBodyExamples(operation, definition) {
|
|
|
506
506
|
let requestBody = operation.requestBody;
|
|
507
507
|
if (!requestBody) {
|
|
508
508
|
return [];
|
|
509
|
-
} else if (
|
|
510
|
-
requestBody =
|
|
509
|
+
} else if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
510
|
+
requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, definition);
|
|
511
511
|
}
|
|
512
|
-
if (!requestBody ||
|
|
512
|
+
if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
|
|
513
513
|
return [];
|
|
514
514
|
}
|
|
515
515
|
return Object.keys(requestBody.content || {}).map((mediaType) => {
|
|
@@ -572,7 +572,7 @@ function getOperationId(path, method, operation, opts = {}) {
|
|
|
572
572
|
}
|
|
573
573
|
|
|
574
574
|
// src/operation/transformers/get-response-as-json-schema.ts
|
|
575
|
-
var isJSON =
|
|
575
|
+
var isJSON = _chunkC6QTUTTFcjs.matches_mimetype_default.json;
|
|
576
576
|
function buildHeadersSchema(response, schemaOptions) {
|
|
577
577
|
const headersSchema = {
|
|
578
578
|
type: "object",
|
|
@@ -584,19 +584,19 @@ function buildHeadersSchema(response, schemaOptions) {
|
|
|
584
584
|
Object.keys(response.headers).forEach((key) => {
|
|
585
585
|
let headerEntry = _optionalChain([response, 'access', _44 => _44.headers, 'optionalAccess', _45 => _45[key]]);
|
|
586
586
|
if (!headerEntry) return;
|
|
587
|
-
if (
|
|
588
|
-
headerEntry =
|
|
589
|
-
if (!headerEntry ||
|
|
587
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) {
|
|
588
|
+
headerEntry = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
|
|
589
|
+
if (!headerEntry || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) return;
|
|
590
590
|
}
|
|
591
591
|
if (headerEntry.schema) {
|
|
592
592
|
const header = headerEntry;
|
|
593
593
|
let headerSchema = header.schema;
|
|
594
594
|
if (!headerSchema) return;
|
|
595
|
-
if (
|
|
596
|
-
headerSchema =
|
|
597
|
-
if (!headerSchema ||
|
|
595
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) {
|
|
596
|
+
headerSchema = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
|
|
597
|
+
if (!headerSchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) return;
|
|
598
598
|
}
|
|
599
|
-
headersSchema.properties[key] =
|
|
599
|
+
headersSchema.properties[key] = _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, _chunkC6QTUTTFcjs.cloneObject.call(void 0, headerSchema), {
|
|
600
600
|
addEnumsToDescriptions: true,
|
|
601
601
|
...schemaOptions
|
|
602
602
|
});
|
|
@@ -650,32 +650,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
650
650
|
}
|
|
651
651
|
if (preferredContentType) {
|
|
652
652
|
if (contentTypes.includes(preferredContentType)) {
|
|
653
|
-
const schema2 =
|
|
653
|
+
const schema2 = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[preferredContentType].schema);
|
|
654
654
|
if (!schema2) {
|
|
655
655
|
return null;
|
|
656
656
|
}
|
|
657
|
-
return
|
|
657
|
+
return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
658
658
|
}
|
|
659
659
|
return null;
|
|
660
660
|
}
|
|
661
661
|
for (let i = 0; i < contentTypes.length; i++) {
|
|
662
662
|
if (isJSON(contentTypes[i])) {
|
|
663
|
-
const schema2 =
|
|
663
|
+
const schema2 = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
|
|
664
664
|
if (!schema2) {
|
|
665
665
|
return {};
|
|
666
666
|
}
|
|
667
|
-
return
|
|
667
|
+
return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
const contentType = contentTypes.shift();
|
|
671
671
|
if (!contentType) {
|
|
672
672
|
return {};
|
|
673
673
|
}
|
|
674
|
-
const schema =
|
|
674
|
+
const schema = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[contentType].schema);
|
|
675
675
|
if (!schema) {
|
|
676
676
|
return {};
|
|
677
677
|
}
|
|
678
|
-
return
|
|
678
|
+
return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
|
|
679
679
|
}
|
|
680
680
|
const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _46 => _46.contentType]));
|
|
681
681
|
if (_optionalChain([opts, 'optionalAccess', _47 => _47.contentType]) && !foundSchema) {
|
|
@@ -684,7 +684,7 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
684
684
|
if (foundSchema) {
|
|
685
685
|
const schema = structuredClone(foundSchema);
|
|
686
686
|
let schemaType = foundSchema.type;
|
|
687
|
-
if (schemaType === void 0 &&
|
|
687
|
+
if (schemaType === void 0 && _chunk7PWF3F2Wcjs.isRef.call(void 0, foundSchema) && usedSchemas.size > 0) {
|
|
688
688
|
const resolvedSchema = usedSchemas.get(foundSchema.$ref);
|
|
689
689
|
const resolvedType = resolvedSchema && typeof resolvedSchema === "object" && "type" in resolvedSchema ? resolvedSchema.type : void 0;
|
|
690
690
|
schemaType = Array.isArray(resolvedType) ? resolvedType[0] : resolvedType;
|
|
@@ -694,23 +694,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
694
694
|
// able to render so instead of generating a JSON Schema with an `undefined` type we should
|
|
695
695
|
// default to `string` so there's at least *something* the end-user can interact with.
|
|
696
696
|
type: _nullishCoalesce(schemaType, () => ( "string")),
|
|
697
|
-
schema:
|
|
697
|
+
schema: _chunkC6QTUTTFcjs.isPrimitive.call(void 0, schema) ? schema : {
|
|
698
698
|
...schema,
|
|
699
|
-
$schema:
|
|
699
|
+
$schema: _chunkC6QTUTTFcjs.getSchemaVersionString.call(void 0, schema, api)
|
|
700
700
|
},
|
|
701
701
|
label: "Response body"
|
|
702
702
|
};
|
|
703
703
|
if (response.description && schemaWrapper.schema) {
|
|
704
704
|
schemaWrapper.description = response.description;
|
|
705
705
|
}
|
|
706
|
-
|
|
706
|
+
_chunkC6QTUTTFcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
|
|
707
707
|
if (usedSchemas.has(ref)) {
|
|
708
708
|
return usedSchemas.get(ref);
|
|
709
709
|
}
|
|
710
710
|
try {
|
|
711
|
-
const resolved =
|
|
712
|
-
if (
|
|
713
|
-
const converted =
|
|
711
|
+
const resolved = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
|
|
712
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) return;
|
|
713
|
+
const converted = _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
|
|
714
714
|
...baseSchemaOptions,
|
|
715
715
|
seenRefs
|
|
716
716
|
});
|
|
@@ -720,11 +720,11 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
if (schemaWrapper.schema && usedSchemas.size > 0) {
|
|
723
|
-
const refsInOutput =
|
|
723
|
+
const refsInOutput = _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
|
|
724
724
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
|
|
725
|
-
const referencedSchemas =
|
|
725
|
+
const referencedSchemas = _chunkC6QTUTTFcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
|
|
726
726
|
if (referencedSchemas.size > 0) {
|
|
727
|
-
|
|
727
|
+
_chunkC6QTUTTFcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
jsonSchema.push(schemaWrapper);
|
|
@@ -736,10 +736,10 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
|
|
|
736
736
|
});
|
|
737
737
|
if (headersWrapper.schema && usedSchemas.size > 0) {
|
|
738
738
|
const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
|
|
739
|
-
const refsInOutput =
|
|
740
|
-
const referencedSchemas =
|
|
739
|
+
const refsInOutput = _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
|
|
740
|
+
const referencedSchemas = _chunkC6QTUTTFcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
|
|
741
741
|
if (referencedSchemas.size > 0) {
|
|
742
|
-
|
|
742
|
+
_chunkC6QTUTTFcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
jsonSchema.push(headersWrapper);
|
|
@@ -878,8 +878,8 @@ var Operation = (_class = class {
|
|
|
878
878
|
}
|
|
879
879
|
let types = [];
|
|
880
880
|
if (this.schema.requestBody) {
|
|
881
|
-
if (
|
|
882
|
-
this.schema.requestBody =
|
|
881
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.requestBody)) {
|
|
882
|
+
this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
|
|
883
883
|
}
|
|
884
884
|
if (this.schema.requestBody && "content" in this.schema.requestBody) {
|
|
885
885
|
types = Object.keys(this.schema.requestBody.content);
|
|
@@ -890,7 +890,7 @@ var Operation = (_class = class {
|
|
|
890
890
|
this.contentType = types[0];
|
|
891
891
|
}
|
|
892
892
|
types.forEach((t) => {
|
|
893
|
-
if (
|
|
893
|
+
if (_chunkC6QTUTTFcjs.matches_mimetype_default.json(t)) {
|
|
894
894
|
this.contentType = t;
|
|
895
895
|
}
|
|
896
896
|
});
|
|
@@ -903,7 +903,7 @@ var Operation = (_class = class {
|
|
|
903
903
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
904
904
|
*/
|
|
905
905
|
isFormUrlEncoded() {
|
|
906
|
-
return
|
|
906
|
+
return _chunkC6QTUTTFcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
|
|
907
907
|
}
|
|
908
908
|
/**
|
|
909
909
|
* Checks if the current operation has a mutipart content type payload.
|
|
@@ -912,7 +912,7 @@ var Operation = (_class = class {
|
|
|
912
912
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
913
913
|
*/
|
|
914
914
|
isMultipart() {
|
|
915
|
-
return
|
|
915
|
+
return _chunkC6QTUTTFcjs.matches_mimetype_default.multipart(this.getContentType());
|
|
916
916
|
}
|
|
917
917
|
/**
|
|
918
918
|
* Checks if the current operation has a JSON-like content type payload.
|
|
@@ -921,7 +921,7 @@ var Operation = (_class = class {
|
|
|
921
921
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
922
922
|
*/
|
|
923
923
|
isJson() {
|
|
924
|
-
return
|
|
924
|
+
return _chunkC6QTUTTFcjs.matches_mimetype_default.json(this.getContentType());
|
|
925
925
|
}
|
|
926
926
|
/**
|
|
927
927
|
* Checks if the current operation has an XML content type payload.
|
|
@@ -930,7 +930,7 @@ var Operation = (_class = class {
|
|
|
930
930
|
* @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
|
|
931
931
|
*/
|
|
932
932
|
isXml() {
|
|
933
|
-
return
|
|
933
|
+
return _chunkC6QTUTTFcjs.matches_mimetype_default.xml(this.getContentType());
|
|
934
934
|
}
|
|
935
935
|
/**
|
|
936
936
|
* Checks if the current operation is a webhook or not.
|
|
@@ -977,14 +977,14 @@ var Operation = (_class = class {
|
|
|
977
977
|
try {
|
|
978
978
|
security = _optionalChain([this, 'access', _64 => _64.api, 'optionalAccess', _65 => _65.components, 'optionalAccess', _66 => _66.securitySchemes, 'optionalAccess', _67 => _67[key]]);
|
|
979
979
|
if (!security) return false;
|
|
980
|
-
if (
|
|
981
|
-
security =
|
|
982
|
-
if (!security ||
|
|
980
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, security)) {
|
|
981
|
+
security = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, security, this.api);
|
|
982
|
+
if (!security || _chunk7PWF3F2Wcjs.isRef.call(void 0, security)) return false;
|
|
983
983
|
}
|
|
984
984
|
} catch (e4) {
|
|
985
985
|
return false;
|
|
986
986
|
}
|
|
987
|
-
if (!security ||
|
|
987
|
+
if (!security || _chunk7PWF3F2Wcjs.isRef.call(void 0, security)) return false;
|
|
988
988
|
let type = null;
|
|
989
989
|
if (security.type === "http") {
|
|
990
990
|
if (security.scheme === "basic") type = "Basic";
|
|
@@ -1058,9 +1058,9 @@ var Operation = (_class = class {
|
|
|
1058
1058
|
this.headers.request = this.headers.request.concat(
|
|
1059
1059
|
this.schema.parameters.map((p) => {
|
|
1060
1060
|
let param = p;
|
|
1061
|
-
if (
|
|
1062
|
-
param =
|
|
1063
|
-
if (!param ||
|
|
1061
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1062
|
+
param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1063
|
+
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1064
1064
|
}
|
|
1065
1065
|
if (param.in && param.in === "header") return param.name;
|
|
1066
1066
|
return;
|
|
@@ -1071,10 +1071,10 @@ var Operation = (_class = class {
|
|
|
1071
1071
|
this.headers.response = Object.keys(this.schema.responses).map((r) => {
|
|
1072
1072
|
let response = this.schema.responses[r];
|
|
1073
1073
|
if (!response) return [];
|
|
1074
|
-
if (
|
|
1075
|
-
this.schema.responses[r] =
|
|
1074
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1075
|
+
this.schema.responses[r] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1076
1076
|
response = this.schema.responses[r];
|
|
1077
|
-
if (!response ||
|
|
1077
|
+
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1078
1078
|
return [];
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
@@ -1084,11 +1084,11 @@ var Operation = (_class = class {
|
|
|
1084
1084
|
if (!this.headers.request.includes("Content-Type") && this.schema.requestBody) {
|
|
1085
1085
|
let requestBody = this.schema.requestBody;
|
|
1086
1086
|
if (requestBody) {
|
|
1087
|
-
if (
|
|
1088
|
-
this.schema.requestBody =
|
|
1087
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
1088
|
+
this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1089
1089
|
requestBody = this.schema.requestBody;
|
|
1090
1090
|
}
|
|
1091
|
-
if (requestBody && !
|
|
1091
|
+
if (requestBody && !_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
|
|
1092
1092
|
this.headers.request.push("Content-Type");
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
@@ -1097,10 +1097,10 @@ var Operation = (_class = class {
|
|
|
1097
1097
|
const hasResponseContent = Object.keys(this.schema.responses).some((r) => {
|
|
1098
1098
|
let response = _optionalChain([this, 'access', _71 => _71.schema, 'access', _72 => _72.responses, 'optionalAccess', _73 => _73[r]]);
|
|
1099
1099
|
if (!response) return false;
|
|
1100
|
-
if (
|
|
1101
|
-
this.schema.responses[r] =
|
|
1100
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1101
|
+
this.schema.responses[r] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1102
1102
|
response = this.schema.responses[r];
|
|
1103
|
-
if (!response ||
|
|
1103
|
+
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1104
1104
|
return false;
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
@@ -1207,17 +1207,17 @@ var Operation = (_class = class {
|
|
|
1207
1207
|
getParameters() {
|
|
1208
1208
|
let parameters = (_optionalChain([this, 'access', _76 => _76.schema, 'optionalAccess', _77 => _77.parameters]) || []).map((p) => {
|
|
1209
1209
|
let param = p;
|
|
1210
|
-
if (
|
|
1211
|
-
param =
|
|
1212
|
-
if (!param ||
|
|
1210
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1211
|
+
param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1212
|
+
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1213
1213
|
}
|
|
1214
1214
|
return param;
|
|
1215
1215
|
}).filter((param) => param !== void 0);
|
|
1216
1216
|
const commonParams = (_optionalChain([this, 'access', _78 => _78.api, 'optionalAccess', _79 => _79.paths, 'optionalAccess', _80 => _80[this.path], 'optionalAccess', _81 => _81.parameters]) || []).map((p) => {
|
|
1217
1217
|
let param = p;
|
|
1218
|
-
if (
|
|
1219
|
-
param =
|
|
1220
|
-
if (!param ||
|
|
1218
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1219
|
+
param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1220
|
+
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1221
1221
|
}
|
|
1222
1222
|
return param;
|
|
1223
1223
|
}).filter((param) => param !== void 0);
|
|
@@ -1254,10 +1254,10 @@ var Operation = (_class = class {
|
|
|
1254
1254
|
);
|
|
1255
1255
|
}
|
|
1256
1256
|
if (!this.schemasDecorated) {
|
|
1257
|
-
|
|
1257
|
+
_chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1258
1258
|
this.schemasDecorated = true;
|
|
1259
1259
|
}
|
|
1260
|
-
return
|
|
1260
|
+
return _chunkC6QTUTTFcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
|
|
1261
1261
|
includeDiscriminatorMappingRefs: true,
|
|
1262
1262
|
...opts
|
|
1263
1263
|
});
|
|
@@ -1282,7 +1282,7 @@ var Operation = (_class = class {
|
|
|
1282
1282
|
);
|
|
1283
1283
|
}
|
|
1284
1284
|
if (!this.schemasDecorated) {
|
|
1285
|
-
|
|
1285
|
+
_chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1286
1286
|
this.schemasDecorated = true;
|
|
1287
1287
|
}
|
|
1288
1288
|
return getResponseAsJSONSchema(this, this.api, statusCode, {
|
|
@@ -1296,9 +1296,9 @@ var Operation = (_class = class {
|
|
|
1296
1296
|
*/
|
|
1297
1297
|
getResponseStatusCodes() {
|
|
1298
1298
|
if (!this.schema.responses) return [];
|
|
1299
|
-
if (
|
|
1300
|
-
this.schema.responses =
|
|
1301
|
-
if (!this.schema.responses ||
|
|
1299
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1300
|
+
this.schema.responses = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
|
|
1301
|
+
if (!this.schema.responses || _chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
|
|
1302
1302
|
return [];
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
@@ -1322,9 +1322,9 @@ var Operation = (_class = class {
|
|
|
1322
1322
|
Object.values(this.schema.responses).forEach((response) => {
|
|
1323
1323
|
let resp = response;
|
|
1324
1324
|
if (!resp) return;
|
|
1325
|
-
if (
|
|
1326
|
-
resp =
|
|
1327
|
-
if (!resp ||
|
|
1325
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
|
|
1326
|
+
resp = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, resp, this.api);
|
|
1327
|
+
if (!resp || _chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
|
|
1328
1328
|
return;
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
@@ -1351,10 +1351,10 @@ var Operation = (_class = class {
|
|
|
1351
1351
|
getResolvedRequestBody() {
|
|
1352
1352
|
let requestBody = this.schema.requestBody;
|
|
1353
1353
|
if (!requestBody) return false;
|
|
1354
|
-
if (
|
|
1355
|
-
this.schema.requestBody =
|
|
1354
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
1355
|
+
this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, this.api);
|
|
1356
1356
|
requestBody = this.schema.requestBody;
|
|
1357
|
-
if (!requestBody ||
|
|
1357
|
+
if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
|
|
1358
1358
|
return false;
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
@@ -1426,7 +1426,7 @@ var Operation = (_class = class {
|
|
|
1426
1426
|
let availableMediaType;
|
|
1427
1427
|
const mediaTypes = this.getRequestBodyMediaTypes();
|
|
1428
1428
|
mediaTypes.forEach((mt) => {
|
|
1429
|
-
if (!availableMediaType &&
|
|
1429
|
+
if (!availableMediaType && _chunkC6QTUTTFcjs.matches_mimetype_default.json(mt)) {
|
|
1430
1430
|
availableMediaType = mt;
|
|
1431
1431
|
}
|
|
1432
1432
|
});
|
|
@@ -1473,10 +1473,10 @@ var Operation = (_class = class {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
let response = this.schema.responses[statusCode];
|
|
1475
1475
|
if (!response) return false;
|
|
1476
|
-
if (
|
|
1477
|
-
this.schema.responses[statusCode] =
|
|
1476
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1477
|
+
this.schema.responses[statusCode] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
|
|
1478
1478
|
response = this.schema.responses[statusCode];
|
|
1479
|
-
if (!response ||
|
|
1479
|
+
if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
|
|
1480
1480
|
return false;
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
@@ -1517,19 +1517,19 @@ var Operation = (_class = class {
|
|
|
1517
1517
|
if (!this.schema.callbacks) return false;
|
|
1518
1518
|
let callbackObj = this.schema.callbacks[identifier];
|
|
1519
1519
|
if (!callbackObj) return false;
|
|
1520
|
-
if (
|
|
1521
|
-
this.schema.callbacks[identifier] =
|
|
1520
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
|
|
1521
|
+
this.schema.callbacks[identifier] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackObj, this.api);
|
|
1522
1522
|
callbackObj = this.schema.callbacks[identifier];
|
|
1523
|
-
if (!callbackObj ||
|
|
1523
|
+
if (!callbackObj || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
|
|
1524
1524
|
return false;
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
1527
|
let callback = callbackObj[expression];
|
|
1528
1528
|
if (!callback) return false;
|
|
1529
|
-
if (
|
|
1530
|
-
callbackObj[expression] =
|
|
1529
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
|
|
1530
|
+
callbackObj[expression] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callback, this.api);
|
|
1531
1531
|
callback = callbackObj[expression];
|
|
1532
|
-
if (!callback ||
|
|
1532
|
+
if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
|
|
1533
1533
|
return false;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
@@ -1550,25 +1550,25 @@ var Operation = (_class = class {
|
|
|
1550
1550
|
Object.keys(this.schema.callbacks).forEach((callback) => {
|
|
1551
1551
|
let cb = _optionalChain([this, 'access', _90 => _90.schema, 'access', _91 => _91.callbacks, 'optionalAccess', _92 => _92[callback]]);
|
|
1552
1552
|
if (!cb) return;
|
|
1553
|
-
if (
|
|
1554
|
-
this.schema.callbacks[callback] =
|
|
1553
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
|
|
1554
|
+
this.schema.callbacks[callback] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, cb, this.api);
|
|
1555
1555
|
cb = this.schema.callbacks[callback];
|
|
1556
|
-
if (!cb ||
|
|
1556
|
+
if (!cb || _chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
|
|
1557
1557
|
return;
|
|
1558
1558
|
}
|
|
1559
1559
|
}
|
|
1560
1560
|
Object.keys(cb).forEach((expression) => {
|
|
1561
1561
|
let callbackPath = cb[expression];
|
|
1562
1562
|
if (!callbackPath) return;
|
|
1563
|
-
if (
|
|
1564
|
-
cb[expression] =
|
|
1563
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
|
|
1564
|
+
cb[expression] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackPath, this.api);
|
|
1565
1565
|
callbackPath = cb[expression];
|
|
1566
|
-
if (!callbackPath ||
|
|
1566
|
+
if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
|
|
1567
1567
|
return;
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
1570
|
Object.keys(callbackPath).forEach((method) => {
|
|
1571
|
-
if (!
|
|
1571
|
+
if (!_chunkC6QTUTTFcjs.supportedMethods.includes(method)) return;
|
|
1572
1572
|
const found = this.getCallback(callback, expression, method);
|
|
1573
1573
|
if (found) {
|
|
1574
1574
|
callbacks.push(found);
|
|
@@ -1646,12 +1646,12 @@ var Operation = (_class = class {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
this.dereferencing.processing = true;
|
|
1648
1648
|
if (!this.schemasDecorated) {
|
|
1649
|
-
|
|
1649
|
+
_chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
|
|
1650
1650
|
this.schemasDecorated = true;
|
|
1651
1651
|
}
|
|
1652
1652
|
const { api, schema, promises } = this;
|
|
1653
1653
|
const circularRefs = /* @__PURE__ */ new Set();
|
|
1654
|
-
const dereferencingOptions =
|
|
1654
|
+
const dereferencingOptions = _chunkC6QTUTTFcjs.getDereferencingOptions.call(void 0, circularRefs);
|
|
1655
1655
|
const parser = new (0, _jsonschemarefparser.$RefParser)();
|
|
1656
1656
|
return parser.dereference(
|
|
1657
1657
|
"#/__INTERNAL__",
|
|
@@ -1792,17 +1792,17 @@ var Callback = class extends Operation {
|
|
|
1792
1792
|
getParameters() {
|
|
1793
1793
|
let parameters = (_optionalChain([this, 'access', _100 => _100.schema, 'optionalAccess', _101 => _101.parameters]) || []).map((p) => {
|
|
1794
1794
|
let param = p;
|
|
1795
|
-
if (
|
|
1796
|
-
param =
|
|
1797
|
-
if (!param ||
|
|
1795
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1796
|
+
param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1797
|
+
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1798
1798
|
}
|
|
1799
1799
|
return param;
|
|
1800
1800
|
}).filter((param) => param !== void 0);
|
|
1801
1801
|
const commonParams = (this.parentSchema.parameters || []).map((p) => {
|
|
1802
1802
|
let param = p;
|
|
1803
|
-
if (
|
|
1804
|
-
param =
|
|
1805
|
-
if (!param ||
|
|
1803
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
|
|
1804
|
+
param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
|
|
1805
|
+
if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
|
|
1806
1806
|
}
|
|
1807
1807
|
return param;
|
|
1808
1808
|
}).filter((param) => param !== void 0);
|
|
@@ -1826,8 +1826,8 @@ var Webhook = class extends Operation {
|
|
|
1826
1826
|
return void 0;
|
|
1827
1827
|
}
|
|
1828
1828
|
let webhookPath = this.api.webhooks[this.path];
|
|
1829
|
-
if (
|
|
1830
|
-
this.api.webhooks[this.path] =
|
|
1829
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
|
|
1830
|
+
this.api.webhooks[this.path] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1831
1831
|
webhookPath = this.api.webhooks[this.path];
|
|
1832
1832
|
}
|
|
1833
1833
|
return _optionalChain([webhookPath, 'optionalAccess', _104 => _104.summary]);
|
|
@@ -1845,8 +1845,8 @@ var Webhook = class extends Operation {
|
|
|
1845
1845
|
return void 0;
|
|
1846
1846
|
}
|
|
1847
1847
|
let webhookPath = this.api.webhooks[this.path];
|
|
1848
|
-
if (
|
|
1849
|
-
this.api.webhooks[this.path] =
|
|
1848
|
+
if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
|
|
1849
|
+
this.api.webhooks[this.path] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, webhookPath, this.api);
|
|
1850
1850
|
webhookPath = this.api.webhooks[this.path];
|
|
1851
1851
|
}
|
|
1852
1852
|
return _optionalChain([webhookPath, 'optionalAccess', _107 => _107.description]);
|
|
@@ -1870,4 +1870,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
|
|
|
1870
1870
|
* @license Apache-2.0
|
|
1871
1871
|
* @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
|
|
1872
1872
|
*/
|
|
1873
|
-
//# sourceMappingURL=chunk-
|
|
1873
|
+
//# sourceMappingURL=chunk-O2NUKZ7L.cjs.map
|