oas 36.0.1 → 36.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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');
@@ -56,7 +56,7 @@ function usesPolymorphism(schema) {
56
56
  return false;
57
57
  }
58
58
  function objectify(thing) {
59
- if (!_chunkC6QTUTTFcjs.isObject.call(void 0, thing)) {
59
+ if (!_chunkSCWW2SNXcjs.isObject.call(void 0, thing)) {
60
60
  return {};
61
61
  }
62
62
  return thing;
@@ -121,7 +121,7 @@ function sampleFromSchema(schema, opts = {}) {
121
121
  if (seenRefs.has(refToRelease)) {
122
122
  return void 0;
123
123
  }
124
- objectifySchema = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
124
+ objectifySchema = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, objectifySchema, opts.definition, seenRefs);
125
125
  if (!objectifySchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, objectifySchema)) {
126
126
  return void 0;
127
127
  }
@@ -139,7 +139,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
139
139
  const { example, additionalProperties, properties, items } = schema;
140
140
  const { includeReadOnly, includeWriteOnly } = opts;
141
141
  if (example !== void 0) {
142
- return _chunkC6QTUTTFcjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
142
+ return _chunkSCWW2SNXcjs.dereferenceRefDeep.call(void 0, example, opts.definition, seenRefs);
143
143
  }
144
144
  const hasPolymorphism = usesPolymorphism(schema);
145
145
  if (hasPolymorphism === "allOf") {
@@ -148,7 +148,7 @@ function sampleFromResolvedSchema(schema, opts, seenRefs) {
148
148
  const resolvedAllOf = schema.allOf.map((subSchema) => {
149
149
  let sub = objectify(subSchema);
150
150
  if (definition && _chunk7PWF3F2Wcjs.isRef.call(void 0, sub)) {
151
- const resolved = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
151
+ const resolved = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, sub, definition, /* @__PURE__ */ new Set());
152
152
  if (resolved && !_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) {
153
153
  sub = resolved;
154
154
  }
@@ -261,8 +261,8 @@ 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
- 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) {
264
+ mediaTypeObject.example = _chunkSCWW2SNXcjs.dereferenceRefDeep.call(void 0, mediaTypeObject.example, definition);
265
+ if (mediaTypeObject.example === void 0 || _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, mediaTypeObject.example).size > 0) {
266
266
  return [];
267
267
  }
268
268
  return [
@@ -278,7 +278,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
278
278
  let example = examples[key];
279
279
  if (example !== null && typeof example === "object") {
280
280
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
281
- example = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, example, definition);
281
+ example = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, example, definition);
282
282
  if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
283
283
  return false;
284
284
  }
@@ -290,8 +290,8 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
290
290
  description = example.description;
291
291
  }
292
292
  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) {
293
+ example.value = _chunkSCWW2SNXcjs.dereferenceRefDeep.call(void 0, example.value, definition);
294
+ if (example.value === void 0 || _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, example.value).size > 0) {
295
295
  return false;
296
296
  }
297
297
  example = example.value;
@@ -308,7 +308,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, definition, opts = {})
308
308
  }
309
309
  }
310
310
  if (mediaTypeObject.schema) {
311
- if (!_chunkC6QTUTTFcjs.matches_mimetype_default.xml(mediaType)) {
311
+ if (!_chunkSCWW2SNXcjs.matches_mimetype_default.xml(mediaType)) {
312
312
  return [
313
313
  {
314
314
  value: samples_default(structuredClone(mediaTypeObject.schema), {
@@ -329,7 +329,7 @@ function getResponseExamples(operation, definition) {
329
329
  let onlyHeaders = false;
330
330
  if (!response) return false;
331
331
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
332
- response = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, definition);
332
+ response = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, definition);
333
333
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) return false;
334
334
  }
335
335
  const mediaTypes = {};
@@ -369,14 +369,14 @@ function getCallbackExamples(operation, definition) {
369
369
  let callback = _optionalChain([operation, 'access', _16 => _16.callbacks, 'optionalAccess', _17 => _17[identifier]]);
370
370
  if (!callback) return [];
371
371
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
372
- callback = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callback, definition);
372
+ callback = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callback, definition);
373
373
  if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) return [];
374
374
  }
375
375
  const items = Object.keys(callback).map((expression) => {
376
376
  let callbackPath = callback[expression];
377
377
  if (!callbackPath) return [];
378
378
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
379
- callbackPath = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackPath, definition);
379
+ callbackPath = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callbackPath, definition);
380
380
  if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) return [];
