oas 32.1.7 → 32.1.9

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 _chunk4ZMPFZPVcjs = require('./chunk-4ZMPFZPV.cjs');
16
+ var _chunkKZCEPS4Jcjs = require('./chunk-KZCEPS4J.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 (!_chunk4ZMPFZPVcjs.isObject.call(void 0, thing)) {
57
+ if (!_chunkKZCEPS4Jcjs.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 = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
136
+ objectifySchema = _chunkKZCEPS4Jcjs.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
  }
@@ -261,6 +261,12 @@ var samples_default = memo;
261
261
  // src/operation/lib/get-mediatype-examples.ts
262
262
  function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
263
263
  if (mediaTypeObject.example) {
264
+ if (_chunkYPR7YTHMcjs.isRef.call(void 0, mediaTypeObject.example)) {
265
+ mediaTypeObject.example = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, mediaTypeObject.example, definition);
266
+ if (!mediaTypeObject.example || _chunkYPR7YTHMcjs.isRef.call(void 0, mediaTypeObject.example)) {
267
+ return [];
268
+ }
269
+ }
264
270
  return [
265
271
  {
266
272
  value: mediaTypeObject.example
@@ -279,10 +285,19 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
279
285
  if ("description" in example) {
280
286
  description = example.description;
281
287
  }
282
- if ("value" in example) {
283
- if (example.value !== null && typeof example.value === "object" && "$ref" in example.value) {
288
+ if (_chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
289
+ example = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, example, definition);
290
+ if (!example || _chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
284
291
  return false;
285
292
  }
293
+ }
294
+ if ("value" in example) {
295
+ if (_chunkYPR7YTHMcjs.isRef.call(void 0, example.value)) {
296
+ example.value = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, example.value, definition);
297
+ if (!example.value || _chunkYPR7YTHMcjs.isRef.call(void 0, example.value)) {
298
+ return false;
299
+ }
300
+ }
286
301
  example = example.value;
287
302
  }
288
303
  }
@@ -297,7 +312,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
297
312
  }
298
313
  }
299
314
  if (mediaTypeObject.schema) {
300
- if (!_chunk4ZMPFZPVcjs.matches_mimetype_default.xml(mediaType)) {
315
+ if (!_chunkKZCEPS4Jcjs.matches_mimetype_default.xml(mediaType)) {
301
316
  return [
302
317
  {
303
318
  value: samples_default(structuredClone(mediaTypeObject.schema), {
@@ -318,7 +333,7 @@ function getResponseExamples(operation, definition) {
318
333
  let onlyHeaders = false;
319
334
  if (!response) return false;
320
335
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
321
- response = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, response, definition);
336
+ response = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, definition);
322
337
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) return false;
323
338
  }
324
339
  const mediaTypes = {};
@@ -358,14 +373,14 @@ function getCallbackExamples(operation, definition) {
358
373
  let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
359
374
  if (!callback) return [];
360
375
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
361
- callback = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, callback, definition);
376
+ callback = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callback, definition);
362
377
  if (!callback || _chunkYPR7YTHMcjs.isRef.call(void 0, callback)) return [];
363
378
  }
364
379
  const items = Object.keys(callback).map((expression) => {
365
380
  let callbackPath = callback[expression];
366
381
  if (!callbackPath) return [];
367
382
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
368
- callbackPath = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, callbackPath, definition);
383
+ callbackPath = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callbackPath, definition);
369
384
  if (!callbackPath || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) return [];
370
385
  }
371
386
  return Object.keys(callbackPath).map((method) => {
@@ -448,7 +463,7 @@ function getExampleGroups(operation) {
448
463
  Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
449
464
  let example = paramExample;
450
465
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, example)) {
451
- example = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, example, operation.api);
466
+ example = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, example, operation.api);
452
467
  if (!example || _chunkYPR7YTHMcjs.isRef.call(void 0, example)) return;
453
468
  }
454
469
  groups[exampleKey] = {
@@ -496,7 +511,7 @@ function getRequestBodyExamples(operation, definition) {
496
511
  if (!requestBody) {
497
512
  return [];
498
513
  } else if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
499
- requestBody = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, requestBody, definition);
514
+ requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, requestBody, definition);
500
515
  }
