oas 32.1.1 → 32.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@
13
13
 
14
14
 
15
15
 
16
- var _chunk5CNCBRXScjs = require('./chunk-5CNCBRXS.cjs');
16
+ var _chunkLCRF6REScjs = require('./chunk-LCRF6RES.cjs');
17
17
 
18
18
 
19
19
  var _chunkAYA3UT4Lcjs = require('./chunk-AYA3UT4L.cjs');
@@ -54,7 +54,7 @@ function usesPolymorphism(schema) {
54
54
  return false;
55
55
  }
56
56
  function objectify(thing) {
57
- if (!_chunk5CNCBRXScjs.isObject.call(void 0, thing)) {
57
+ if (!_chunkLCRF6REScjs.isObject.call(void 0, thing)) {
58
58
  return {};
59
59
  }
60
60
  return thing;
@@ -133,7 +133,7 @@ function sampleFromSchema(schema, opts = {}) {
133
133
  if (seenRefs.has(refToRelease)) {
134
134
  return void 0;
135
135
  }
136
- objectifySchema = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
136
+ objectifySchema = _chunkLCRF6REScjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
137
137
  if (!objectifySchema || _chunkYPR7YTHMcjs.isRef.call(void 0, objectifySchema)) {
138
138
  return void 0;
139
139
  }
@@ -297,7 +297,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
297
297
  }
298
298
  }
299
299
  if (mediaTypeObject.schema) {
300
- if (!_chunk5CNCBRXScjs.matches_mimetype_default.xml(mediaType)) {
300
+ if (!_chunkLCRF6REScjs.matches_mimetype_default.xml(mediaType)) {
301
301
  return [
302
302
  {
303
303
  value: samples_default(structuredClone(mediaTypeObject.schema), {
@@ -318,7 +318,7 @@ function getResponseExamples(operation, definition) {
318
318
  let onlyHeaders = false;
319
319
  if (!response) return false;
320
320
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
321
- response = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, response, definition);
321
+ response = _chunkLCRF6REScjs.dereferenceRef.call(void 0, response, definition);
322
322
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) return false;
323
323
  }
324
324
  const mediaTypes = {};
@@ -358,14 +358,14 @@ function getCallbackExamples(operation, definition) {
358
358
  let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
359
359
  if (!callback) return [];
360
360
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
361
- callback = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, callback, definition);
361
+ callback = _chunkLCRF6REScjs.dereferenceRef.call(void 0, callback, definition);
362
362
  if (!callback || _chunkYPR7YTHMcjs.isRef.call(void 0, callback)) return [];
363
363
  }
364
364
  const items = Object.keys(callback).map((expression) => {
365
365
  let callbackPath = callback[expression];
366
366
  if (!callbackPath) return [];
367
367
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
368
- callbackPath = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, callbackPath, definition);
368
+ callbackPath = _chunkLCRF6REScjs.dereferenceRef.call(void 0, callbackPath, definition);
369
369
  if (!callbackPath || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) return [];
370
370
  }
371
371
  return Object.keys(callbackPath).map((method) => {
@@ -448,7 +448,7 @@ function getExampleGroups(operation) {
448
448
  Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
449
449
  let example = paramExample;
450
450
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
451
- example = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, example, operation.api);
451
+ example = _chunkLCRF6REScjs.dereferenceRef.call(void 0, example, operation.api);
452
452
  if (!example || _chunkYPR7YTHMcjs.isRef.call(void 0, example)) return;
453
453
  }
454
454
  groups[exampleKey] = {
@@ -496,7 +496,7 @@ function getRequestBodyExamples(operation, definition) {
496
496
  if (!requestBody) {
497
497
  return [];
498
498
  } else if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
499
- requestBody = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, requestBody, definition);
499
+ requestBody = _chunkLCRF6REScjs.dereferenceRef.call(void 0, requestBody, definition);
500
500
  }
501
501
  if (!requestBody || _chunkYPR7YTHMcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
502
502
  return [];
@@ -561,7 +561,7 @@ function getOperationId(path, method, operation, opts = {}) {
561
561
  }
562
562
 
563
563
  // src/operation/transformers/get-response-as-json-schema.ts
564
- var isJSON = _chunk5CNCBRXScjs.matches_mimetype_default.json;
564
+ var isJSON = _chunkLCRF6REScjs.matches_mimetype_default.json;
565
565
  function buildHeadersSchema(response, schemaOptions) {
566
566
  const headersSchema = {
567
567
  type: "object",
@@ -577,7 +577,7 @@ function buildHeadersSchema(response, schemaOptions) {
577
577
  if (!header.schema || _chunkYPR7YTHMcjs.isRef.call(void 0, header.schema)) {
578
578
  return;
579
579
  }
580
- headersSchema.properties[key] = _chunk5CNCBRXScjs.toJSONSchema.call(void 0, header.schema, {
580
+ headersSchema.properties[key] = _chunkLCRF6REScjs.toJSONSchema.call(void 0, header.schema, {
581
581
  addEnumsToDescriptions: true,
582
582
  ...schemaOptions
583
583
  });
@@ -631,32 +631,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
631
631
  }
632
632
  if (preferredContentType) {
633
633
  if (contentTypes.includes(preferredContentType)) {
634
- const schema2 = _chunk5CNCBRXScjs.cloneObject.call(void 0, content[preferredContentType].schema);
634
+ const schema2 = _chunkLCRF6REScjs.cloneObject.call(void 0, content[preferredContentType].schema);
635
635
  if (!schema2) {
636
636
  return null;
637
637
  }
638
- return _chunk5CNCBRXScjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
638
+ return _chunkLCRF6REScjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
639
639
  }
640
640
  return null;
641
641
  }
642
642
  for (let i = 0; i < contentTypes.length; i++) {
643
643
  if (isJSON(contentTypes[i])) {
644
- const schema2 = _chunk5CNCBRXScjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
644
+ const schema2 = _chunkLCRF6REScjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
645
645
  if (!schema2) {
646
646
  return {};
647
647
  }
648
- return _chunk5CNCBRXScjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
648
+ return _chunkLCRF6REScjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
649
649
  }
650
650
  }
651
651
  const contentType = contentTypes.shift();
652
652
  if (!contentType) {
653
653
  return {};
654
654
  }
655
- const schema = _chunk5CNCBRXScjs.cloneObject.call(void 0, content[contentType].schema);
655
+ const schema = _chunkLCRF6REScjs.cloneObject.call(void 0, content[contentType].schema);
656
656
  if (!schema) {
657
657
  return {};
658
658
  }
659
- return _chunk5CNCBRXScjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
659
+ return _chunkLCRF6REScjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
660
660
  }
661
661
  const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _48 => _48.contentType]));
662
662
  if (_optionalChain([opts, 'optionalAccess', _49 => _49.contentType]) && !foundSchema) {
@@ -675,23 +675,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
675
675
  // able to render so instead of generating a JSON Schema with an `undefined` type we should
676
676
  // default to `string` so there's at least *something* the end-user can interact with.
677
677
  type: _nullishCoalesce(schemaType, () => ( "string")),
678
- schema: _chunk5CNCBRXScjs.isPrimitive.call(void 0, schema) ? schema : {
678
+ schema: _chunkLCRF6REScjs.isPrimitive.call(void 0, schema) ? schema : {
679
679
  ...schema,
680
- $schema: _chunk5CNCBRXScjs.getSchemaVersionString.call(void 0, schema, api)
680
+ $schema: _chunkLCRF6REScjs.getSchemaVersionString.call(void 0, schema, api)
681
681
  },
682
682
  label: "Response body"
683
683
  };
684
684
  if (response.description && schemaWrapper.schema) {
685
685
  schemaWrapper.description = response.description;
686
686
  }
687
- _chunk5CNCBRXScjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
687
+ _chunkLCRF6REScjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
688
688
  if (usedSchemas.has(ref)) {
689
689
  return usedSchemas.get(ref);
690
690
  }
691
691
  try {
692
- const resolved = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
692
+ const resolved = _chunkLCRF6REScjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
693
693
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, resolved)) return void 0;
694
- const converted = _chunk5CNCBRXScjs.toJSONSchema.call(void 0, structuredClone(resolved), {
694
+ const converted = _chunkLCRF6REScjs.toJSONSchema.call(void 0, structuredClone(resolved), {
695
695
  ...baseSchemaOptions,
696
696
  seenRefs
697
697
  });
@@ -703,9 +703,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
703
703
  });
704
704
  if (schemaWrapper.schema && usedSchemas.size > 0) {
705
705
  const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
706
- const referencedSchemas = _chunk5CNCBRXScjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
706
+ const referencedSchemas = _chunkLCRF6REScjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
707
707
  if (referencedSchemas.size > 0) {
708
- _chunk5CNCBRXScjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
708
+ _chunkLCRF6REScjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
709
709
  }
710
710
  }
711
711
  jsonSchema.push(schemaWrapper);
@@ -717,9 +717,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
717
717
  });
718
718
  if (headersWrapper.schema && usedSchemas.size > 0) {
719
719
  const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
720
- const referencedSchemas = _chunk5CNCBRXScjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
720
+ const referencedSchemas = _chunkLCRF6REScjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
721
721
  if (referencedSchemas.size > 0) {
722
- _chunk5CNCBRXScjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
722
+ _chunkLCRF6REScjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
723
723
  }
724
724
  }
725
725
  jsonSchema.push(headersWrapper);
@@ -859,7 +859,7 @@ var Operation = (_class = class {
859
859
  let types = [];
860
860
  if (this.schema.requestBody) {
861
861
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, this.schema.requestBody)) {
862
- this.schema.requestBody = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
862
+ this.schema.requestBody = _chunkLCRF6REScjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
863
863
  }
864
864
  if (this.schema.requestBody && "content" in this.schema.requestBody) {
865
865
  types = Object.keys(this.schema.requestBody.content);
@@ -870,7 +870,7 @@ var Operation = (_class = class {
870
870
  this.contentType = types[0];
871
871
  }
872
872
  types.forEach((t) => {
873
- if (_chunk5CNCBRXScjs.matches_mimetype_default.json(t)) {
873
+ if (_chunkLCRF6REScjs.matches_mimetype_default.json(t)) {
874
874
  this.contentType = t;
875
875
  }
876
876
  });
@@ -883,7 +883,7 @@ var Operation = (_class = class {
883
883
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
884
884
  */
885
885
  isFormUrlEncoded() {
886
- return _chunk5CNCBRXScjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
886
+ return _chunkLCRF6REScjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
887
887
  }
888
888
  /**
889
889
  * Checks if the current operation has a mutipart content type payload.
@@ -892,7 +892,7 @@ var Operation = (_class = class {
892
892
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
893
893
  */
894
894
  isMultipart() {
895
- return _chunk5CNCBRXScjs.matches_mimetype_default.multipart(this.getContentType());
895
+ return _chunkLCRF6REScjs.matches_mimetype_default.multipart(this.getContentType());
896
896
  }
897
897
  /**
898
898
  * Checks if the current operation has a JSON-like content type payload.
@@ -901,7 +901,7 @@ var Operation = (_class = class {
901
901
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
902
902
  */
903
903
  isJson() {
904
- return _chunk5CNCBRXScjs.matches_mimetype_default.json(this.getContentType());
904
+ return _chunkLCRF6REScjs.matches_mimetype_default.json(this.getContentType());
905
905
  }
906
906
  /**
907
907
  * Checks if the current operation has an XML content type payload.
@@ -910,7 +910,7 @@ var Operation = (_class = class {
910
910
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
911
911
  */
912
912
  isXml() {
913
- return _chunk5CNCBRXScjs.matches_mimetype_default.xml(this.getContentType());
913
+ return _chunkLCRF6REScjs.matches_mimetype_default.xml(this.getContentType());
914
914
  }
915
915
  /**
916
916
  * Checks if the current operation is a webhook or not.
@@ -958,7 +958,7 @@ var Operation = (_class = class {
958
958
  security = _optionalChain([this, 'access', _66 => _66.api, 'optionalAccess', _67 => _67.components, 'optionalAccess', _68 => _68.securitySchemes, 'optionalAccess', _69 => _69[key]]);
959
959
  if (!security) return false;
960
960
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, security)) {
961
- security = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, security, this.api);
961
+ security = _chunkLCRF6REScjs.dereferenceRef.call(void 0, security, this.api);
962
962
  if (!security || _chunkYPR7YTHMcjs.isRef.call(void 0, security)) return false;
963
963
  }
964
964
  } catch (e4) {
@@ -1039,7 +1039,7 @@ var Operation = (_class = class {
1039
1039
  this.schema.parameters.map((p) => {
1040
1040
  let param = p;
1041
1041
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1042
- param = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, param, this.api);
1042
+ param = _chunkLCRF6REScjs.dereferenceRef.call(void 0, param, this.api);
1043
1043
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1044
1044
  }
1045
1045
  if (param.in && param.in === "header") return param.name;
@@ -1052,7 +1052,7 @@ var Operation = (_class = class {
1052
1052
  let response = this.schema.responses[r];
1053
1053
  if (!response) return [];
1054
1054
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1055
- this.schema.responses[r] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, response, this.api);
1055
+ this.schema.responses[r] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, response, this.api);
1056
1056
  response = this.schema.responses[r];
1057
1057
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1058
1058
  return [];
@@ -1065,7 +1065,7 @@ var Operation = (_class = class {
1065
1065
  let requestBody = this.schema.requestBody;
1066
1066
  if (requestBody) {
1067
1067
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1068
- this.schema.requestBody = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, requestBody, this.api);
1068
+ this.schema.requestBody = _chunkLCRF6REScjs.dereferenceRef.call(void 0, requestBody, this.api);
1069
1069
  requestBody = this.schema.requestBody;
1070
1070
  }
1071
1071
  if (requestBody && !_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
@@ -1078,7 +1078,7 @@ var Operation = (_class = class {
1078
1078
  let response = _optionalChain([this, 'access', _73 => _73.schema, 'access', _74 => _74.responses, 'optionalAccess', _75 => _75[r]]);
1079
1079
  if (!response) return false;
1080
1080
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1081
- this.schema.responses[r] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, response, this.api);
1081
+ this.schema.responses[r] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, response, this.api);
1082
1082
  response = this.schema.responses[r];
1083
1083
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1084
1084
  return false;
@@ -1188,7 +1188,7 @@ var Operation = (_class = class {
1188
1188
  let parameters = (_optionalChain([this, 'access', _78 => _78.schema, 'optionalAccess', _79 => _79.parameters]) || []).map((p) => {
1189
1189
  let param = p;
1190
1190
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1191
- param = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, param, this.api);
1191
+ param = _chunkLCRF6REScjs.dereferenceRef.call(void 0, param, this.api);
1192
1192
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1193
1193
  }
1194
1194
  return param;
@@ -1196,7 +1196,7 @@ var Operation = (_class = class {
1196
1196
  const commonParams = (_optionalChain([this, 'access', _80 => _80.api, 'optionalAccess', _81 => _81.paths, 'optionalAccess', _82 => _82[this.path], 'optionalAccess', _83 => _83.parameters]) || []).map((p) => {
1197
1197
  let param = p;
1198
1198
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1199
- param = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, param, this.api);
1199
+ param = _chunkLCRF6REScjs.dereferenceRef.call(void 0, param, this.api);
1200
1200
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1201
1201
  }
1202
1202
  return param;
@@ -1234,10 +1234,10 @@ var Operation = (_class = class {
1234
1234
  );
1235
1235
  }
1236
1236
  if (!this.schemasDecorated) {
1237
- _chunk5CNCBRXScjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1237
+ _chunkLCRF6REScjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1238
1238
  this.schemasDecorated = true;
1239
1239
  }
1240
- return _chunk5CNCBRXScjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1240
+ return _chunkLCRF6REScjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1241
1241
  includeDiscriminatorMappingRefs: true,
1242
1242
  ...opts
1243
1243
  });
@@ -1262,7 +1262,7 @@ var Operation = (_class = class {
1262
1262
  );
1263
1263
  }
1264
1264
  if (!this.schemasDecorated) {
1265
- _chunk5CNCBRXScjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1265
+ _chunkLCRF6REScjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1266
1266
  this.schemasDecorated = true;
1267
1267
  }
1268
1268
  return getResponseAsJSONSchema(this, this.api, statusCode, {
@@ -1290,7 +1290,7 @@ var Operation = (_class = class {
1290
1290
  let resp = response;
1291
1291
  if (!resp) return;
1292
1292
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, resp)) {
1293
- resp = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, resp, this.api);
1293
+ resp = _chunkLCRF6REScjs.dereferenceRef.call(void 0, resp, this.api);
1294
1294
  if (!resp || _chunkYPR7YTHMcjs.isRef.call(void 0, resp)) {
1295
1295
  return;
1296
1296
  }
@@ -1319,7 +1319,7 @@ var Operation = (_class = class {
1319
1319
  let requestBody = this.schema.requestBody;
1320
1320
  if (!requestBody) return false;
1321
1321
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1322
- this.schema.requestBody = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, requestBody, this.api);
1322
+ this.schema.requestBody = _chunkLCRF6REScjs.dereferenceRef.call(void 0, requestBody, this.api);
1323
1323
  requestBody = this.schema.requestBody;
1324
1324
  if (!requestBody || _chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1325
1325
  return false;
@@ -1389,7 +1389,7 @@ var Operation = (_class = class {
1389
1389
  let availableMediaType;
1390
1390
  const mediaTypes = this.getRequestBodyMediaTypes();
1391
1391
  mediaTypes.forEach((mt) => {
1392
- if (!availableMediaType && _chunk5CNCBRXScjs.matches_mimetype_default.json(mt)) {
1392
+ if (!availableMediaType && _chunkLCRF6REScjs.matches_mimetype_default.json(mt)) {
1393
1393
  availableMediaType = mt;
1394
1394
  }
1395
1395
  });
@@ -1437,7 +1437,7 @@ var Operation = (_class = class {
1437
1437
  let response = this.schema.responses[statusCode];
1438
1438
  if (!response) return false;
1439
1439
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1440
- this.schema.responses[statusCode] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, response, this.api);
1440
+ this.schema.responses[statusCode] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, response, this.api);
1441
1441
  response = this.schema.responses[statusCode];
1442
1442
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1443
1443
  return false;
@@ -1481,7 +1481,7 @@ var Operation = (_class = class {
1481
1481
  let callbackObj = this.schema.callbacks[identifier];
1482
1482
  if (!callbackObj) return false;
1483
1483
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackObj)) {
1484
- this.schema.callbacks[identifier] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, callbackObj, this.api);
1484
+ this.schema.callbacks[identifier] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, callbackObj, this.api);
1485
1485
  callbackObj = this.schema.callbacks[identifier];
1486
1486
  if (!callbackObj || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackObj)) {
1487
1487
  return false;
@@ -1490,7 +1490,7 @@ var Operation = (_class = class {
1490
1490
  let callback = callbackObj[expression];
1491
1491
  if (!callback) return false;
1492
1492
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
1493
- callbackObj[expression] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, callback, this.api);
1493
+ callbackObj[expression] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, callback, this.api);
1494
1494
  callback = callbackObj[expression];
1495
1495
  if (!callback || _chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
1496
1496
  return false;
@@ -1514,7 +1514,7 @@ var Operation = (_class = class {
1514
1514
  let cb = _optionalChain([this, 'access', _89 => _89.schema, 'access', _90 => _90.callbacks, 'optionalAccess', _91 => _91[callback]]);
1515
1515
  if (!cb) return;
1516
1516
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, cb)) {
1517
- this.schema.callbacks[callback] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, cb, this.api);
1517
+ this.schema.callbacks[callback] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, cb, this.api);
1518
1518
  cb = this.schema.callbacks[callback];
1519
1519
  if (!cb || _chunkYPR7YTHMcjs.isRef.call(void 0, cb)) {
1520
1520
  return;
@@ -1524,14 +1524,14 @@ var Operation = (_class = class {
1524
1524
  let callbackPath = cb[expression];
1525
1525
  if (!callbackPath) return;
1526
1526
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
1527
- cb[expression] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, callbackPath, this.api);
1527
+ cb[expression] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, callbackPath, this.api);
1528
1528
  callbackPath = cb[expression];
1529
1529
  if (!callbackPath || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
1530
1530
  return;
1531
1531
  }
1532
1532
  }
1533
1533
  Object.keys(callbackPath).forEach((method) => {
1534
- if (!_chunk5CNCBRXScjs.supportedMethods.includes(method)) return;
1534
+ if (!_chunkLCRF6REScjs.supportedMethods.includes(method)) return;
1535
1535
  const found = this.getCallback(callback, expression, method);
1536
1536
  if (found) {
1537
1537
  callbacks.push(found);
@@ -1609,12 +1609,12 @@ var Operation = (_class = class {
1609
1609
  }
1610
1610
  this.dereferencing.processing = true;
1611
1611
  if (!this.schemasDecorated) {
1612
- _chunk5CNCBRXScjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1612
+ _chunkLCRF6REScjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1613
1613
  this.schemasDecorated = true;
1614
1614
  }
1615
1615
  const { api, schema, promises } = this;
1616
1616
  const circularRefs = /* @__PURE__ */ new Set();
1617
- const dereferencingOptions = _chunk5CNCBRXScjs.getDereferencingOptions.call(void 0, circularRefs);
1617
+ const dereferencingOptions = _chunkLCRF6REScjs.getDereferencingOptions.call(void 0, circularRefs);
1618
1618
  const parser = new (0, _jsonschemarefparser.$RefParser)();
1619
1619
  return parser.dereference(
1620
1620
  "#/__INTERNAL__",
@@ -1756,7 +1756,7 @@ var Callback = class extends Operation {
1756
1756
  let parameters = (_optionalChain([this, 'access', _99 => _99.schema, 'optionalAccess', _100 => _100.parameters]) || []).map((p) => {
1757
1757
  let param = p;
1758
1758
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1759
- param = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, param, this.api);
1759
+ param = _chunkLCRF6REScjs.dereferenceRef.call(void 0, param, this.api);
1760
1760
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1761
1761
  }
1762
1762
  return param;
@@ -1764,7 +1764,7 @@ var Callback = class extends Operation {
1764
1764
  const commonParams = (this.parentSchema.parameters || []).map((p) => {
1765
1765
  let param = p;
1766
1766
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1767
- param = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, param, this.api);
1767
+ param = _chunkLCRF6REScjs.dereferenceRef.call(void 0, param, this.api);
1768
1768
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1769
1769
  }
1770
1770
  return param;
@@ -1790,7 +1790,7 @@ var Webhook = class extends Operation {
1790
1790
  }
1791
1791
  let webhookPath = this.api.webhooks[this.path];
1792
1792
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, webhookPath)) {
1793
- this.api.webhooks[this.path] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, webhookPath, this.api);
1793
+ this.api.webhooks[this.path] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, webhookPath, this.api);
1794
1794
  webhookPath = this.api.webhooks[this.path];
1795
1795
  }
1796
1796
  return _optionalChain([webhookPath, 'optionalAccess', _103 => _103.summary]);
@@ -1809,7 +1809,7 @@ var Webhook = class extends Operation {
1809
1809
  }
1810
1810
  let webhookPath = this.api.webhooks[this.path];
1811
1811
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, webhookPath)) {
1812
- this.api.webhooks[this.path] = _chunk5CNCBRXScjs.dereferenceRef.call(void 0, webhookPath, this.api);
1812
+ this.api.webhooks[this.path] = _chunkLCRF6REScjs.dereferenceRef.call(void 0, webhookPath, this.api);
1813
1813
  webhookPath = this.api.webhooks[this.path];
1814
1814
  }
1815
1815
  return _optionalChain([webhookPath, 'optionalAccess', _106 => _106.description]);
@@ -1833,4 +1833,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
1833
1833
  * @license Apache-2.0
1834
1834
  * @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
1835
1835
  */
1836
- //# sourceMappingURL=chunk-IJNLIFFG.cjs.map
1836
+ //# sourceMappingURL=chunk-TBIEIVIF.cjs.map