oas 38.5.2 → 38.5.3

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.
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
 
18
- var _chunkMYFJ2GV3cjs = require('./chunk-MYFJ2GV3.cjs');
18
+ var _chunkY5HU4SVHcjs = require('./chunk-Y5HU4SVH.cjs');
19
19
 
20
20
 
21
21
  var _chunkEARDDQSBcjs = require('./chunk-EARDDQSB.cjs');
@@ -70,7 +70,7 @@ function normalizeURL(url, urlForProtocolCheck = url) {
70
70
  }
71
71
  function normalizedURLFromServers(servers, selected) {
72
72
  const server = _optionalChain([servers, 'optionalAccess', _7 => _7[selected]]);
73
- const resolvedUrl = _optionalChain([server, 'optionalAccess', _8 => _8.url, 'optionalAccess', _9 => _9.replace, 'call', _10 => _10(_chunkMYFJ2GV3cjs.SERVER_VARIABLE_REGEX, (original, key) => {
73
+ const resolvedUrl = _optionalChain([server, 'optionalAccess', _8 => _8.url, 'optionalAccess', _9 => _9.replace, 'call', _10 => _10(_chunkY5HU4SVHcjs.SERVER_VARIABLE_REGEX, (original, key) => {
74
74
  return key in (server.variables || {}) ? String(_optionalChain([server, 'access', _11 => _11.variables, 'optionalAccess', _12 => _12[key], 'access', _13 => _13.default])) : original;
75
75
  })]);
76
76
  return normalizeURL(_optionalChain([server, 'optionalAccess', _14 => _14.url]), resolvedUrl);
@@ -238,7 +238,7 @@ function usesPolymorphism(schema) {
238
238
  return false;
239
239
  }
240
240
  function objectify(thing) {
241
- if (!_chunkMYFJ2GV3cjs.isObject.call(void 0, thing)) {
241
+ if (!_chunkY5HU4SVHcjs.isObject.call(void 0, thing)) {
242
242
  return {};
243
243
  }
244
244
  return thing;
@@ -303,7 +303,7 @@ function sampleFromSchema(schema, opts = {}) {
303
303
  if (seenRefs.has(refToRelease)) {
304
304
  return void 0;
305
305
  }
306
- objectifySchema = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
306
+ objectifySchema = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
307
307
  if (!objectifySchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, objectifySchema)) {
308
308
  return void 0;
309
309
  }
@@ -321,7 +321,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
321
321
  const { example, additionalProperties, properties, items } = schema;
322
322
  const { includeReadOnly, includeWriteOnly } = opts;
323
323
  if (example !== void 0) {
324
- return _chunkMYFJ2GV3cjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
324
+ return _chunkY5HU4SVHcjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
325
325
  }
326
326
  const hasPolymorphism = usesPolymorphism(schema);
327
327
  if (hasPolymorphism === "allOf") {
@@ -330,7 +330,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
330
330
  const resolvedAllOf = schema.allOf.map((subSchema) => {
331
331
  let sub = objectify(subSchema);
332
332
  if (definition && _chunk7PWF3F2Wcjs.isRef.call(void 0, sub)) {
333
- const resolved = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
333
+ const resolved = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
334
334
  if (resolved && !_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) {
335
335
  sub = resolved;
336
336
  }
@@ -441,8 +441,8 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
441
441
  // src/operation/lib/get-mediatype-examples.ts
442
442
  function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
443
443
  if (mediaTypeObject.example) {
444
- mediaTypeObject.example = _chunkMYFJ2GV3cjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
445
- if (mediaTypeObject.example === void 0 || _chunkMYFJ2GV3cjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
444
+ mediaTypeObject.example = _chunkY5HU4SVHcjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
445
+ if (mediaTypeObject.example === void 0 || _chunkY5HU4SVHcjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
446
446
  return [];
447
447
  }
448
448
  return [
@@ -458,7 +458,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
458
458
  let example = examples[key];
459
459
  if (example !== null && typeof example === "object") {
460
460
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
461
- example = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, example, definition);
461
+ example = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, example, definition);
462
462
  if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
463
463
  return false;
464
464
  }
@@ -470,8 +470,8 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
470
470
  description = example.description;
471
471
  }
472
472
  if ("value" in example) {
473
- example.value = _chunkMYFJ2GV3cjs.dereferenceRefDeep.call(void 0, example.value, definition);
474
- if (example.value === void 0 || _chunkMYFJ2GV3cjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
473
+ example.value = _chunkY5HU4SVHcjs.dereferenceRefDeep.call(void 0, example.value, definition);
474
+ if (example.value === void 0 || _chunkY5HU4SVHcjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
475
475
  return false;
476
476
  }
477
477
  example = example.value;
@@ -488,7 +488,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
488
488
  }
489
489
  }
490
490
  if (mediaTypeObject.schema) {
491
- if (!_chunkMYFJ2GV3cjs.matches_mimetype_default.xml(mediaType)) {
491
+ if (!_chunkY5HU4SVHcjs.matches_mimetype_default.xml(mediaType)) {
492
492
  return [
493
493
  {
494
494
  value: sampleFromSchema(structuredClone(mediaTypeObject.schema), {
@@ -509,7 +509,7 @@ function getResponseExamples(operation, definition) {
509
509
  let onlyHeaders = false;
510
510
  if (!response) return false;
511
511
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
512
- response = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, response, definition);
512
+ response = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, response, definition);
513
513
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) return false;
514
514
  }
515
515
  const mediaTypes = {};
@@ -549,14 +549,14 @@ function getCallbackExamples(operation, definition) {
549
549
  let callback = _optionalChain([operation, 'access', _34 => _34.callbacks, 'optionalAccess', _35 => _35[identifier]]);
550
550
  if (!callback) return [];
551
551
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
552
- callback = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, callback, definition);
552
+ callback = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, callback, definition);
553
553
  if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) return [];
554
554
  }
555
555
  const items = Object.keys(callback).map((expression) => {
556
556
  let callbackPath = callback[expression];
557
557
  if (!callbackPath) return [];
558
558
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
559
- callbackPath = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, callbackPath, definition);
559
+ callbackPath = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, callbackPath, definition);
560
560
  if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) return [];
561
561
  }
562
562
  return Object.keys(callbackPath).map((method) => {
@@ -639,7 +639,7 @@ function getExampleGroups(operation) {
639
639
  Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
640
640
  let example = paramExample;
641
641
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
642
- example = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, example, operation.api);
642
+ example = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, example, operation.api);
643
643
  if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) return;
644
644
  }
645
645
  groups[exampleKey] = {
@@ -687,7 +687,7 @@ function getRequestBodyExamples(operation, definition) {
687
687
  if (!requestBody) {
688
688
  return [];
689
689
  } else if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
690
- requestBody = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, requestBody, definition);
690
+ requestBody = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, requestBody, definition);
691
691
  }
692
692
  if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
693
693
  return [];
@@ -752,7 +752,7 @@ function getOperationId(path, method, operation, opts = {}) {
752
752
  }
753
753
 
754
754
  // src/operation/transformers/get-response-as-json-schema.ts
755
- var isJSON = _chunkMYFJ2GV3cjs.matches_mimetype_default.json;
755
+ var isJSON = _chunkY5HU4SVHcjs.matches_mimetype_default.json;
756
756
  function buildHeadersSchema(response, schemaOptions) {
757
757
  const headersSchema = {
758
758
  type: "object",
@@ -765,7 +765,7 @@ function buildHeadersSchema(response, schemaOptions) {
765
765
  let headerEntry = _optionalChain([response, 'access', _62 => _62.headers, 'optionalAccess', _63 => _63[key]]);
766
766
  if (!headerEntry) return;
767
767
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) {
768
- headerEntry = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
768
+ headerEntry = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
769
769
  if (!headerEntry || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) return;
770
770
  }
771
771
  if (headerEntry.schema) {
@@ -773,10 +773,10 @@ function buildHeadersSchema(response, schemaOptions) {
773
773
  let headerSchema = header.schema;
774
774
  if (!headerSchema) return;
775
775
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) {
776
- headerSchema = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
776
+ headerSchema = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
777
777
  if (!headerSchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) return;
778
778
  }
779
- headersSchema.properties[key] = _chunkMYFJ2GV3cjs.toJSONSchema.call(void 0, _chunkMYFJ2GV3cjs.cloneObject.call(void 0, headerSchema), {
779
+ headersSchema.properties[key] = _chunkY5HU4SVHcjs.toJSONSchema.call(void 0, _chunkY5HU4SVHcjs.cloneObject.call(void 0, headerSchema), {
780
780
  addEnumsToDescriptions: true,
781
781
  ...schemaOptions
782
782
  });
@@ -830,32 +830,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
830
830
  }
831
831
  if (preferredContentType) {
832
832
  if (contentTypes.includes(preferredContentType)) {
833
- const schema2 = _chunkMYFJ2GV3cjs.cloneObject.call(void 0, content[preferredContentType].schema);
833
+ const schema2 = _chunkY5HU4SVHcjs.cloneObject.call(void 0, content[preferredContentType].schema);
834
834
  if (!schema2) {
835
835
  return null;
836
836
  }
837
- return _chunkMYFJ2GV3cjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
837
+ return _chunkY5HU4SVHcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
838
838
  }
839
839
  return null;
840
840
  }
841
841
  for (let i = 0; i < contentTypes.length; i++) {
842
842
  if (isJSON(contentTypes[i])) {
843
- const schema2 = _chunkMYFJ2GV3cjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
843
+ const schema2 = _chunkY5HU4SVHcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
844
844
  if (!schema2) {
845
845
  return {};
846
846
  }
847
- return _chunkMYFJ2GV3cjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
847
+ return _chunkY5HU4SVHcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
848
848
  }
849
849
  }
850
850
  const contentType = contentTypes.shift();
851
851
  if (!contentType) {
852
852
  return {};
853
853
  }
854
- const schema = _chunkMYFJ2GV3cjs.cloneObject.call(void 0, content[contentType].schema);
854
+ const schema = _chunkY5HU4SVHcjs.cloneObject.call(void 0, content[contentType].schema);
855
855
  if (!schema) {
856
856
  return {};
857
857
  }
858
- return _chunkMYFJ2GV3cjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
858
+ return _chunkY5HU4SVHcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
859
859
  }
860
860
  const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _64 => _64.contentType]));
861
861
  if (_optionalChain([opts, 'optionalAccess', _65 => _65.contentType]) && !foundSchema) {
@@ -874,23 +874,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
874
874
  // able to render so instead of generating a JSON Schema with an `undefined` type we should
875
875
  // default to `string` so there's at least *something* the end-user can interact with.
876
876
  type: _nullishCoalesce(schemaType, () => ( "string")),
877
- schema: _chunkMYFJ2GV3cjs.isPrimitive.call(void 0, schema) ? schema : {
877
+ schema: _chunkY5HU4SVHcjs.isPrimitive.call(void 0, schema) ? schema : {
878
878
  ...schema,
879
- $schema: _chunkMYFJ2GV3cjs.getSchemaVersionString.call(void 0, schema, api)
879
+ $schema: _chunkY5HU4SVHcjs.getSchemaVersionString.call(void 0, schema, api)
880
880
  },
881
881
  label: "Response body"
882
882
  };
883
883
  if (response.description && schemaWrapper.schema) {
884
884
  schemaWrapper.description = response.description;
885
885
  }
886
- _chunkMYFJ2GV3cjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
886
+ _chunkY5HU4SVHcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
887
887
  if (usedSchemas.has(ref)) {
888
888
  return usedSchemas.get(ref);
889
889
  }
890
890
  try {
891
- const resolved = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
891
+ const resolved = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
892
892
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) return;
893
- const converted = _chunkMYFJ2GV3cjs.toJSONSchema.call(void 0, structuredClone(resolved), {
893
+ const converted = _chunkY5HU4SVHcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
894
894
  ...baseSchemaOptions,
895
895
  seenRefs
896
896
  });
@@ -900,11 +900,11 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
900
900
  }
901
901
  });
902
902
  if (schemaWrapper.schema && usedSchemas.size > 0) {
903
- const refsInOutput = _chunkMYFJ2GV3cjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
903
+ const refsInOutput = _chunkY5HU4SVHcjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
904
904
  const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
905
- const referencedSchemas = _chunkMYFJ2GV3cjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
905
+ const referencedSchemas = _chunkY5HU4SVHcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
906
906
  if (referencedSchemas.size > 0) {
907
- _chunkMYFJ2GV3cjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
907
+ _chunkY5HU4SVHcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
908
908
  }
909
909
  }
910
910
  jsonSchema.push(schemaWrapper);
@@ -916,10 +916,10 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
916
916
  });
917
917
  if (headersWrapper.schema && usedSchemas.size > 0) {
918
918
  const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
919
- const refsInOutput = _chunkMYFJ2GV3cjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
920
- const referencedSchemas = _chunkMYFJ2GV3cjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
919
+ const refsInOutput = _chunkY5HU4SVHcjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
920
+ const referencedSchemas = _chunkY5HU4SVHcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
921
921
  if (referencedSchemas.size > 0) {
922
- _chunkMYFJ2GV3cjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
922
+ _chunkY5HU4SVHcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
923
923
  }
924
924
  }
925
925
  jsonSchema.push(headersWrapper);
@@ -1030,7 +1030,7 @@ var Operation = class {
1030
1030
  return this.schema.servers;
1031
1031
  }
1032
1032
  if (_optionalChain([this, 'access', _81 => _81.api, 'access', _82 => _82.paths, 'optionalAccess', _83 => _83[this.path]])) {
1033
- const pathItem = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, this.api.paths[this.path], this.api);
1033
+ const pathItem = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, this.api.paths[this.path], this.api);
1034
1034
  if (pathItem && !_chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem) && _optionalChain([pathItem, 'access', _84 => _84.servers, 'optionalAccess', _85 => _85.length])) {
1035
1035
  return pathItem.servers;
1036
1036
  }
@@ -1065,7 +1065,7 @@ var Operation = class {
1065
1065
  let types = [];
1066
1066
  if (this.schema.requestBody) {
1067
1067
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.requestBody)) {
1068
- this.schema.requestBody = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
1068
+ this.schema.requestBody = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
1069
1069
  }
1070
1070
  if (this.schema.requestBody && "content" in this.schema.requestBody) {
1071
1071
  types = Object.keys(this.schema.requestBody.content);
@@ -1076,7 +1076,7 @@ var Operation = class {
1076
1076
  this.contentType = types[0];
1077
1077
  }
1078
1078
  types.forEach((t) => {
1079
- if (_chunkMYFJ2GV3cjs.matches_mimetype_default.json(t)) {
1079
+ if (_chunkY5HU4SVHcjs.matches_mimetype_default.json(t)) {
1080
1080
  this.contentType = t;
1081
1081
  }
1082
1082
  });
@@ -1089,7 +1089,7 @@ var Operation = class {
1089
1089
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
1090
1090
  */
1091
1091
  isFormUrlEncoded() {
1092
- return _chunkMYFJ2GV3cjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
1092
+ return _chunkY5HU4SVHcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
1093
1093
  }
1094
1094
  /**
1095
1095
  * Checks if the current operation has a mutipart content type payload.
@@ -1098,7 +1098,7 @@ var Operation = class {
1098
1098
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
1099
1099
  */
1100
1100
  isMultipart() {
1101
- return _chunkMYFJ2GV3cjs.matches_mimetype_default.multipart(this.getContentType());
1101
+ return _chunkY5HU4SVHcjs.matches_mimetype_default.multipart(this.getContentType());
1102
1102
  }
1103
1103
  /**
1104
1104
  * Checks if the current operation has a JSON-like content type payload.
@@ -1107,7 +1107,7 @@ var Operation = class {
1107
1107
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
1108
1108
  */
1109
1109
  isJson() {
1110
- return _chunkMYFJ2GV3cjs.matches_mimetype_default.json(this.getContentType());
1110
+ return _chunkY5HU4SVHcjs.matches_mimetype_default.json(this.getContentType());
1111
1111
  }
1112
1112
  /**
1113
1113
  * Checks if the current operation has an XML content type payload.
@@ -1116,7 +1116,7 @@ var Operation = class {
1116
1116
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
1117
1117
  */
1118
1118
  isXml() {
1119
- return _chunkMYFJ2GV3cjs.matches_mimetype_default.xml(this.getContentType());
1119
+ return _chunkY5HU4SVHcjs.matches_mimetype_default.xml(this.getContentType());
1120
1120
  }
1121
1121
  /**
1122
1122
  * Checks if the current operation is a webhook or not.
@@ -1164,7 +1164,7 @@ var Operation = class {
1164
1164
  security = _optionalChain([this, 'access', _94 => _94.api, 'optionalAccess', _95 => _95.components, 'optionalAccess', _96 => _96.securitySchemes, 'optionalAccess', _97 => _97[key]]);
1165
1165
  if (!security) return false;
1166
1166
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, security)) {
1167
- security = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, security, this.api);
1167
+ security = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, security, this.api);
1168
1168
  if (!security || _chunk7PWF3F2Wcjs.isRef.call(void 0, security)) return false;
1169
1169
  }
1170
1170
  } catch (e6) {
@@ -1245,7 +1245,7 @@ var Operation = class {
1245
1245
  this.schema.parameters.map((p) => {
1246
1246
  let param = p;
1247
1247
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1248
- param = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, param, this.api);
1248
+ param = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, param, this.api);
1249
1249
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1250
1250
  }
1251
1251
  if (param.in && param.in === "header") return param.name;
@@ -1258,7 +1258,7 @@ var Operation = class {
1258
1258
  let response = this.schema.responses[r];
1259
1259
  if (!response) return [];
1260
1260
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1261
- this.schema.responses[r] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, response, this.api);
1261
+ this.schema.responses[r] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, response, this.api);
1262
1262
  response = this.schema.responses[r];
1263
1263
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1264
1264
  return [];
@@ -1271,7 +1271,7 @@ var Operation = class {
1271
1271
  let requestBody = this.schema.requestBody;
1272
1272
  if (requestBody) {
1273
1273
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1274
- this.schema.requestBody = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, requestBody, this.api);
1274
+ this.schema.requestBody = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, requestBody, this.api);
1275
1275
  requestBody = this.schema.requestBody;
1276
1276
  }
1277
1277
  if (requestBody && !_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
@@ -1284,7 +1284,7 @@ var Operation = class {
1284
1284
  let response = _optionalChain([this, 'access', _101 => _101.schema, 'access', _102 => _102.responses, 'optionalAccess', _103 => _103[r]]);
1285
1285
  if (!response) return false;
1286
1286
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1287
- this.schema.responses[r] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, response, this.api);
1287
+ this.schema.responses[r] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, response, this.api);
1288
1288
  response = this.schema.responses[r];
1289
1289
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1290
1290
  return false;
@@ -1394,7 +1394,7 @@ var Operation = class {
1394
1394
  let parameters = (_optionalChain([this, 'access', _106 => _106.schema, 'optionalAccess', _107 => _107.parameters]) || []).map((p) => {
1395
1395
  let param = p;
1396
1396
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1397
- param = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, param, this.api);
1397
+ param = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, param, this.api);
1398
1398
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1399
1399
  }
1400
1400
  return param;
@@ -1402,7 +1402,7 @@ var Operation = class {
1402
1402
  const commonParams = (_optionalChain([this, 'access', _108 => _108.getCommonParameterContainer, 'call', _109 => _109(), 'optionalAccess', _110 => _110.parameters]) || []).map((p) => {
1403
1403
  let param = p;
1404
1404
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1405
- param = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, param, this.api);
1405
+ param = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, param, this.api);
1406
1406
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1407
1407
  }
1408
1408
  return param;
@@ -1417,7 +1417,7 @@ var Operation = class {
1417
1417
  * parameters defined on a referenced Path Item (including `components.pathItems`) remain visible.
1418
1418
  */
1419
1419
  getCommonParameterContainer() {
1420
- const pathItem = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _111 => _111.api, 'optionalAccess', _112 => _112.paths, 'optionalAccess', _113 => _113[this.path]]), this.api);
1420
+ const pathItem = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _111 => _111.api, 'optionalAccess', _112 => _112.paths, 'optionalAccess', _113 => _113[this.path]]), this.api);
1421
1421
  if (!pathItem || _chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem)) {
1422
1422
  return void 0;
1423
1423
  }
