oas 36.0.1 → 36.0.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 _chunkC6QTUTTFcjs = require('./chunk-C6QTUTTF.cjs');
18
+ var _chunkSCWW2SNXcjs = require('./chunk-SCWW2SNX.cjs');
19
19
 
20
20
 
21
21
  var _chunkAYA3UT4Lcjs = require('./chunk-AYA3UT4L.cjs');
@@ -42,7 +42,6 @@ function dedupeCommonParameters(parameters, commonParameters) {
42
42
 
43
43
  // src/samples/index.ts
44
44
  var _jsonschemamergeallof = require('json-schema-merge-allof'); var _jsonschemamergeallof2 = _interopRequireDefault(_jsonschemamergeallof);
45
- var _memoizee = require('memoizee'); var _memoizee2 = _interopRequireDefault(_memoizee);
46
45
 
47
46
  // src/samples/utils.ts
48
47
  function usesPolymorphism(schema) {
@@ -56,7 +55,7 @@ function usesPolymorphism(schema) {
56
55
  return false;
57
56
  }
58
57
  function objectify(thing) {
59
- if (!_chunkC6QTUTTFcjs.isObject.call(void 0, thing)) {
58
+ if (!_chunkSCWW2SNXcjs.isObject.call(void 0, thing)) {
60
59
  return {};
61
60
  }
62
61
  return thing;
@@ -121,7 +120,7 @@ function sampleFromSchema(schema, opts = {}) {
121
120
  if (seenRefs.has(refToRelease)) {
122
121
  return void 0;
123
122
  }
124
- objectifySchema = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
123
+ objectifySchema = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
125
124
  if (!objectifySchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, objectifySchema)) {
126
125
  return void 0;
127
126
  }
@@ -139,7 +138,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
139
138
  const { example, additionalProperties, properties, items } = schema;
140
139
  const { includeReadOnly, includeWriteOnly } = opts;
141
140
  if (example !== void 0) {
142
- return _chunkC6QTUTTFcjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
141
+ return _chunkSCWW2SNXcjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
143
142
  }
144
143
  const hasPolymorphism = usesPolymorphism(schema);
145
144
  if (hasPolymorphism === "allOf") {
@@ -148,7 +147,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
148
147
  const resolvedAllOf = schema.allOf.map((subSchema) => {
149
148
  let sub = objectify(subSchema);
150
149
  if (definition && _chunk7PWF3F2Wcjs.isRef.call(void 0, sub)) {
151
- const resolved = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
150
+ const resolved = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
152
151
  if (resolved && !_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) {
153
152
  sub = resolved;
154
153
  }
@@ -255,14 +254,12 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
255
254
  }
256
255
  return primitive(schema);
257
256
  }
258
- var memo = _memoizee2.default.call(void 0, sampleFromSchema);
259
- var samples_default = memo;
260
257
 
261
258
  // src/operation/lib/get-mediatype-examples.ts
262
259
  function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {}) {
263
260
  if (mediaTypeObject.example) {
264
- mediaTypeObject.example = _chunkC6QTUTTFcjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
265
- if (mediaTypeObject.example === void 0 || _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
261
+ mediaTypeObject.example = _chunkSCWW2SNXcjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
262
+ if (mediaTypeObject.example === void 0 || _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
266
263
  return [];
267
264
  }
268
265
  return [
@@ -278,7 +275,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
278
275
  let example = examples[key];
279
276
  if (example !== null && typeof example === "object") {
280
277
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
281
- example = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, example, definition);
278
+ example = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, example, definition);
282
279
  if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
283
280
  return false;
284
281
  }
@@ -290,8 +287,8 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
290
287
  description = example.description;
291
288
  }
292
289
  if ("value" in example) {
293
- example.value = _chunkC6QTUTTFcjs.dereferenceRefDeep.call(void 0, example.value, definition);
294
- if (example.value === void 0 || _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
290
+ example.value = _chunkSCWW2SNXcjs.dereferenceRefDeep.call(void 0, example.value, definition);
291
+ if (example.value === void 0 || _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
295
292
  return false;
296
293
  }
297
294
  example = example.value;
@@ -308,10 +305,10 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
308
305
  }
309
306
  }
310
307
  if (mediaTypeObject.schema) {
311
- if (!_chunkC6QTUTTFcjs.matches_mimetype_default.xml(mediaType)) {
308
+ if (!_chunkSCWW2SNXcjs.matches_mimetype_default.xml(mediaType)) {
312
309
  return [
313
310
  {
314
- value: samples_default(structuredClone(mediaTypeObject.schema), {
311
+ value: sampleFromSchema(structuredClone(mediaTypeObject.schema), {
315
312
  ...opts,
316
313
  definition
317
314
  })
@@ -329,7 +326,7 @@ function getResponseExamples(operation, definition) {
329
326
  let onlyHeaders = false;
330
327
  if (!response) return false;
331
328
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
332
- response = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, definition);
329
+ response = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, definition);
333
330
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) return false;
334
331
  }
335
332
  const mediaTypes = {};
@@ -369,14 +366,14 @@ function getCallbackExamples(operation, definition) {
369
366
  let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
370
367
  if (!callback) return [];
371
368
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
372
- callback = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callback, definition);
369
+ callback = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callback, definition);
373
370
  if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) return [];
374
371
  }
375
372
  const items = Object.keys(callback).map((expression) => {
376
373
  let callbackPath = callback[expression];
377
374
  if (!callbackPath) return [];
378
375
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
379
- callbackPath = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackPath, definition);
376
+ callbackPath = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callbackPath, definition);
380
377
  if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) return [];
381
378
  }
382
379
  return Object.keys(callbackPath).map((method) => {
@@ -459,7 +456,7 @@ function getExampleGroups(operation) {
459
456
  Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
460
457
  let example = paramExample;
461
458
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
462
- example = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, example, operation.api);
459
+ example = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, example, operation.api);
463
460
  if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) return;
464
461
  }
465
462
  groups[exampleKey] = {
@@ -507,7 +504,7 @@ function getRequestBodyExamples(operation, definition) {
507
504
  if (!requestBody) {
508
505
  return [];
509
506
  } else if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
510
- requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, definition);
507
+ requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, requestBody, definition);
511
508
  }
512
509
  if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
513
510
  return [];
@@ -572,7 +569,7 @@ function getOperationId(path, method, operation, opts = {}) {
572
569
  }
573
570
 
574
571
  // src/operation/transformers/get-response-as-json-schema.ts
575
- var isJSON = _chunkC6QTUTTFcjs.matches_mimetype_default.json;
572
+ var isJSON = _chunkSCWW2SNXcjs.matches_mimetype_default.json;
576
573
  function buildHeadersSchema(response, schemaOptions) {
577
574
  const headersSchema = {
578
575
  type: "object",
@@ -585,7 +582,7 @@ function buildHeadersSchema(response, schemaOptions) {
585
582
  let headerEntry = _optionalChain([response, 'access', _44 => _44.headers, 'optionalAccess', _45 => _45[key]]);
586
583
  if (!headerEntry) return;
587
584
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) {
588
- headerEntry = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
585
+ headerEntry = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
589
586
  if (!headerEntry || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) return;
590
587
  }
591
588
  if (headerEntry.schema) {
@@ -593,10 +590,10 @@ function buildHeadersSchema(response, schemaOptions) {
593
590
  let headerSchema = header.schema;
594
591
  if (!headerSchema) return;
595
592
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) {
596
- headerSchema = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
593
+ headerSchema = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
597
594
  if (!headerSchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) return;
598
595
  }
599
- headersSchema.properties[key] = _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, _chunkC6QTUTTFcjs.cloneObject.call(void 0, headerSchema), {
596
+ headersSchema.properties[key] = _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, _chunkSCWW2SNXcjs.cloneObject.call(void 0, headerSchema), {
600
597
  addEnumsToDescriptions: true,
601
598
  ...schemaOptions
602
599
  });
@@ -650,32 +647,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
650
647
  }
651
648
  if (preferredContentType) {
652
649
  if (contentTypes.includes(preferredContentType)) {
653
- const schema2 = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[preferredContentType].schema);
650
+ const schema2 = _chunkSCWW2SNXcjs.cloneObject.call(void 0, content[preferredContentType].schema);
654
651
  if (!schema2) {
655
652
  return null;
656
653
  }
657
- return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
654
+ return _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
658
655
  }
659
656
  return null;
660
657
  }
661
658
  for (let i = 0; i < contentTypes.length; i++) {
662
659
  if (isJSON(contentTypes[i])) {
663
- const schema2 = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
660
+ const schema2 = _chunkSCWW2SNXcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
664
661
  if (!schema2) {
665
662
  return {};
666
663
  }
667
- return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
664
+ return _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
668
665
  }
669
666
  }
670
667
  const contentType = contentTypes.shift();
671
668
  if (!contentType) {
672
669
  return {};
673
670
  }
674
- const schema = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[contentType].schema);
671
+ const schema = _chunkSCWW2SNXcjs.cloneObject.call(void 0, content[contentType].schema);
675
672
  if (!schema) {
676
673
  return {};
677
674
  }
678
- return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
675
+ return _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
679
676
  }
680
677
  const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _46 => _46.contentType]));
