oas 32.1.9 → 32.1.10

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 _chunkKZCEPS4Jcjs = require('./chunk-KZCEPS4J.cjs');
16
+ var _chunkHTEFBV7Kcjs = require('./chunk-HTEFBV7K.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 (!_chunkKZCEPS4Jcjs.isObject.call(void 0, thing)) {
57
+ if (!_chunkHTEFBV7Kcjs.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 = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
136
+ objectifySchema = _chunkHTEFBV7Kcjs.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
  }
@@ -262,7 +262,7 @@ var samples_default = memo;
262
262
  function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
263
263
  if (mediaTypeObject.example) {
264
264
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, mediaTypeObject.example)) {
265
- mediaTypeObject.example = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, mediaTypeObject.example, definition);
265
+ mediaTypeObject.example = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, mediaTypeObject.example, definition);
266
266
  if (!mediaTypeObject.example || _chunkYPR7YTHMcjs.isRef.call(void 0, mediaTypeObject.example)) {
267
267
  return [];
268
268
  }
@@ -286,14 +286,14 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
286
286
  description = example.description;
287
287
  }
288
288
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
289
- example = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, example, definition);
289
+ example = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, example, definition);
290
290
  if (!example || _chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
291
291
  return false;
292
292
  }
293
293
  }
294
294
  if ("value" in example) {
295
295
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, example.value)) {
296
- example.value = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, example.value, definition);
296
+ example.value = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, example.value, definition);
297
297
  if (!example.value || _chunkYPR7YTHMcjs.isRef.call(void 0, example.value)) {
298
298
  return false;
299
299
  }
@@ -312,7 +312,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
312
312
  }
313
313
  }
314
314
  if (mediaTypeObject.schema) {
315
- if (!_chunkKZCEPS4Jcjs.matches_mimetype_default.xml(mediaType)) {
315
+ if (!_chunkHTEFBV7Kcjs.matches_mimetype_default.xml(mediaType)) {
316
316
  return [
317
317
  {
318
318
  value: samples_default(structuredClone(mediaTypeObject.schema), {
@@ -333,7 +333,7 @@ function getResponseExamples(operation, definition) {
333
333
  let onlyHeaders = false;
334
334
  if (!response) return false;
335
335
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
336
- response = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, definition);
336
+ response = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, response, definition);
337
337
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) return false;
338
338
  }
339
339
  const mediaTypes = {};
@@ -373,14 +373,14 @@ function getCallbackExamples(operation, definition) {
373
373
  let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
374
374
  if (!callback) return [];
375
375
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
376
- callback = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callback, definition);
376
+ callback = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, callback, definition);
377
377
  if (!callback || _chunkYPR7YTHMcjs.isRef.call(void 0, callback)) return [];
378
378
  }
379
379
  const items = Object.keys(callback).map((expression) => {
380
380
  let callbackPath = callback[expression];
381
381
  if (!callbackPath) return [];
382
382
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
383
- callbackPath = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callbackPath, definition);
383
+ callbackPath = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, callbackPath, definition);
384
384
  if (!callbackPath || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) return [];
385
385
  }
386
386
  return Object.keys(callbackPath).map((method) => {
@@ -463,7 +463,7 @@ function getExampleGroups(operation) {
463
463
  Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
464
464
  let example = paramExample;
465
465
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
466
- example = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, example, operation.api);
466
+ example = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, example, operation.api);
467
467
  if (!example || _chunkYPR7YTHMcjs.isRef.call(void 0, example)) return;
468
468
  }
469
469
  groups[exampleKey] = {
@@ -511,7 +511,7 @@ function getRequestBodyExamples(operation, definition) {
511
511
  if (!requestBody) {
512
512
  return [];
513
513
  } else if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
514
- requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, requestBody, definition);
514
+ requestBody = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, requestBody, definition);
515
515
  }