@@ -1445,8 +1445,8 @@ var Operation = class {
1445
1445
  *
1446
1446
  */
1447
1447
  getParametersAsJSONSchema(opts = {}) {
1448
- _chunkMYFJ2GV3cjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1449
- return _chunkMYFJ2GV3cjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1448
+ _chunkY5HU4SVHcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1449
+ return _chunkY5HU4SVHcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1450
1450
  includeDiscriminatorMappingRefs: true,
1451
1451
  ...opts
1452
1452
  });
@@ -1465,7 +1465,7 @@ var Operation = class {
1465
1465
  * this content-type, the function will return null.
1466
1466
  */
1467
1467
  getResponseAsJSONSchema(statusCode, opts = {}) {
1468
- _chunkMYFJ2GV3cjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1468
+ _chunkY5HU4SVHcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1469
1469
  return getResponseAsJSONSchema(this, this.api, statusCode, {
1470
1470
  includeDiscriminatorMappingRefs: true,
1471
1471
  ...opts
@@ -1478,7 +1478,7 @@ var Operation = class {
1478
1478
  getResponseStatusCodes() {
1479
1479
  if (!this.schema.responses) return [];
1480
1480
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
1481
- this.schema.responses = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1481
+ this.schema.responses = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1482
1482
  if (!this.schema.responses || _chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
1483
1483
  return [];
1484
1484
  }
@@ -1504,7 +1504,7 @@ var Operation = class {
1504
1504
  let resp = response;
1505
1505
  if (!resp) return;
1506
1506
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
1507
- resp = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, resp, this.api);
1507
+ resp = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, resp, this.api);
1508
1508
  if (!resp || _chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
1509
1509
  return;
1510
1510
  }
@@ -1533,7 +1533,7 @@ var Operation = class {
1533
1533
  let requestBody = this.schema.requestBody;
1534
1534
  if (!requestBody) return false;
1535
1535
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1536
- this.schema.requestBody = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, requestBody, this.api);
1536
+ this.schema.requestBody = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, requestBody, this.api);
1537
1537
  requestBody = this.schema.requestBody;
1538
1538
  if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1539
1539
  return false;
@@ -1607,7 +1607,7 @@ var Operation = class {
1607
1607
  let availableMediaType;
1608
1608
  const mediaTypes = this.getRequestBodyMediaTypes();
1609
1609
  mediaTypes.forEach((mt) => {
1610
- if (!availableMediaType && _chunkMYFJ2GV3cjs.matches_mimetype_default.json(mt)) {
1610
+ if (!availableMediaType && _chunkY5HU4SVHcjs.matches_mimetype_default.json(mt)) {
1611
1611
  availableMediaType = mt;
1612
1612
  }
1613
1613
  });
@@ -1655,7 +1655,7 @@ var Operation = class {
1655
1655
  let response = this.schema.responses[statusCode];
1656
1656
  if (!response) return false;
1657
1657
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1658
- this.schema.responses[statusCode] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, response, this.api);
1658
+ this.schema.responses[statusCode] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, response, this.api);
1659
1659
  response = this.schema.responses[statusCode];
1660
1660
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1661
1661
  return false;
@@ -1699,7 +1699,7 @@ var Operation = class {
1699
1699
  let callbackObj = this.schema.callbacks[identifier];
1700
1700
  if (!callbackObj) return false;
1701
1701
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
1702
- this.schema.callbacks[identifier] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, callbackObj, this.api);
1702
+ this.schema.callbacks[identifier] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1703
1703
  callbackObj = this.schema.callbacks[identifier];
1704
1704
  if (!callbackObj || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
1705
1705
  return false;
@@ -1708,7 +1708,7 @@ var Operation = class {
1708
1708
  let callback = callbackObj[expression];
1709
1709
  if (!callback) return false;
1710
1710
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
1711
- callbackObj[expression] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, callback, this.api);
1711
+ callbackObj[expression] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, callback, this.api);
1712
1712
  callback = callbackObj[expression];
1713
1713
  if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
1714
1714
  return false;
@@ -1732,7 +1732,7 @@ var Operation = class {
1732
1732
  let cb = _optionalChain([this, 'access', _122 => _122.schema, 'access', _123 => _123.callbacks, 'optionalAccess', _124 => _124[callback]]);
1733
1733
  if (!cb) return;
1734
1734
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
1735
- this.schema.callbacks[callback] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, cb, this.api);
1735
+ this.schema.callbacks[callback] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, cb, this.api);
1736
1736
  cb = this.schema.callbacks[callback];
1737
1737
  if (!cb || _chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
1738
1738
  return;
@@ -1742,14 +1742,14 @@ var Operation = class {
1742
1742
  let callbackPath = cb[expression];
1743
1743
  if (!callbackPath) return;
1744
1744
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
1745
- cb[expression] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, callbackPath, this.api);
1745
+ cb[expression] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1746
1746
  callbackPath = cb[expression];
1747
1747
  if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
1748
1748
  return;
1749
1749
  }
1750
1750
  }
1751
1751
  Object.keys(callbackPath).forEach((method) => {
1752
- if (!_chunkMYFJ2GV3cjs.supportedMethods.includes(method)) return;
1752
+ if (!_chunkY5HU4SVHcjs.supportedMethods.includes(method)) return;
1753
1753
  const found = this.getCallback(callback, expression, method);
1754
1754
  if (found) {
1755
1755
  callbacks.push(found);
@@ -1873,7 +1873,7 @@ var Callback = class extends Operation {
1873
1873
  let parameters = (_optionalChain([this, 'access', _131 => _131.schema, 'optionalAccess', _132 => _132.parameters]) || []).map((p) => {
1874
1874
  let param = p;
1875
1875
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1876
- param = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, param, this.api);
1876
+ param = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, param, this.api);
1877
1877
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1878
1878
  }
1879
1879
  return param;
@@ -1881,7 +1881,7 @@ var Callback = class extends Operation {
1881
1881
  const commonParams = (this.parentSchema.parameters || []).map((p) => {
1882
1882
  let param = p;
1883
1883
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1884
- param = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, param, this.api);
1884
+ param = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, param, this.api);
1885
1885
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1886
1886
  }
1887
1887
  return param;
@@ -1898,7 +1898,7 @@ var Webhook = class extends Operation {
1898
1898
  * defined on a referenced Path Item remain visible.
1899
1899
  */
1900
1900
  getCommonParameterContainer() {
1901
- const pathItem = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _133 => _133.api, 'optionalAccess', _134 => _134.webhooks, 'optionalAccess', _135 => _135[this.path]]), this.api);
1901
+ const pathItem = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _133 => _133.api, 'optionalAccess', _134 => _134.webhooks, 'optionalAccess', _135 => _135[this.path]]), this.api);
1902
1902
  if (!pathItem || _chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem)) {
1903
1903
  return void 0;
1904
1904
  }
@@ -1918,7 +1918,7 @@ var Webhook = class extends Operation {
1918
1918
  }
1919
1919
  let webhookPath = this.api.webhooks[this.path];
1920
1920
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
1921
- this.api.webhooks[this.path] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, webhookPath, this.api);
1921
+ this.api.webhooks[this.path] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1922
1922
  webhookPath = this.api.webhooks[this.path];
1923
1923
  }
1924
1924
  return _optionalChain([webhookPath, 'optionalAccess', _138 => _138.summary]);
@@ -1937,7 +1937,7 @@ var Webhook = class extends Operation {
1937
1937
  }
1938
1938
  let webhookPath = this.api.webhooks[this.path];
1939
1939
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
1940
- this.api.webhooks[this.path] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, webhookPath, this.api);
1940
+ this.api.webhooks[this.path] = _chunkY5HU4SVHcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1941
1941
  webhookPath = this.api.webhooks[this.path];
1942
1942
  }
1943
1943
  return _optionalChain([webhookPath, 'optionalAccess', _141 => _141.description]);
@@ -1972,4 +1972,4 @@ exports.getUserVariable = getUserVariable; exports.stripTrailingSlash = stripTra
1972
1972
  * @license Apache-2.0
1973
1973
  * @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
1974
1974
  */
1975
- //# sourceMappingURL=chunk-JQGHPVGV.cjs.map
1975
+ //# sourceMappingURL=chunk-7DE5LTVI.cjs.map