681
678
  if (_optionalChain([opts, 'optionalAccess', _47 => _47.contentType]) && !foundSchema) {
@@ -694,23 +691,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
694
691
  // able to render so instead of generating a JSON Schema with an `undefined` type we should
695
692
  // default to `string` so there's at least *something* the end-user can interact with.
696
693
  type: _nullishCoalesce(schemaType, () => ( "string")),
697
- schema: _chunkC6QTUTTFcjs.isPrimitive.call(void 0, schema) ? schema : {
694
+ schema: _chunkSCWW2SNXcjs.isPrimitive.call(void 0, schema) ? schema : {
698
695
  ...schema,
699
- $schema: _chunkC6QTUTTFcjs.getSchemaVersionString.call(void 0, schema, api)
696
+ $schema: _chunkSCWW2SNXcjs.getSchemaVersionString.call(void 0, schema, api)
700
697
  },
701
698
  label: "Response body"
702
699
  };
703
700
  if (response.description && schemaWrapper.schema) {
704
701
  schemaWrapper.description = response.description;
705
702
  }
706
- _chunkC6QTUTTFcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
703
+ _chunkSCWW2SNXcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
707
704
  if (usedSchemas.has(ref)) {
708
705
  return usedSchemas.get(ref);
709
706
  }
710
707
  try {
711
- const resolved = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
708
+ const resolved = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
712
709
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) return;
713
- const converted = _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
710
+ const converted = _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
714
711
  ...baseSchemaOptions,
715
712
  seenRefs
716
713
  });