501
516
  if (!requestBody || _chunkYPR7YTHMcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
502
517
  return [];
@@ -561,7 +576,7 @@ function getOperationId(path, method, operation, opts = {}) {
561
576
  }
562
577
 
563
578
  // src/operation/transformers/get-response-as-json-schema.ts
564
- var isJSON = _chunk4ZMPFZPVcjs.matches_mimetype_default.json;
579
+ var isJSON = _chunkKZCEPS4Jcjs.matches_mimetype_default.json;
565
580
  function buildHeadersSchema(response, schemaOptions) {
566
581
  const headersSchema = {
567
582
  type: "object",
@@ -574,7 +589,7 @@ function buildHeadersSchema(response, schemaOptions) {
574
589
  let headerEntry = _optionalChain([response, 'access', _44 => _44.headers, 'optionalAccess', _45 => _45[key]]);
575
590
  if (!headerEntry) return;
576
591
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, headerEntry)) {
577
- headerEntry = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
592
+ headerEntry = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
578
593
  if (!headerEntry || _chunkYPR7YTHMcjs.isRef.call(void 0, headerEntry)) return;
579
594
  }
580
595
  if (headerEntry.schema) {
@@ -582,10 +597,10 @@ function buildHeadersSchema(response, schemaOptions) {
582
597
  let headerSchema = header.schema;
583
598
  if (!headerSchema) return;
584
599
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, headerSchema)) {
585
- headerSchema = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
600
+ headerSchema = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
586
601
  if (!headerSchema || _chunkYPR7YTHMcjs.isRef.call(void 0, headerSchema)) return;
587
602
  }
588
- headersSchema.properties[key] = _chunk4ZMPFZPVcjs.toJSONSchema.call(void 0, _chunk4ZMPFZPVcjs.cloneObject.call(void 0, headerSchema), {
603
+ headersSchema.properties[key] = _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, _chunkKZCEPS4Jcjs.cloneObject.call(void 0, headerSchema), {
589
604
  addEnumsToDescriptions: true,
590
605
  ...schemaOptions
591
606
  });
@@ -639,32 +654,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
639
654
  }
640
655
  if (preferredContentType) {
641
656
  if (contentTypes.includes(preferredContentType)) {
642
- const schema2 = _chunk4ZMPFZPVcjs.cloneObject.call(void 0, content[preferredContentType].schema);
657
+ const schema2 = _chunkKZCEPS4Jcjs.cloneObject.call(void 0, content[preferredContentType].schema);
643
658
  if (!schema2) {
644
659
  return null;
645
660
  }
646
- return _chunk4ZMPFZPVcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
661
+ return _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
647
662
  }
648
663
  return null;
649
664
  }
650
665
  for (let i = 0; i < contentTypes.length; i++) {
651
666
  if (isJSON(contentTypes[i])) {
652
- const schema2 = _chunk4ZMPFZPVcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
667
+ const schema2 = _chunkKZCEPS4Jcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
653
668
  if (!schema2) {
654
669
  return {};
655
670
  }
656
- return _chunk4ZMPFZPVcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
671
+ return _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
657
672
  }
658
673
  }
659
674
  const contentType = contentTypes.shift();
660
675
  if (!contentType) {
661
676
  return {};
662
677
  }
663
- const schema = _chunk4ZMPFZPVcjs.cloneObject.call(void 0, content[contentType].schema);
678
+ const schema = _chunkKZCEPS4Jcjs.cloneObject.call(void 0, content[contentType].schema);
664
679
  if (!schema) {
665
680
  return {};
666
681
  }
667
- return _chunk4ZMPFZPVcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
682
+ return _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
668
683
  }
669
684
  const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _46 => _46.contentType]));