516
516
  if (!requestBody || _chunkYPR7YTHMcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
517
517
  return [];
@@ -576,7 +576,7 @@ function getOperationId(path, method, operation, opts = {}) {
576
576
  }
577
577
 
578
578
  // src/operation/transformers/get-response-as-json-schema.ts
579
- var isJSON = _chunkKZCEPS4Jcjs.matches_mimetype_default.json;
579
+ var isJSON = _chunkHTEFBV7Kcjs.matches_mimetype_default.json;
580
580
  function buildHeadersSchema(response, schemaOptions) {
581
581
  const headersSchema = {
582
582
  type: "object",
@@ -589,7 +589,7 @@ function buildHeadersSchema(response, schemaOptions) {
589
589
  let headerEntry = _optionalChain([response, 'access', _44 => _44.headers, 'optionalAccess', _45 => _45[key]]);
590
590
  if (!headerEntry) return;
591
591
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, headerEntry)) {
592
- headerEntry = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
592
+ headerEntry = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
593
593
  if (!headerEntry || _chunkYPR7YTHMcjs.isRef.call(void 0, headerEntry)) return;
594
594
  }
595
595
  if (headerEntry.schema) {
@@ -597,10 +597,10 @@ function buildHeadersSchema(response, schemaOptions) {
597
597
  let headerSchema = header.schema;
598
598
  if (!headerSchema) return;
599
599
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, headerSchema)) {
600
- headerSchema = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
600
+ headerSchema = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
601
601
  if (!headerSchema || _chunkYPR7YTHMcjs.isRef.call(void 0, headerSchema)) return;
602
602
  }
603
- headersSchema.properties[key] = _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, _chunkKZCEPS4Jcjs.cloneObject.call(void 0, headerSchema), {
603
+ headersSchema.properties[key] = _chunkHTEFBV7Kcjs.toJSONSchema.call(void 0, _chunkHTEFBV7Kcjs.cloneObject.call(void 0, headerSchema), {
604
604
  addEnumsToDescriptions: true,
605
605
  ...schemaOptions
606
606
  });
@@ -654,32 +654,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
654
654
  }
655
655
  if (preferredContentType) {
656
656
  if (contentTypes.includes(preferredContentType)) {
657
- const schema2 = _chunkKZCEPS4Jcjs.cloneObject.call(void 0, content[preferredContentType].schema);
657
+ const schema2 = _chunkHTEFBV7Kcjs.cloneObject.call(void 0, content[preferredContentType].schema);
658
658
  if (!schema2) {
659
659
  return null;
660
660
  }
661
- return _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
661
+ return _chunkHTEFBV7Kcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
662
662
  }
663
663
  return null;
664
664
  }
665
665
  for (let i = 0; i < contentTypes.length; i++) {
666
666
  if (isJSON(contentTypes[i])) {
667
- const schema2 = _chunkKZCEPS4Jcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
667
+ const schema2 = _chunkHTEFBV7Kcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
668
668
  if (!schema2) {
669
669
  return {};
670
670
  }
671
- return _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
671
+ return _chunkHTEFBV7Kcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
672
672
  }
673
673
  }
674
674
  const contentType = contentTypes.shift();
675
675
  if (!contentType) {
676
676
  return {};
677
677
  }
678
- const schema = _chunkKZCEPS4Jcjs.cloneObject.call(void 0, content[contentType].schema);
678
+ const schema = _chunkHTEFBV7Kcjs.cloneObject.call(void 0, content[contentType].schema);
679
679
  if (!schema) {
680
680
  return {};
681
681
  }
682
- return _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
682
+ return _chunkHTEFBV7Kcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
683
683
  }
684
684
  const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _46 => _46.contentType]));
685
685
  if (_optionalChain([opts, 'optionalAccess', _47 => _47.contentType]) && !foundSchema) {
@@ -698,23 +698,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
698
698
  // able to render so instead of generating a JSON Schema with an `undefined` type we should
699
699
  // default to `string` so there's at least *something* the end-user can interact with.
700
700
  type: _nullishCoalesce(schemaType, () => ( "string")),
701
- schema: _chunkKZCEPS4Jcjs.isPrimitive.call(void 0, schema) ? schema : {
701
+ schema: _chunkHTEFBV7Kcjs.isPrimitive.call(void 0, schema) ? schema : {
702
702
  ...schema,
703
- $schema: _chunkKZCEPS4Jcjs.getSchemaVersionString.call(void 0, schema, api)
703
+ $schema: _chunkHTEFBV7Kcjs.getSchemaVersionString.call(void 0, schema, api)
704
704
  },
705
705
  label: "Response body"
706
706
  };
707
707
  if (response.description && schemaWrapper.schema) {
708
708
  schemaWrapper.description = response.description;
709
709
  }
710
- _chunkKZCEPS4Jcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
710
+ _chunkHTEFBV7Kcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
711
711
  if (usedSchemas.has(ref)) {
712
712
  return usedSchemas.get(ref);
713
713
  }
714
714
  try {
715
- const resolved = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
715
+ const resolved = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
716
716
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, resolved)) return void 0;
717
- const converted = _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
717
+ const converted = _chunkHTEFBV7Kcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
718
718
  ...baseSchemaOptions,