@@ -720,11 +717,11 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
720
717
  }
721
718
  });
722
719
  if (schemaWrapper.schema && usedSchemas.size > 0) {
723
- const refsInOutput = _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
720
+ const refsInOutput = _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
724
721
  const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
725
- const referencedSchemas = _chunkC6QTUTTFcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
722
+ const referencedSchemas = _chunkSCWW2SNXcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
726
723
  if (referencedSchemas.size > 0) {
727
- _chunkC6QTUTTFcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
724
+ _chunkSCWW2SNXcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
728
725
  }
729
726
  }
730
727
  jsonSchema.push(schemaWrapper);
@@ -736,10 +733,10 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
736
733
  });
737
734
  if (headersWrapper.schema && usedSchemas.size > 0) {
738
735
  const refsInGroup = _nullishCoalesce(refsByGroup.get("headers"), () => ( /* @__PURE__ */ new Set()));
739
- const refsInOutput = _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
740
- const referencedSchemas = _chunkC6QTUTTFcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
736
+ const refsInOutput = _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
737
+ const referencedSchemas = _chunkSCWW2SNXcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
741
738
  if (referencedSchemas.size > 0) {
742
- _chunkC6QTUTTFcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
739
+ _chunkSCWW2SNXcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
743
740
  }
744
741
  }
745
742
  jsonSchema.push(headersWrapper);