670
685
  if (_optionalChain([opts, 'optionalAccess', _47 => _47.contentType]) && !foundSchema) {
@@ -683,23 +698,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
683
698
  // able to render so instead of generating a JSON Schema with an `undefined` type we should
684
699
  // default to `string` so there's at least *something* the end-user can interact with.
685
700
  type: _nullishCoalesce(schemaType, () => ( "string")),
686
- schema: _chunk4ZMPFZPVcjs.isPrimitive.call(void 0, schema) ? schema : {
701
+ schema: _chunkKZCEPS4Jcjs.isPrimitive.call(void 0, schema) ? schema : {
687
702
  ...schema,
688
- $schema: _chunk4ZMPFZPVcjs.getSchemaVersionString.call(void 0, schema, api)
703
+ $schema: _chunkKZCEPS4Jcjs.getSchemaVersionString.call(void 0, schema, api)
689
704
  },
690
705
  label: "Response body"
691
706
  };
692
707
  if (response.description && schemaWrapper.schema) {
693
708
  schemaWrapper.description = response.description;
694
709
  }
695
- _chunk4ZMPFZPVcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
710
+ _chunkKZCEPS4Jcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
696
711
  if (usedSchemas.has(ref)) {
697
712
  return usedSchemas.get(ref);
698
713
  }
699
714
  try {
700
- const resolved = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
715
+ const resolved = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
701
716
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, resolved)) return void 0;
702
- const converted = _chunk4ZMPFZPVcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
717
+ const converted = _chunkKZCEPS4Jcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
703
718
  ...baseSchemaOptions,
704
719
  seenRefs
705
720
  });
@@ -711,9 +726,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
711
726
  });
712
727
  if (schemaWrapper.schema && usedSchemas.size > 0) {
713
728
  const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
714
- const referencedSchemas = _chunk4ZMPFZPVcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
729
+ const referencedSchemas = _chunkKZCEPS4Jcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
715
730
  if (referencedSchemas.size > 0) {
716
- _chunk4ZMPFZPVcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
731
+ _chunkKZCEPS4Jcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
717
732
  }
718
733
  }
719
734
  jsonSchema.push(schemaWrapper);
@@ -725,9 +740,9 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
725
740
  });
726
741
  if (headersWrapper.schema && usedSchemas.size > 0) {
727
742
  const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
728
- const referencedSchemas = _chunk4ZMPFZPVcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
743
+ const referencedSchemas = _chunkKZCEPS4Jcjs.filterRequiredRefsToReferenced.call(void 0, refsInGroup, usedSchemas);
729
744
  if (referencedSchemas.size > 0) {
730
- _chunk4ZMPFZPVcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
745
+ _chunkKZCEPS4Jcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
731
746
  }
732
747
  }
733
748
  jsonSchema.push(headersWrapper);