381
381
  }
382
382
  return Object.keys(callbackPath).map((method) => {
@@ -459,7 +459,7 @@ function getExampleGroups(operation) {
459
459
  Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
460
460
  let example = paramExample;
461
461
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, example)) {
462
- example = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, example, operation.api);
462
+ example = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, example, operation.api);
463
463
  if (!example || _chunk7PWF3F2Wcjs.isRef.call(void 0, example)) return;
464
464
  }
465
465
  groups[exampleKey] = {
@@ -507,7 +507,7 @@ function getRequestBodyExamples(operation, definition) {
507
507
  if (!requestBody) {
508
508
  return [];
509
509
  } else if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
510
- requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, definition);
510
+ requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, requestBody, definition);
511
511
  }
512
512
  if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) || !requestBody.content) {
513
513
  return [];
@@ -572,7 +572,7 @@ function getOperationId(path, method, operation, opts = {}) {
572
572
  }
573
573
 
574
574
  // src/operation/transformers/get-response-as-json-schema.ts
575
- var isJSON = _chunkC6QTUTTFcjs.matches_mimetype_default.json;
575
+ var isJSON = _chunkSCWW2SNXcjs.matches_mimetype_default.json;
576
576
  function buildHeadersSchema(response, schemaOptions) {
577
577
  const headersSchema = {
578
578
  type: "object",
@@ -585,7 +585,7 @@ function buildHeadersSchema(response, schemaOptions) {
585
585
  let headerEntry = _optionalChain([response, 'access', _44 => _44.headers, 'optionalAccess', _45 => _45[key]]);
586
586
  if (!headerEntry) return;
587
587
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) {
588
- headerEntry = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
588
+ headerEntry = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, headerEntry, api, seenRefs);
589
589
  if (!headerEntry || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerEntry)) return;
590
590
  }
591
591
  if (headerEntry.schema) {
@@ -593,10 +593,10 @@ function buildHeadersSchema(response, schemaOptions) {
593
593
  let headerSchema = header.schema;
594
594
  if (!headerSchema) return;
595
595
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) {
596
- headerSchema = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
596
+ headerSchema = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, headerSchema, api, seenRefs);
597
597
  if (!headerSchema || _chunk7PWF3F2Wcjs.isRef.call(void 0, headerSchema)) return;
598
598
  }
599
- headersSchema.properties[key] = _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, _chunkC6QTUTTFcjs.cloneObject.call(void 0, headerSchema), {
599
+ headersSchema.properties[key] = _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, _chunkSCWW2SNXcjs.cloneObject.call(void 0, headerSchema), {
600
600
  addEnumsToDescriptions: true,
601
601
  ...schemaOptions
602
602
  });
@@ -650,32 +650,32 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
650
650
  }
651
651
  if (preferredContentType) {
652
652
  if (contentTypes.includes(preferredContentType)) {
653
- const schema2 = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[preferredContentType].schema);
653
+ const schema2 = _chunkSCWW2SNXcjs.cloneObject.call(void 0, content[preferredContentType].schema);
654
654
  if (!schema2) {
655
655
  return null;
656
656
  }
657
- return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
657
+ return _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
658
658
  }
659
659
  return null;
660
660
  }