@@ -879,7 +876,7 @@ var Operation = (_class = class {
879
876
  let types = [];
880
877
  if (this.schema.requestBody) {
881
878
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.requestBody)) {
882
- this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
879
+ this.schema.requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
883
880
  }
884
881
  if (this.schema.requestBody && "content" in this.schema.requestBody) {
885
882
  types = Object.keys(this.schema.requestBody.content);
@@ -890,7 +887,7 @@ var Operation = (_class = class {
890
887
  this.contentType = types[0];
891
888
  }
892
889
  types.forEach((t) => {
893
- if (_chunkC6QTUTTFcjs.matches_mimetype_default.json(t)) {
890
+ if (_chunkSCWW2SNXcjs.matches_mimetype_default.json(t)) {
894
891
  this.contentType = t;
895
892
  }
896
893
  });
@@ -903,7 +900,7 @@ var Operation = (_class = class {
903
900
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
904
901
  */
905
902
  isFormUrlEncoded() {
906
- return _chunkC6QTUTTFcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
903
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
907
904
  }
908
905
  /**
909
906
  * Checks if the current operation has a mutipart content type payload.
@@ -912,7 +909,7 @@ var Operation = (_class = class {
912
909
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
913
910
  */
914
911
  isMultipart() {
915
- return _chunkC6QTUTTFcjs.matches_mimetype_default.multipart(this.getContentType());
912
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.multipart(this.getContentType());
916
913
  }
917
914
  /**
918
915
  * Checks if the current operation has a JSON-like content type payload.
@@ -921,7 +918,7 @@ var Operation = (_class = class {
921
918
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
922
919
  */
923
920
  isJson() {
924
- return _chunkC6QTUTTFcjs.matches_mimetype_default.json(this.getContentType());
921
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.json(this.getContentType());
925
922
  }
926
923
  /**
927
924
  * Checks if the current operation has an XML content type payload.
@@ -930,7 +927,7 @@ var Operation = (_class = class {
930
927
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
931
928
  */
932
929
  isXml() {
933
- return _chunkC6QTUTTFcjs.matches_mimetype_default.xml(this.getContentType());
930
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.xml(this.getContentType());
934
931
  }
935
932
  /**
936
933
  * Checks if the current operation is a webhook or not.
@@ -978,7 +975,7 @@ var Operation = (_class = class {
978
975
  security = _optionalChain([this, 'access', _64 => _64.api, 'optionalAccess', _65 => _65.components, 'optionalAccess', _66 => _66.securitySchemes, 'optionalAccess', _67 => _67[key]]);
979
976
  if (!security) return false;
980
977
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, security)) {
981
- security = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, security, this.api);
978
+ security = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, security, this.api);
982
979
  if (!security || _chunk7PWF3F2Wcjs.isRef.call(void 0, security)) return false;
983
980
  }
984
981
  } catch (e4) {
@@ -1059,7 +1056,7 @@ var Operation = (_class = class {
1059
1056
  this.schema.parameters.map((p) => {
1060
1057
  let param = p;
1061
1058
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1062
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1059
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1063
1060
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1064
1061
  }
1065
1062
  if (param.in && param.in === "header") return param.name;
@@ -1072,7 +1069,7 @@ var Operation = (_class = class {
1072
1069
  let response = this.schema.responses[r];
1073
1070
  if (!response) return [];
1074
1071
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1075
- this.schema.responses[r] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
1072
+ this.schema.responses[r] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, this.api);
1076
1073
  response = this.schema.responses[r];
1077
1074
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1078
1075
  return [];
@@ -1085,7 +1082,7 @@ var Operation = (_class = class {
1085
1082
  let requestBody = this.schema.requestBody;
1086
1083
  if (requestBody) {
1087
1084
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1088
- this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, this.api);
1085
+ this.schema.requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, requestBody, this.api);
1089
1086
  requestBody = this.schema.requestBody;
1090
1087
  }
1091
1088
  if (requestBody && !_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
@@ -1098,7 +1095,7 @@ var Operation = (_class = class {
1098
1095
  let response = _optionalChain([this, 'access', _71 => _71.schema, 'access', _72 => _72.responses, 'optionalAccess', _73 => _73[r]]);
1099
1096
  if (!response) return false;
1100
1097
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1101
- this.schema.responses[r] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
1098
+ this.schema.responses[r] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, this.api);
1102
1099
  response = this.schema.responses[r];
1103
1100
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1104
1101
  return false;
@@ -1208,7 +1205,7 @@ var Operation = (_class = class {
1208
1205
  let parameters = (_optionalChain([this, 'access', _76 => _76.schema, 'optionalAccess', _77 => _77.parameters]) || []).map((p) => {
1209
1206
  let param = p;
1210
1207
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1211
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1208
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1212
1209
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1213
1210
  }
1214
1211
  return param;
@@ -1216,7 +1213,7 @@ var Operation = (_class = class {
1216
1213
  const commonParams = (_optionalChain([this, 'access', _78 => _78.api, 'optionalAccess', _79 => _79.paths, 'optionalAccess', _80 => _80[this.path], 'optionalAccess', _81 => _81.parameters]) || []).map((p) => {
1217
1214
  let param = p;
1218
1215
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1219
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1216
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1220
1217
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1221
1218
  }
1222
1219
  return param;
@@ -1254,10 +1251,10 @@ var Operation = (_class = class {
1254
1251
  );
1255
1252
  }
1256
1253
  if (!this.schemasDecorated) {
1257
- _chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1254
+ _chunkSCWW2SNXcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1258
1255
  this.schemasDecorated = true;
1259
1256
  }
1260
- return _chunkC6QTUTTFcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1257
+ return _chunkSCWW2SNXcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1261
1258
  includeDiscriminatorMappingRefs: true,
1262
1259
  ...opts
1263
1260
  });
@@ -1282,7 +1279,7 @@ var Operation = (_class = class {
1282
1279
  );
1283
1280
  }
1284
1281
  if (!this.schemasDecorated) {
1285
- _chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1282
+ _chunkSCWW2SNXcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1286
1283
  this.schemasDecorated = true;
1287
1284
  }
1288
1285
  return getResponseAsJSONSchema(this, this.api, statusCode, {
@@ -1297,7 +1294,7 @@ var Operation = (_class = class {
1297
1294
  getResponseStatusCodes() {
1298
1295
  if (!this.schema.responses) return [];
1299
1296
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
1300
- this.schema.responses = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1297
+ this.schema.responses = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1301
1298
  if (!this.schema.responses || _chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
1302
1299
  return [];
1303
1300
  }
@@ -1323,7 +1320,7 @@ var Operation = (_class = class {
1323
1320
  let resp = response;
1324
1321
  if (!resp) return;
1325
1322
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
1326
- resp = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, resp, this.api);
1323
+ resp = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, resp, this.api);
1327
1324
  if (!resp || _chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
1328
1325
  return;
1329
1326
  }
@@ -1352,7 +1349,7 @@ var Operation = (_class = class {
1352
1349
  let requestBody = this.schema.requestBody;
1353
1350
  if (!requestBody) return false;
1354
1351
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1355
- this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, this.api);
1352
+ this.schema.requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, requestBody, this.api);
1356
1353
  requestBody = this.schema.requestBody;
1357
1354
  if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1358
1355
  return false;
@@ -1426,7 +1423,7 @@ var Operation = (_class = class {
1426
1423
  let availableMediaType;
1427
1424
  const mediaTypes = this.getRequestBodyMediaTypes();
1428
1425
  mediaTypes.forEach((mt) => {
1429
- if (!availableMediaType && _chunkC6QTUTTFcjs.matches_mimetype_default.json(mt)) {
1426
+ if (!availableMediaType && _chunkSCWW2SNXcjs.matches_mimetype_default.json(mt)) {
1430
1427
  availableMediaType = mt;
1431
1428
  }
1432
1429
  });
@@ -1474,7 +1471,7 @@ var Operation = (_class = class {
1474
1471
  let response = this.schema.responses[statusCode];
1475
1472
  if (!response) return false;
1476
1473
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1477
- this.schema.responses[statusCode] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
1474
+ this.schema.responses[statusCode] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, this.api);
1478
1475
  response = this.schema.responses[statusCode];
1479
1476
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1480
1477
  return false;
@@ -1518,7 +1515,7 @@ var Operation = (_class = class {
1518
1515
  let callbackObj = this.schema.callbacks[identifier];
1519
1516
  if (!callbackObj) return false;
1520
1517
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
1521
- this.schema.callbacks[identifier] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1518
+ this.schema.callbacks[identifier] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1522
1519
  callbackObj = this.schema.callbacks[identifier];
1523
1520
  if (!callbackObj || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
1524
1521
  return false;
@@ -1527,7 +1524,7 @@ var Operation = (_class = class {
1527
1524
  let callback = callbackObj[expression];
1528
1525
  if (!callback) return false;
1529
1526
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
1530
- callbackObj[expression] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callback, this.api);
1527
+ callbackObj[expression] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callback, this.api);
1531
1528
  callback = callbackObj[expression];
1532
1529
  if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
1533
1530
  return false;
@@ -1551,7 +1548,7 @@ var Operation = (_class = class {
1551
1548
  let cb = _optionalChain([this, 'access', _90 => _90.schema, 'access', _91 => _91.callbacks, 'optionalAccess', _92 => _92[callback]]);
1552
1549
  if (!cb) return;
1553
1550
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
1554
- this.schema.callbacks[callback] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, cb, this.api);
1551
+ this.schema.callbacks[callback] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, cb, this.api);
1555
1552
  cb = this.schema.callbacks[callback];
1556
1553
  if (!cb || _chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
1557
1554
  return;
@@ -1561,14 +1558,14 @@ var Operation = (_class = class {
1561
1558
  let callbackPath = cb[expression];
1562
1559
  if (!callbackPath) return;
1563
1560
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
1564
- cb[expression] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1561
+ cb[expression] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1565
1562
  callbackPath = cb[expression];
1566
1563
  if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
1567
1564
  return;
1568
1565
  }
1569
1566
  }
1570
1567
  Object.keys(callbackPath).forEach((method) => {
1571
- if (!_chunkC6QTUTTFcjs.supportedMethods.includes(method)) return;
1568
+ if (!_chunkSCWW2SNXcjs.supportedMethods.includes(method)) return;
1572
1569
  const found = this.getCallback(callback, expression, method);
1573
1570
  if (found) {
1574
1571
  callbacks.push(found);
@@ -1646,12 +1643,12 @@ var Operation = (_class = class {
1646
1643
  }
1647
1644
  this.dereferencing.processing = true;
1648
1645
  if (!this.schemasDecorated) {
1649
- _chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1646
+ _chunkSCWW2SNXcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1650
1647
  this.schemasDecorated = true;
1651
1648
  }
1652
1649
  const { api, schema, promises } = this;
1653
1650
  const circularRefs = /* @__PURE__ */ new Set();
1654
- const dereferencingOptions = _chunkC6QTUTTFcjs.getDereferencingOptions.call(void 0, circularRefs);
1651
+ const dereferencingOptions = _chunkSCWW2SNXcjs.getDereferencingOptions.call(void 0, circularRefs);
1655
1652
  const parser = new (0, _jsonschemarefparser.$RefParser)();
1656
1653
  return parser.dereference(
1657
1654
  "#/__INTERNAL__",
@@ -1793,7 +1790,7 @@ var Callback = class extends Operation {
1793
1790
  let parameters = (_optionalChain([this, 'access', _100 => _100.schema, 'optionalAccess', _101 => _101.parameters]) || []).map((p) => {
1794
1791
  let param = p;
1795
1792
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1796
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1793
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1797
1794
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1798
1795
  }
1799
1796
  return param;
@@ -1801,7 +1798,7 @@ var Callback = class extends Operation {
1801
1798
  const commonParams = (this.parentSchema.parameters || []).map((p) => {
1802
1799
  let param = p;
1803
1800
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1804
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1801
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1805
1802
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1806
1803
  }
1807
1804
  return param;
@@ -1827,7 +1824,7 @@ var Webhook = class extends Operation {
1827
1824
  }
1828
1825
  let webhookPath = this.api.webhooks[this.path];
1829
1826
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
1830
- this.api.webhooks[this.path] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1827
+ this.api.webhooks[this.path] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1831
1828
  webhookPath = this.api.webhooks[this.path];
1832
1829
  }
1833
1830
  return _optionalChain([webhookPath, 'optionalAccess', _104 => _104.summary]);
@@ -1846,7 +1843,7 @@ var Webhook = class extends Operation {
1846
1843
  }
1847
1844
  let webhookPath = this.api.webhooks[this.path];
1848
1845
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
1849
- this.api.webhooks[this.path] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1846
+ this.api.webhooks[this.path] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1850
1847
  webhookPath = this.api.webhooks[this.path];
1851
1848
  }
1852
1849
  return _optionalChain([webhookPath, 'optionalAccess', _107 => _107.description]);
@@ -1870,4 +1867,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
1870
1867
  * @license Apache-2.0
1871
1868
  * @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
1872
1869
  */
1873
- //# sourceMappingURL=chunk-O2NUKZ7L.cjs.map
1870
+ //# sourceMappingURL=chunk-BJCTM2ME.cjs.map