719
719
  seenRefs
720
720
  });
@@ -726,9 +726,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
726
726
  });
727
727
  if (schemaWrapper.schema && usedSchemas.size > 0) {
728
728
  const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
729
- const referencedSchemas = _chunkKZCEPS4Jcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
729
+ const referencedSchemas = _chunkHTEFBV7Kcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
730
730
  if (referencedSchemas.size > 0) {
731
- _chunkKZCEPS4Jcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
731
+ _chunkHTEFBV7Kcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
732
732
  }
733
733
  }
734
734
  jsonSchema.push(schemaWrapper);
@@ -740,9 +740,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
740
740
  });
741
741
  if (headersWrapper.schema && usedSchemas.size > 0) {
742
742
  const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
743
- const referencedSchemas = _chunkKZCEPS4Jcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
743
+ const referencedSchemas = _chunkHTEFBV7Kcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
744
744
  if (referencedSchemas.size > 0) {
745
- _chunkKZCEPS4Jcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
745
+ _chunkHTEFBV7Kcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
746
746
  }
747
747
  }
748
748
  jsonSchema.push(headersWrapper);
@@ -882,7 +882,7 @@ var Operation = (_class = class {
882
882
  let types = [];
883
883
  if (this.schema.requestBody) {
884
884
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, this.schema.requestBody)) {
885
- this.schema.requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
885
+ this.schema.requestBody = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
886
886
  }
887
887
  if (this.schema.requestBody && "content" in this.schema.requestBody) {
888
888
  types = Object.keys(this.schema.requestBody.content);
@@ -893,7 +893,7 @@ var Operation = (_class = class {
893
893
  this.contentType = types[0];
894
894
  }
895
895
  types.forEach((t) => {
896
- if (_chunkKZCEPS4Jcjs.matches_mimetype_default.json(t)) {
896
+ if (_chunkHTEFBV7Kcjs.matches_mimetype_default.json(t)) {
897
897
  this.contentType = t;
898
898
  }
899
899
  });
@@ -906,7 +906,7 @@ var Operation = (_class = class {
906
906
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
907
907
  */
908
908
  isFormUrlEncoded() {
909
- return _chunkKZCEPS4Jcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
909
+ return _chunkHTEFBV7Kcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
910
910
  }
911
911
  /**
912
912
  * Checks if the current operation has a mutipart content type payload.
@@ -915,7 +915,7 @@ var Operation = (_class = class {
915
915
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
916
916
  */
917
917
  isMultipart() {
918
- return _chunkKZCEPS4Jcjs.matches_mimetype_default.multipart(this.getContentType());
918
+ return _chunkHTEFBV7Kcjs.matches_mimetype_default.multipart(this.getContentType());
919
919
  }
920
920
  /**
921
921
  * Checks if the current operation has a JSON-like content type payload.
@@ -924,7 +924,7 @@ var Operation = (_class = class {
924
924
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
925
925
  */
926
926
  isJson() {
927
- return _chunkKZCEPS4Jcjs.matches_mimetype_default.json(this.getContentType());
927
+ return _chunkHTEFBV7Kcjs.matches_mimetype_default.json(this.getContentType());
928
928
  }
929
929
  /**
930
930
  * Checks if the current operation has an XML content type payload.
@@ -933,7 +933,7 @@ var Operation = (_class = class {
933
933
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
934
934
  */
935
935
  isXml() {
936
- return _chunkKZCEPS4Jcjs.matches_mimetype_default.xml(this.getContentType());
936
+ return _chunkHTEFBV7Kcjs.matches_mimetype_default.xml(this.getContentType());
937
937
  }
938
938
  /**
939
939
  * Checks if the current operation is a webhook or not.
@@ -981,7 +981,7 @@ var Operation = (_class = class {
981
981
  security = _optionalChain([this, 'access', _64 => _64.api, 'optionalAccess', _65 => _65.components, 'optionalAccess', _66 => _66.securitySchemes, 'optionalAccess', _67 => _67[key]]);
982
982
  if (!security) return false;
983
983
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, security)) {
984
- security = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, security, this.api);
984
+ security = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, security, this.api);
985
985
  if (!security || _chunkYPR7YTHMcjs.isRef.call(void 0, security)) return false;
986
986
  }
987
987
  } catch (e4) {
@@ -1062,7 +1062,7 @@ var Operation = (_class = class {
1062
1062
  this.schema.parameters.map((p) => {
1063
1063
  let param = p;
1064
1064
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1065
- param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1065
+ param = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, param, this.api);
1066
1066
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1067
1067
  }
1068
1068
  if (param.in && param.in === "header") return param.name;
@@ -1075,7 +1075,7 @@ var Operation = (_class = class {
1075
1075
  let response = this.schema.responses[r];
1076
1076
  if (!response) return [];
1077
1077
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1078
- this.schema.responses[r] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, this.api);
1078
+ this.schema.responses[r] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, response, this.api);
1079
1079
  response = this.schema.responses[r];
1080
1080
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1081
1081
  return [];
@@ -1088,7 +1088,7 @@ var Operation = (_class = class {
1088
1088
  let requestBody = this.schema.requestBody;
1089
1089
  if (requestBody) {
1090
1090
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1091
- this.schema.requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, requestBody, this.api);
1091
+ this.schema.requestBody = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, requestBody, this.api);
1092
1092
  requestBody = this.schema.requestBody;
1093
1093
  }
1094
1094
  if (requestBody && !_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
@@ -1101,7 +1101,7 @@ var Operation = (_class = class {
1101
1101
  let response = _optionalChain([this, 'access', _71 => _71.schema, 'access', _72 => _72.responses, 'optionalAccess', _73 => _73[r]]);
1102
1102
  if (!response) return false;
1103
1103
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1104
- this.schema.responses[r] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, this.api);
1104
+ this.schema.responses[r] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, response, this.api);
1105
1105
  response = this.schema.responses[r];
1106
1106
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1107
1107
  return false;
@@ -1211,7 +1211,7 @@ var Operation = (_class = class {
1211
1211
  let parameters = (_optionalChain([this, 'access', _76 => _76.schema, 'optionalAccess', _77 => _77.parameters]) || []).map((p) => {
1212
1212
  let param = p;
1213
1213
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1214
- param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1214
+ param = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, param, this.api);
1215
1215
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1216
1216
  }
1217
1217
  return param;
@@ -1219,7 +1219,7 @@ var Operation = (_class = class {
1219
1219
  const commonParams = (_optionalChain([this, 'access', _78 => _78.api, 'optionalAccess', _79 => _79.paths, 'optionalAccess', _80 => _80[this.path], 'optionalAccess', _81 => _81.parameters]) || []).map((p) => {
1220
1220
  let param = p;
1221
1221
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1222
- param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1222
+ param = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, param, this.api);
1223
1223
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1224
1224
  }
1225
1225
  return param;
@@ -1257,10 +1257,10 @@ var Operation = (_class = class {
1257
1257
  );
1258
1258
  }
1259
1259
  if (!this.schemasDecorated) {
1260
- _chunkKZCEPS4Jcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1260
+ _chunkHTEFBV7Kcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1261
1261
  this.schemasDecorated = true;
1262
1262
  }
1263
- return _chunkKZCEPS4Jcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1263
+ return _chunkHTEFBV7Kcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1264
1264
  includeDiscriminatorMappingRefs: true,
1265
1265
  ...opts
1266
1266
  });
@@ -1285,7 +1285,7 @@ var Operation = (_class = class {
1285
1285
  );
1286
1286
  }
1287
1287
  if (!this.schemasDecorated) {
1288
- _chunkKZCEPS4Jcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1288
+ _chunkHTEFBV7Kcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1289
1289
  this.schemasDecorated = true;
1290
1290
  }
1291
1291
  return getResponseAsJSONSchema(this, this.api, statusCode, {
@@ -1300,7 +1300,7 @@ var Operation = (_class = class {
1300
1300
  getResponseStatusCodes() {
1301
1301
  if (!this.schema.responses) return [];
1302
1302
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, this.schema.responses)) {
1303
- this.schema.responses = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1303
+ this.schema.responses = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1304
1304
  if (!this.schema.responses || _chunkYPR7YTHMcjs.isRef.call(void 0, this.schema.responses)) {
1305
1305
  return [];
1306
1306
  }
@@ -1326,7 +1326,7 @@ var Operation = (_class = class {
1326
1326
  let resp = response;
1327
1327
  if (!resp) return;
1328
1328
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, resp)) {
1329
- resp = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, resp, this.api);
1329
+ resp = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, resp, this.api);
1330
1330
  if (!resp || _chunkYPR7YTHMcjs.isRef.call(void 0, resp)) {
1331
1331
  return;
1332
1332
  }
@@ -1355,7 +1355,7 @@ var Operation = (_class = class {
1355
1355
  let requestBody = this.schema.requestBody;
1356
1356
  if (!requestBody) return false;
1357
1357
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1358
- this.schema.requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, requestBody, this.api);
1358
+ this.schema.requestBody = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, requestBody, this.api);
1359
1359
  requestBody = this.schema.requestBody;
1360
1360
  if (!requestBody || _chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1361
1361
  return false;
@@ -1425,7 +1425,7 @@ var Operation = (_class = class {
1425
1425
  let availableMediaType;
1426
1426
  const mediaTypes = this.getRequestBodyMediaTypes();
1427
1427
  mediaTypes.forEach((mt) => {
1428
- if (!availableMediaType && _chunkKZCEPS4Jcjs.matches_mimetype_default.json(mt)) {
1428
+ if (!availableMediaType && _chunkHTEFBV7Kcjs.matches_mimetype_default.json(mt)) {
1429
1429
  availableMediaType = mt;
1430
1430
  }
1431
1431
  });
@@ -1473,7 +1473,7 @@ var Operation = (_class = class {
1473
1473
  let response = this.schema.responses[statusCode];
1474
1474
  if (!response) return false;
1475
1475
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1476
- this.schema.responses[statusCode] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, this.api);
1476
+ this.schema.responses[statusCode] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, response, this.api);
1477
1477
  response = this.schema.responses[statusCode];
1478
1478
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1479
1479
  return false;
@@ -1517,7 +1517,7 @@ var Operation = (_class = class {
1517
1517
  let callbackObj = this.schema.callbacks[identifier];
1518
1518
  if (!callbackObj) return false;
1519
1519
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackObj)) {
1520
- this.schema.callbacks[identifier] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1520
+ this.schema.callbacks[identifier] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1521
1521
  callbackObj = this.schema.callbacks[identifier];
1522
1522
  if (!callbackObj || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackObj)) {
1523
1523
  return false;
@@ -1526,7 +1526,7 @@ var Operation = (_class = class {
1526
1526
  let callback = callbackObj[expression];
1527
1527
  if (!callback) return false;
1528
1528
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
1529
- callbackObj[expression] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callback, this.api);
1529
+ callbackObj[expression] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, callback, this.api);
1530
1530
  callback = callbackObj[expression];
1531
1531
  if (!callback || _chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
1532
1532
  return false;
@@ -1550,7 +1550,7 @@ var Operation = (_class = class {
1550
1550
  let cb = _optionalChain([this, 'access', _90 => _90.schema, 'access', _91 => _91.callbacks, 'optionalAccess', _92 => _92[callback]]);
1551
1551
  if (!cb) return;
1552
1552
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, cb)) {
1553
- this.schema.callbacks[callback] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, cb, this.api);
1553
+ this.schema.callbacks[callback] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, cb, this.api);
1554
1554
  cb = this.schema.callbacks[callback];
1555
1555
  if (!cb || _chunkYPR7YTHMcjs.isRef.call(void 0, cb)) {
1556
1556
  return;
@@ -1560,14 +1560,14 @@ var Operation = (_class = class {
1560
1560
  let callbackPath = cb[expression];
1561
1561
  if (!callbackPath) return;
1562
1562
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
1563
- cb[expression] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1563
+ cb[expression] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1564
1564
  callbackPath = cb[expression];
1565
1565
  if (!callbackPath || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
1566
1566
  return;
1567
1567
  }
1568
1568
  }
1569
1569
  Object.keys(callbackPath).forEach((method) => {
1570
- if (!_chunkKZCEPS4Jcjs.supportedMethods.includes(method)) return;
1570
+ if (!_chunkHTEFBV7Kcjs.supportedMethods.includes(method)) return;
1571
1571
  const found = this.getCallback(callback, expression, method);
1572
1572
  if (found) {
1573
1573
  callbacks.push(found);
@@ -1645,12 +1645,12 @@ var Operation = (_class = class {
1645
1645
  }
1646
1646
  this.dereferencing.processing = true;
1647
1647
  if (!this.schemasDecorated) {
1648
- _chunkKZCEPS4Jcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1648
+ _chunkHTEFBV7Kcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1649
1649
  this.schemasDecorated = true;
1650
1650
  }
1651
1651
  const { api, schema, promises } = this;
1652
1652
  const circularRefs = /* @__PURE__ */ new Set();
1653
- const dereferencingOptions = _chunkKZCEPS4Jcjs.getDereferencingOptions.call(void 0, circularRefs);
1653
+ const dereferencingOptions = _chunkHTEFBV7Kcjs.getDereferencingOptions.call(void 0, circularRefs);
1654
1654
  const parser = new (0, _jsonschemarefparser.$RefParser)();
1655
1655
  return parser.dereference(
1656
1656
  "#/__INTERNAL__",
@@ -1792,7 +1792,7 @@ var Callback = class extends Operation {
1792
1792
  let parameters = (_optionalChain([this, 'access', _100 => _100.schema, 'optionalAccess', _101 => _101.parameters]) || []).map((p) => {
1793
1793
  let param = p;
1794
1794
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1795
- param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1795
+ param = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, param, this.api);
1796
1796
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1797
1797
  }
1798
1798
  return param;
@@ -1800,7 +1800,7 @@ var Callback = class extends Operation {
1800
1800
  const commonParams = (this.parentSchema.parameters || []).map((p) => {
1801
1801
  let param = p;
1802
1802
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1803
- param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1803
+ param = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, param, this.api);
1804
1804
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1805
1805
  }
1806
1806
  return param;
@@ -1826,7 +1826,7 @@ var Webhook = class extends Operation {
1826
1826
  }
1827
1827
  let webhookPath = this.api.webhooks[this.path];
1828
1828
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, webhookPath)) {
1829
- this.api.webhooks[this.path] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1829
+ this.api.webhooks[this.path] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1830
1830
  webhookPath = this.api.webhooks[this.path];
1831
1831
  }
1832
1832
  return _optionalChain([webhookPath, 'optionalAccess', _104 => _104.summary]);
@@ -1845,7 +1845,7 @@ var Webhook = class extends Operation {
1845
1845
  }
1846
1846
  let webhookPath = this.api.webhooks[this.path];
1847
1847
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, webhookPath)) {
1848
- this.api.webhooks[this.path] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1848
+ this.api.webhooks[this.path] = _chunkHTEFBV7Kcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1849
1849
  webhookPath = this.api.webhooks[this.path];
1850
1850
  }
1851
1851
  return _optionalChain([webhookPath, 'optionalAccess', _107 => _107.description]);
@@ -1869,4 +1869,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
1869
1869
  * @license Apache-2.0
1870
1870
  * @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
1871
1871
  */
1872
- //# sourceMappingURL=chunk-NG4A45EE.cjs.map
1872
+ //# sourceMappingURL=chunk-EYI3QYOG.cjs.map