@@ -867,7 +882,7 @@ var Operation = (_class = class {
867
882
  let types = [];
868
883
  if (this.schema.requestBody) {
869
884
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, this.schema.requestBody)) {
870
- this.schema.requestBody = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
885
+ this.schema.requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
871
886
  }
872
887
  if (this.schema.requestBody && "content" in this.schema.requestBody) {
873
888
  types = Object.keys(this.schema.requestBody.content);
@@ -878,7 +893,7 @@ var Operation = (_class = class {
878
893
  this.contentType = types[0];
879
894
  }
880
895
  types.forEach((t) => {
881
- if (_chunk4ZMPFZPVcjs.matches_mimetype_default.json(t)) {
896
+ if (_chunkKZCEPS4Jcjs.matches_mimetype_default.json(t)) {
882
897
  this.contentType = t;
883
898
  }
884
899
  });
@@ -891,7 +906,7 @@ var Operation = (_class = class {
891
906
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
892
907
  */
893
908
  isFormUrlEncoded() {
894
- return _chunk4ZMPFZPVcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
909
+ return _chunkKZCEPS4Jcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
895
910
  }
896
911
  /**
897
912
  * Checks if the current operation has a mutipart content type payload.
@@ -900,7 +915,7 @@ var Operation = (_class = class {
900
915
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
901
916
  */
902
917
  isMultipart() {
903
- return _chunk4ZMPFZPVcjs.matches_mimetype_default.multipart(this.getContentType());
918
+ return _chunkKZCEPS4Jcjs.matches_mimetype_default.multipart(this.getContentType());
904
919
  }
905
920
  /**
906
921
  * Checks if the current operation has a JSON-like content type payload.
@@ -909,7 +924,7 @@ var Operation = (_class = class {
909
924
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
910
925
  */
911
926
  isJson() {
912
- return _chunk4ZMPFZPVcjs.matches_mimetype_default.json(this.getContentType());
927
+ return _chunkKZCEPS4Jcjs.matches_mimetype_default.json(this.getContentType());
913
928
  }
914
929
  /**
915
930
  * Checks if the current operation has an XML content type payload.
@@ -918,7 +933,7 @@ var Operation = (_class = class {
918
933
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
919
934
  */
920
935
  isXml() {
921
- return _chunk4ZMPFZPVcjs.matches_mimetype_default.xml(this.getContentType());
936
+ return _chunkKZCEPS4Jcjs.matches_mimetype_default.xml(this.getContentType());
922
937
  }
923
938
  /**
924
939
  * Checks if the current operation is a webhook or not.
@@ -966,7 +981,7 @@ var Operation = (_class = class {
966
981
  security = _optionalChain([this, 'access', _64 => _64.api, 'optionalAccess', _65 => _65.components, 'optionalAccess', _66 => _66.securitySchemes, 'optionalAccess', _67 => _67[key]]);
967
982
  if (!security) return false;
968
983
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, security)) {
969
- security = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, security, this.api);
984
+ security = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, security, this.api);
970
985
  if (!security || _chunkYPR7YTHMcjs.isRef.call(void 0, security)) return false;
971
986
  }
972
987
  } catch (e4) {
@@ -1047,7 +1062,7 @@ var Operation = (_class = class {
1047
1062
  this.schema.parameters.map((p) => {
1048
1063
  let param = p;
1049
1064
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1050
- param = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, param, this.api);
1065
+ param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1051
1066
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1052
1067
  }
1053
1068
  if (param.in && param.in === "header") return param.name;
@@ -1060,7 +1075,7 @@ var Operation = (_class = class {
1060
1075
  let response = this.schema.responses[r];
1061
1076
  if (!response) return [];
1062
1077
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1063
- this.schema.responses[r] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, response, this.api);
1078
+ this.schema.responses[r] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, this.api);
1064
1079
  response = this.schema.responses[r];
1065
1080
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1066
1081
  return [];
@@ -1073,7 +1088,7 @@ var Operation = (_class = class {
1073
1088
  let requestBody = this.schema.requestBody;
1074
1089
  if (requestBody) {
1075
1090
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1076
- this.schema.requestBody = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, requestBody, this.api);
1091
+ this.schema.requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, requestBody, this.api);
1077
1092
  requestBody = this.schema.requestBody;
1078
1093
  }
1079
1094
  if (requestBody && !_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
@@ -1086,7 +1101,7 @@ var Operation = (_class = class {
1086
1101
  let response = _optionalChain([this, 'access', _71 => _71.schema, 'access', _72 => _72.responses, 'optionalAccess', _73 => _73[r]]);
1087
1102
  if (!response) return false;
1088
1103
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1089
- this.schema.responses[r] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, response, this.api);
1104
+ this.schema.responses[r] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, this.api);
1090
1105
  response = this.schema.responses[r];
1091
1106
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1092
1107
  return false;
@@ -1196,7 +1211,7 @@ var Operation = (_class = class {
1196
1211
  let parameters = (_optionalChain([this, 'access', _76 => _76.schema, 'optionalAccess', _77 => _77.parameters]) || []).map((p) => {
1197
1212
  let param = p;
1198
1213
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1199
- param = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, param, this.api);
1214
+ param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1200
1215
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1201
1216
  }
1202
1217
  return param;
@@ -1204,7 +1219,7 @@ var Operation = (_class = class {
1204
1219
  const commonParams = (_optionalChain([this, 'access', _78 => _78.api, 'optionalAccess', _79 => _79.paths, 'optionalAccess', _80 => _80[this.path], 'optionalAccess', _81 => _81.parameters]) || []).map((p) => {
1205
1220
  let param = p;
1206
1221
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1207
- param = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, param, this.api);
1222
+ param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1208
1223
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1209
1224
  }
1210
1225
  return param;
@@ -1242,10 +1257,10 @@ var Operation = (_class = class {
1242
1257
  );
1243
1258
  }
1244
1259
  if (!this.schemasDecorated) {
1245
- _chunk4ZMPFZPVcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1260
+ _chunkKZCEPS4Jcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1246
1261
  this.schemasDecorated = true;
1247
1262
  }
1248
- return _chunk4ZMPFZPVcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1263
+ return _chunkKZCEPS4Jcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1249
1264
  includeDiscriminatorMappingRefs: true,
1250
1265
  ...opts
1251
1266
  });
@@ -1270,7 +1285,7 @@ var Operation = (_class = class {
1270
1285
  );
1271
1286
  }
1272
1287
  if (!this.schemasDecorated) {
1273
- _chunk4ZMPFZPVcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1288
+ _chunkKZCEPS4Jcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1274
1289
  this.schemasDecorated = true;
1275
1290
  }
1276
1291
  return getResponseAsJSONSchema(this, this.api, statusCode, {
@@ -1285,7 +1300,7 @@ var Operation = (_class = class {
1285
1300
  getResponseStatusCodes() {
1286
1301
  if (!this.schema.responses) return [];
1287
1302
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, this.schema.responses)) {
1288
- this.schema.responses = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1303
+ this.schema.responses = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1289
1304
  if (!this.schema.responses || _chunkYPR7YTHMcjs.isRef.call(void 0, this.schema.responses)) {
1290
1305
  return [];
1291
1306
  }
@@ -1311,7 +1326,7 @@ var Operation = (_class = class {
1311
1326
  let resp = response;
1312
1327
  if (!resp) return;
1313
1328
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, resp)) {
1314
- resp = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, resp, this.api);
1329
+ resp = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, resp, this.api);
1315
1330
  if (!resp || _chunkYPR7YTHMcjs.isRef.call(void 0, resp)) {
1316
1331
  return;
1317
1332
  }
@@ -1340,7 +1355,7 @@ var Operation = (_class = class {
1340
1355
  let requestBody = this.schema.requestBody;
1341
1356
  if (!requestBody) return false;
1342
1357
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1343
- this.schema.requestBody = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, requestBody, this.api);
1358
+ this.schema.requestBody = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, requestBody, this.api);
1344
1359
  requestBody = this.schema.requestBody;
1345
1360
  if (!requestBody || _chunkYPR7YTHMcjs.isRef.call(void 0, requestBody)) {
1346
1361
  return false;
@@ -1410,7 +1425,7 @@ var Operation = (_class = class {
1410
1425
  let availableMediaType;
1411
1426
  const mediaTypes = this.getRequestBodyMediaTypes();
1412
1427
  mediaTypes.forEach((mt) => {
1413
- if (!availableMediaType && _chunk4ZMPFZPVcjs.matches_mimetype_default.json(mt)) {
1428
+ if (!availableMediaType && _chunkKZCEPS4Jcjs.matches_mimetype_default.json(mt)) {
1414
1429
  availableMediaType = mt;
1415
1430
  }
1416
1431
  });
@@ -1458,7 +1473,7 @@ var Operation = (_class = class {
1458
1473
  let response = this.schema.responses[statusCode];
1459
1474
  if (!response) return false;
1460
1475
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1461
- this.schema.responses[statusCode] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, response, this.api);
1476
+ this.schema.responses[statusCode] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, response, this.api);
1462
1477
  response = this.schema.responses[statusCode];
1463
1478
  if (!response || _chunkYPR7YTHMcjs.isRef.call(void 0, response)) {
1464
1479
  return false;
@@ -1502,7 +1517,7 @@ var Operation = (_class = class {
1502
1517
  let callbackObj = this.schema.callbacks[identifier];
1503
1518
  if (!callbackObj) return false;
1504
1519
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackObj)) {
1505
- this.schema.callbacks[identifier] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1520
+ this.schema.callbacks[identifier] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1506
1521
  callbackObj = this.schema.callbacks[identifier];
1507
1522
  if (!callbackObj || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackObj)) {
1508
1523
  return false;
@@ -1511,7 +1526,7 @@ var Operation = (_class = class {
1511
1526
  let callback = callbackObj[expression];
1512
1527
  if (!callback) return false;
1513
1528
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
1514
- callbackObj[expression] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, callback, this.api);
1529
+ callbackObj[expression] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callback, this.api);
1515
1530
  callback = callbackObj[expression];
1516
1531
  if (!callback || _chunkYPR7YTHMcjs.isRef.call(void 0, callback)) {
1517
1532
  return false;
@@ -1535,7 +1550,7 @@ var Operation = (_class = class {
1535
1550
  let cb = _optionalChain([this, 'access', _90 => _90.schema, 'access', _91 => _91.callbacks, 'optionalAccess', _92 => _92[callback]]);
1536
1551
  if (!cb) return;
1537
1552
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, cb)) {
1538
- this.schema.callbacks[callback] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, cb, this.api);
1553
+ this.schema.callbacks[callback] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, cb, this.api);
1539
1554
  cb = this.schema.callbacks[callback];
1540
1555
  if (!cb || _chunkYPR7YTHMcjs.isRef.call(void 0, cb)) {
1541
1556
  return;
@@ -1545,14 +1560,14 @@ var Operation = (_class = class {
1545
1560
  let callbackPath = cb[expression];
1546
1561
  if (!callbackPath) return;
1547
1562
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
1548
- cb[expression] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1563
+ cb[expression] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1549
1564
  callbackPath = cb[expression];
1550
1565
  if (!callbackPath || _chunkYPR7YTHMcjs.isRef.call(void 0, callbackPath)) {
1551
1566
  return;
1552
1567
  }
1553
1568
  }
1554
1569
  Object.keys(callbackPath).forEach((method) => {
1555
- if (!_chunk4ZMPFZPVcjs.supportedMethods.includes(method)) return;
1570
+ if (!_chunkKZCEPS4Jcjs.supportedMethods.includes(method)) return;
1556
1571
  const found = this.getCallback(callback, expression, method);
1557
1572
  if (found) {
1558
1573
  callbacks.push(found);
@@ -1630,12 +1645,12 @@ var Operation = (_class = class {
1630
1645
  }
1631
1646
  this.dereferencing.processing = true;
1632
1647
  if (!this.schemasDecorated) {
1633
- _chunk4ZMPFZPVcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1648
+ _chunkKZCEPS4Jcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1634
1649
  this.schemasDecorated = true;
1635
1650
  }
1636
1651
  const { api, schema, promises } = this;
1637
1652
  const circularRefs = /* @__PURE__ */ new Set();
1638
- const dereferencingOptions = _chunk4ZMPFZPVcjs.getDereferencingOptions.call(void 0, circularRefs);
1653
+ const dereferencingOptions = _chunkKZCEPS4Jcjs.getDereferencingOptions.call(void 0, circularRefs);
1639
1654
  const parser = new (0, _jsonschemarefparser.$RefParser)();
1640
1655
  return parser.dereference(
1641
1656
  "#/__INTERNAL__",
@@ -1777,7 +1792,7 @@ var Callback = class extends Operation {
1777
1792
  let parameters = (_optionalChain([this, 'access', _100 => _100.schema, 'optionalAccess', _101 => _101.parameters]) || []).map((p) => {
1778
1793
  let param = p;
1779
1794
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1780
- param = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, param, this.api);
1795
+ param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1781
1796
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1782
1797
  }
1783
1798
  return param;
@@ -1785,7 +1800,7 @@ var Callback = class extends Operation {
1785
1800
  const commonParams = (this.parentSchema.parameters || []).map((p) => {
1786
1801
  let param = p;
1787
1802
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, param)) {
1788
- param = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, param, this.api);
1803
+ param = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, param, this.api);
1789
1804
  if (!param || _chunkYPR7YTHMcjs.isRef.call(void 0, param)) return void 0;
1790
1805
  }
1791
1806
  return param;
@@ -1811,7 +1826,7 @@ var Webhook = class extends Operation {
1811
1826
  }
1812
1827
  let webhookPath = this.api.webhooks[this.path];
1813
1828
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, webhookPath)) {
1814
- this.api.webhooks[this.path] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1829
+ this.api.webhooks[this.path] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1815
1830
  webhookPath = this.api.webhooks[this.path];
1816
1831
  }
1817
1832
  return _optionalChain([webhookPath, 'optionalAccess', _104 => _104.summary]);
@@ -1830,7 +1845,7 @@ var Webhook = class extends Operation {
1830
1845
  }
1831
1846
  let webhookPath = this.api.webhooks[this.path];
1832
1847
  if (_chunkYPR7YTHMcjs.isRef.call(void 0, webhookPath)) {
1833
- this.api.webhooks[this.path] = _chunk4ZMPFZPVcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1848
+ this.api.webhooks[this.path] = _chunkKZCEPS4Jcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1834
1849
  webhookPath = this.api.webhooks[this.path];
1835
1850
  }
1836
1851
  return _optionalChain([webhookPath, 'optionalAccess', _107 => _107.description]);
@@ -1854,4 +1869,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
1854
1869
  * @license Apache-2.0
1855
1870
  * @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
1856
1871
  */
1857
- //# sourceMappingURL=chunk-SEIG2ZZR.cjs.map
1872
+ //# sourceMappingURL=chunk-NG4A45EE.cjs.map