661
661
  for (let i = 0; i < contentTypes.length; i++) {
662
662
  if (isJSON(contentTypes[i])) {
663
- const schema2 = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
663
+ const schema2 = _chunkSCWW2SNXcjs.cloneObject.call(void 0, content[contentTypes[i]].schema);
664
664
  if (!schema2) {
665
665
  return {};
666
666
  }
667
- return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
667
+ return _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, schema2, baseSchemaOptions);
668
668
  }
669
669
  }
670
670
  const contentType = contentTypes.shift();
671
671
  if (!contentType) {
672
672
  return {};
673
673
  }
674
- const schema = _chunkC6QTUTTFcjs.cloneObject.call(void 0, content[contentType].schema);
674
+ const schema = _chunkSCWW2SNXcjs.cloneObject.call(void 0, content[contentType].schema);
675
675
  if (!schema) {
676
676
  return {};
677
677
  }
678
- return _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
678
+ return _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, schema, baseSchemaOptions);
679
679
  }
680
680
  const foundSchema = getPreferredSchema(response.content, _optionalChain([opts, 'optionalAccess', _46 => _46.contentType]));
681
681
  if (_optionalChain([opts, 'optionalAccess', _47 => _47.contentType]) && !foundSchema) {
@@ -694,23 +694,23 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
694
694
  // able to render so instead of generating a JSON Schema with an `undefined` type we should
695
695
  // default to `string` so there's at least *something* the end-user can interact with.
696
696
  type: _nullishCoalesce(schemaType, () => ( "string")),
697
- schema: _chunkC6QTUTTFcjs.isPrimitive.call(void 0, schema) ? schema : {
697
+ schema: _chunkSCWW2SNXcjs.isPrimitive.call(void 0, schema) ? schema : {
698
698
  ...schema,
699
- $schema: _chunkC6QTUTTFcjs.getSchemaVersionString.call(void 0, schema, api)
699
+ $schema: _chunkSCWW2SNXcjs.getSchemaVersionString.call(void 0, schema, api)
700
700
  },
701
701
  label: "Response body"
702
702
  };
703
703
  if (response.description && schemaWrapper.schema) {
704
704
  schemaWrapper.description = response.description;
705
705
  }
706
- _chunkC6QTUTTFcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
706
+ _chunkSCWW2SNXcjs.applyDiscriminatorOneOfToUsedSchemas.call(void 0, api, usedSchemas, (ref) => {
707
707
  if (usedSchemas.has(ref)) {
708
708
  return usedSchemas.get(ref);
709
709
  }
710
710
  try {
711
- const resolved = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
711
+ const resolved = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, { $ref: ref }, api, seenRefs);
712
712
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resolved)) return;
713
- const converted = _chunkC6QTUTTFcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
713
+ const converted = _chunkSCWW2SNXcjs.toJSONSchema.call(void 0, structuredClone(resolved), {
714
714
  ...baseSchemaOptions,
715
715
  seenRefs
716
716
  });
@@ -720,11 +720,11 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
720
720
  }
721
721
  });
722
722
  if (schemaWrapper.schema && usedSchemas.size > 0) {
723
- const refsInOutput = _chunkC6QTUTTFcjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
723
+ const refsInOutput = _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, schemaWrapper.schema);
724
724
  const refsInGroup = _nullishCoalesce(refsByGroup.get("body"), () => ( /* @__PURE__ */ new Set()));
725
- const referencedSchemas = _chunkC6QTUTTFcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
725
+ const referencedSchemas = _chunkSCWW2SNXcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
726
726
  if (referencedSchemas.size > 0) {
727
- _chunkC6QTUTTFcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
727
+ _chunkSCWW2SNXcjs.mergeReferencedSchemasIntoRoot.call(void 0, schemaWrapper.schema, referencedSchemas);
728
728
  }
729
729
  }
730
730
  jsonSchema.push(schemaWrapper);
@@ -736,10 +736,10 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
736
736
  });
737
737
  if (headersWrapper.schema && usedSchemas.size > 0) {
738
738
  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);
739
+ const refsInOutput = _chunkSCWW2SNXcjs.collectRefsInSchema.call(void 0, headersWrapper.schema);
740
+ const referencedSchemas = _chunkSCWW2SNXcjs.filterRequiredRefsToReferenced.call(void 0, /* @__PURE__ */ new Set([...refsInGroup, ...refsInOutput]), usedSchemas);
741
741
  if (referencedSchemas.size > 0) {
742
- _chunkC6QTUTTFcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
742
+ _chunkSCWW2SNXcjs.mergeReferencedSchemasIntoRoot.call(void 0, headersWrapper.schema, referencedSchemas);
743
743
  }
744
744
  }
745
745
  jsonSchema.push(headersWrapper);
@@ -879,7 +879,7 @@ var Operation = (_class = class {
879
879
  let types = [];
880
880
  if (this.schema.requestBody) {
881
881
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.requestBody)) {
882
- this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
882
+ this.schema.requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, this.schema.requestBody, this.api);
883
883
  }
884
884
  if (this.schema.requestBody && "content" in this.schema.requestBody) {
885
885
  types = Object.keys(this.schema.requestBody.content);
@@ -890,7 +890,7 @@ var Operation = (_class = class {
890
890
  this.contentType = types[0];
891
891
  }
892
892
  types.forEach((t) => {
893
- if (_chunkC6QTUTTFcjs.matches_mimetype_default.json(t)) {
893
+ if (_chunkSCWW2SNXcjs.matches_mimetype_default.json(t)) {
894
894
  this.contentType = t;
895
895
  }
896
896
  });
@@ -903,7 +903,7 @@ var Operation = (_class = class {
903
903
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
904
904
  */
905
905
  isFormUrlEncoded() {
906
- return _chunkC6QTUTTFcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
906
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.formUrlEncoded(this.getContentType());
907
907
  }
908
908
  /**
909
909
  * Checks if the current operation has a mutipart content type payload.
@@ -912,7 +912,7 @@ var Operation = (_class = class {
912
912
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
913
913
  */
914
914
  isMultipart() {
915
- return _chunkC6QTUTTFcjs.matches_mimetype_default.multipart(this.getContentType());
915
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.multipart(this.getContentType());
916
916
  }
917
917
  /**
918
918
  * Checks if the current operation has a JSON-like content type payload.
@@ -921,7 +921,7 @@ var Operation = (_class = class {
921
921
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
922
922
  */
923
923
  isJson() {
924
- return _chunkC6QTUTTFcjs.matches_mimetype_default.json(this.getContentType());
924
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.json(this.getContentType());
925
925
  }
926
926
  /**
927
927
  * Checks if the current operation has an XML content type payload.
@@ -930,7 +930,7 @@ var Operation = (_class = class {
930
930
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
931
931
  */
932
932
  isXml() {
933
- return _chunkC6QTUTTFcjs.matches_mimetype_default.xml(this.getContentType());
933
+ return _chunkSCWW2SNXcjs.matches_mimetype_default.xml(this.getContentType());
934
934
  }
935
935
  /**
936
936
  * Checks if the current operation is a webhook or not.
@@ -978,7 +978,7 @@ var Operation = (_class = class {
978
978
  security = _optionalChain([this, 'access', _64 => _64.api, 'optionalAccess', _65 => _65.components, 'optionalAccess', _66 => _66.securitySchemes, 'optionalAccess', _67 => _67[key]]);
979
979
  if (!security) return false;
980
980
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, security)) {
981
- security = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, security, this.api);
981
+ security = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, security, this.api);
982
982
  if (!security || _chunk7PWF3F2Wcjs.isRef.call(void 0, security)) return false;
983
983
  }
984
984
  } catch (e4) {
@@ -1059,7 +1059,7 @@ var Operation = (_class = class {
1059
1059
  this.schema.parameters.map((p) => {
1060
1060
  let param = p;
1061
1061
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1062
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1062
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1063
1063
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1064
1064
  }
1065
1065
  if (param.in && param.in === "header") return param.name;
@@ -1072,7 +1072,7 @@ var Operation = (_class = class {
1072
1072
  let response = this.schema.responses[r];
1073
1073
  if (!response) return [];
1074
1074
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1075
- this.schema.responses[r] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
1075
+ this.schema.responses[r] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, this.api);
1076
1076
  response = this.schema.responses[r];
1077
1077
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1078
1078
  return [];
@@ -1085,7 +1085,7 @@ var Operation = (_class = class {
1085
1085
  let requestBody = this.schema.requestBody;
1086
1086
  if (requestBody) {
1087
1087
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1088
- this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, this.api);
1088
+ this.schema.requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, requestBody, this.api);
1089
1089
  requestBody = this.schema.requestBody;
1090
1090
  }
1091
1091
  if (requestBody && !_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
@@ -1098,7 +1098,7 @@ var Operation = (_class = class {
1098
1098
  let response = _optionalChain([this, 'access', _71 => _71.schema, 'access', _72 => _72.responses, 'optionalAccess', _73 => _73[r]]);
1099
1099
  if (!response) return false;
1100
1100
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1101
- this.schema.responses[r] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
1101
+ this.schema.responses[r] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, this.api);
1102
1102
  response = this.schema.responses[r];
1103
1103
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1104
1104
  return false;
@@ -1208,7 +1208,7 @@ var Operation = (_class = class {
1208
1208
  let parameters = (_optionalChain([this, 'access', _76 => _76.schema, 'optionalAccess', _77 => _77.parameters]) || []).map((p) => {
1209
1209
  let param = p;
1210
1210
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1211
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1211
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1212
1212
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1213
1213
  }
1214
1214
  return param;
@@ -1216,7 +1216,7 @@ var Operation = (_class = class {
1216
1216
  const commonParams = (_optionalChain([this, 'access', _78 => _78.api, 'optionalAccess', _79 => _79.paths, 'optionalAccess', _80 => _80[this.path], 'optionalAccess', _81 => _81.parameters]) || []).map((p) => {
1217
1217
  let param = p;
1218
1218
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1219
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1219
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1220
1220
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1221
1221
  }
1222
1222
  return param;
@@ -1254,10 +1254,10 @@ var Operation = (_class = class {
1254
1254
  );
1255
1255
  }
1256
1256
  if (!this.schemasDecorated) {
1257
- _chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1257
+ _chunkSCWW2SNXcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1258
1258
  this.schemasDecorated = true;
1259
1259
  }
1260
- return _chunkC6QTUTTFcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1260
+ return _chunkSCWW2SNXcjs.getParametersAsJSONSchema.call(void 0, this, this.api, {
1261
1261
  includeDiscriminatorMappingRefs: true,
1262
1262
  ...opts
1263
1263
  });
@@ -1282,7 +1282,7 @@ var Operation = (_class = class {
1282
1282
  );
1283
1283
  }
1284
1284
  if (!this.schemasDecorated) {
1285
- _chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1285
+ _chunkSCWW2SNXcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1286
1286
  this.schemasDecorated = true;
1287
1287
  }
1288
1288
  return getResponseAsJSONSchema(this, this.api, statusCode, {
@@ -1297,7 +1297,7 @@ var Operation = (_class = class {
1297
1297
  getResponseStatusCodes() {
1298
1298
  if (!this.schema.responses) return [];
1299
1299
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
1300
- this.schema.responses = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1300
+ this.schema.responses = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, this.schema.responses, this.api);
1301
1301
  if (!this.schema.responses || _chunk7PWF3F2Wcjs.isRef.call(void 0, this.schema.responses)) {
1302
1302
  return [];
1303
1303
  }
@@ -1323,7 +1323,7 @@ var Operation = (_class = class {
1323
1323
  let resp = response;
1324
1324
  if (!resp) return;
1325
1325
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
1326
- resp = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, resp, this.api);
1326
+ resp = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, resp, this.api);
1327
1327
  if (!resp || _chunk7PWF3F2Wcjs.isRef.call(void 0, resp)) {
1328
1328
  return;
1329
1329
  }
@@ -1352,7 +1352,7 @@ var Operation = (_class = class {
1352
1352
  let requestBody = this.schema.requestBody;
1353
1353
  if (!requestBody) return false;
1354
1354
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1355
- this.schema.requestBody = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, requestBody, this.api);
1355
+ this.schema.requestBody = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, requestBody, this.api);
1356
1356
  requestBody = this.schema.requestBody;
1357
1357
  if (!requestBody || _chunk7PWF3F2Wcjs.isRef.call(void 0, requestBody)) {
1358
1358
  return false;
@@ -1426,7 +1426,7 @@ var Operation = (_class = class {
1426
1426
  let availableMediaType;
1427
1427
  const mediaTypes = this.getRequestBodyMediaTypes();
1428
1428
  mediaTypes.forEach((mt) => {
1429
- if (!availableMediaType && _chunkC6QTUTTFcjs.matches_mimetype_default.json(mt)) {
1429
+ if (!availableMediaType && _chunkSCWW2SNXcjs.matches_mimetype_default.json(mt)) {
1430
1430
  availableMediaType = mt;
1431
1431
  }
1432
1432
  });
@@ -1474,7 +1474,7 @@ var Operation = (_class = class {
1474
1474
  let response = this.schema.responses[statusCode];
1475
1475
  if (!response) return false;
1476
1476
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1477
- this.schema.responses[statusCode] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, response, this.api);
1477
+ this.schema.responses[statusCode] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, response, this.api);
1478
1478
  response = this.schema.responses[statusCode];
1479
1479
  if (!response || _chunk7PWF3F2Wcjs.isRef.call(void 0, response)) {
1480
1480
  return false;
@@ -1518,7 +1518,7 @@ var Operation = (_class = class {
1518
1518
  let callbackObj = this.schema.callbacks[identifier];
1519
1519
  if (!callbackObj) return false;
1520
1520
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
1521
- this.schema.callbacks[identifier] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1521
+ this.schema.callbacks[identifier] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callbackObj, this.api);
1522
1522
  callbackObj = this.schema.callbacks[identifier];
1523
1523
  if (!callbackObj || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackObj)) {
1524
1524
  return false;
@@ -1527,7 +1527,7 @@ var Operation = (_class = class {
1527
1527
  let callback = callbackObj[expression];
1528
1528
  if (!callback) return false;
1529
1529
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
1530
- callbackObj[expression] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callback, this.api);
1530
+ callbackObj[expression] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callback, this.api);
1531
1531
  callback = callbackObj[expression];
1532
1532
  if (!callback || _chunk7PWF3F2Wcjs.isRef.call(void 0, callback)) {
1533
1533
  return false;
@@ -1551,7 +1551,7 @@ var Operation = (_class = class {
1551
1551
  let cb = _optionalChain([this, 'access', _90 => _90.schema, 'access', _91 => _91.callbacks, 'optionalAccess', _92 => _92[callback]]);
1552
1552
  if (!cb) return;
1553
1553
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
1554
- this.schema.callbacks[callback] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, cb, this.api);
1554
+ this.schema.callbacks[callback] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, cb, this.api);
1555
1555
  cb = this.schema.callbacks[callback];
1556
1556
  if (!cb || _chunk7PWF3F2Wcjs.isRef.call(void 0, cb)) {
1557
1557
  return;
@@ -1561,14 +1561,14 @@ var Operation = (_class = class {
1561
1561
  let callbackPath = cb[expression];
1562
1562
  if (!callbackPath) return;
1563
1563
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
1564
- cb[expression] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1564
+ cb[expression] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, callbackPath, this.api);
1565
1565
  callbackPath = cb[expression];
1566
1566
  if (!callbackPath || _chunk7PWF3F2Wcjs.isRef.call(void 0, callbackPath)) {
1567
1567
  return;
1568
1568
  }
1569
1569
  }
1570
1570
  Object.keys(callbackPath).forEach((method) => {
1571
- if (!_chunkC6QTUTTFcjs.supportedMethods.includes(method)) return;
1571
+ if (!_chunkSCWW2SNXcjs.supportedMethods.includes(method)) return;
1572
1572
  const found = this.getCallback(callback, expression, method);
1573
1573
  if (found) {
1574
1574
  callbacks.push(found);
@@ -1646,12 +1646,12 @@ var Operation = (_class = class {
1646
1646
  }
1647
1647
  this.dereferencing.processing = true;
1648
1648
  if (!this.schemasDecorated) {
1649
- _chunkC6QTUTTFcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1649
+ _chunkSCWW2SNXcjs.decorateComponentSchemasWithRefName.call(void 0, this.api);
1650
1650
  this.schemasDecorated = true;
1651
1651
  }
1652
1652
  const { api, schema, promises } = this;
1653
1653
  const circularRefs = /* @__PURE__ */ new Set();
1654
- const dereferencingOptions = _chunkC6QTUTTFcjs.getDereferencingOptions.call(void 0, circularRefs);
1654
+ const dereferencingOptions = _chunkSCWW2SNXcjs.getDereferencingOptions.call(void 0, circularRefs);
1655
1655
  const parser = new (0, _jsonschemarefparser.$RefParser)();
1656
1656
  return parser.dereference(
1657
1657
  "#/__INTERNAL__",
@@ -1793,7 +1793,7 @@ var Callback = class extends Operation {
1793
1793
  let parameters = (_optionalChain([this, 'access', _100 => _100.schema, 'optionalAccess', _101 => _101.parameters]) || []).map((p) => {
1794
1794
  let param = p;
1795
1795
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1796
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1796
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1797
1797
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1798
1798
  }
1799
1799
  return param;
@@ -1801,7 +1801,7 @@ var Callback = class extends Operation {
1801
1801
  const commonParams = (this.parentSchema.parameters || []).map((p) => {
1802
1802
  let param = p;
1803
1803
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, param)) {
1804
- param = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, param, this.api);
1804
+ param = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, param, this.api);
1805
1805
  if (!param || _chunk7PWF3F2Wcjs.isRef.call(void 0, param)) return;
1806
1806
  }
1807
1807
  return param;
@@ -1827,7 +1827,7 @@ var Webhook = class extends Operation {
1827
1827
  }
1828
1828
  let webhookPath = this.api.webhooks[this.path];
1829
1829
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
1830
- this.api.webhooks[this.path] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1830
+ this.api.webhooks[this.path] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1831
1831
  webhookPath = this.api.webhooks[this.path];
1832
1832
  }
1833
1833
  return _optionalChain([webhookPath, 'optionalAccess', _104 => _104.summary]);
@@ -1846,7 +1846,7 @@ var Webhook = class extends Operation {
1846
1846
  }
1847
1847
  let webhookPath = this.api.webhooks[this.path];
1848
1848
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
1849
- this.api.webhooks[this.path] = _chunkC6QTUTTFcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1849
+ this.api.webhooks[this.path] = _chunkSCWW2SNXcjs.dereferenceRef.call(void 0, webhookPath, this.api);
1850
1850
  webhookPath = this.api.webhooks[this.path];
1851
1851
  }
1852
1852
  return _optionalChain([webhookPath, 'optionalAccess', _107 => _107.description]);
@@ -1870,4 +1870,4 @@ exports.Operation = Operation; exports.Callback = Callback; exports.Webhook = We
1870
1870
  * @license Apache-2.0
1871
1871
  * @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
1872
1872
  */
1873
- //# sourceMappingURL=chunk-O2NUKZ7L.cjs.map
1873
+ //# sourceMappingURL=chunk-UDN4U5TL.cjs.map