oas 38.5.2 → 38.6.0

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.
Files changed (59) hide show
  1. package/dist/analyzer/index.cjs +17 -17
  2. package/dist/analyzer/index.cjs.map +1 -1
  3. package/dist/analyzer/index.js +2 -2
  4. package/dist/analyzer/types.cjs.map +1 -1
  5. package/dist/{chunk-A7BAE2SN.js → chunk-3X7ZLPYE.js} +26 -19
  6. package/dist/chunk-3X7ZLPYE.js.map +1 -0
  7. package/dist/{chunk-EARDDQSB.cjs → chunk-47FD2BIN.cjs} +5 -2
  8. package/dist/chunk-47FD2BIN.cjs.map +1 -0
  9. package/dist/{chunk-7LQKUYC7.js → chunk-5745XRSJ.js} +3 -3
  10. package/dist/chunk-7PWF3F2W.cjs.map +1 -1
  11. package/dist/chunk-COHEPMUP.cjs.map +1 -1
  12. package/dist/{chunk-T4AJWZEL.cjs → chunk-HQEDOVWO.cjs} +47 -32
  13. package/dist/chunk-HQEDOVWO.cjs.map +1 -0
  14. package/dist/{chunk-DYHV2B4Z.js → chunk-JHDEAXSK.js} +4 -1
  15. package/dist/chunk-JHDEAXSK.js.map +1 -0
  16. package/dist/{chunk-MYFJ2GV3.cjs → chunk-OBYCSKPS.cjs} +28 -21
  17. package/dist/chunk-OBYCSKPS.cjs.map +1 -0
  18. package/dist/{chunk-IV2FDFXA.js → chunk-PZR3GKKO.js} +19 -4
  19. package/dist/chunk-PZR3GKKO.js.map +1 -0
  20. package/dist/{chunk-JQGHPVGV.cjs → chunk-RUHLHK66.cjs} +74 -74
  21. package/dist/chunk-RUHLHK66.cjs.map +1 -0
  22. package/dist/extensions.cjs +4 -2
  23. package/dist/extensions.cjs.map +1 -1
  24. package/dist/extensions.d.cts +1 -1
  25. package/dist/extensions.d.ts +1 -1
  26. package/dist/extensions.js +3 -1
  27. package/dist/{index-C6OzXwLp.d.ts → index-B097koLb.d.ts} +2 -0
  28. package/dist/{index-C4bupNyk.d.cts → index-BmHgGqbY.d.cts} +2 -0
  29. package/dist/index.cjs +53 -53
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +19 -1
  32. package/dist/index.d.ts +19 -1
  33. package/dist/index.js +3 -3
  34. package/dist/operation/index.cjs +4 -4
  35. package/dist/operation/index.cjs.map +1 -1
  36. package/dist/operation/index.js +3 -3
  37. package/dist/pruner/index.cjs +5 -5
  38. package/dist/pruner/index.cjs.map +1 -1
  39. package/dist/pruner/index.d.cts +1 -1
  40. package/dist/pruner/index.d.ts +1 -1
  41. package/dist/pruner/index.js +4 -4
  42. package/dist/reducer/index.cjs +5 -5
  43. package/dist/reducer/index.cjs.map +1 -1
  44. package/dist/reducer/index.d.cts +1 -1
  45. package/dist/reducer/index.d.ts +1 -1
  46. package/dist/reducer/index.js +4 -4
  47. package/dist/types.cjs.map +1 -1
  48. package/dist/utils.cjs +3 -3
  49. package/dist/utils.cjs.map +1 -1
  50. package/dist/utils.js +2 -2
  51. package/package.json +1 -1
  52. package/dist/chunk-A7BAE2SN.js.map +0 -1
  53. package/dist/chunk-DYHV2B4Z.js.map +0 -1
  54. package/dist/chunk-EARDDQSB.cjs.map +0 -1
  55. package/dist/chunk-IV2FDFXA.js.map +0 -1
  56. package/dist/chunk-JQGHPVGV.cjs.map +0 -1
  57. package/dist/chunk-MYFJ2GV3.cjs.map +0 -1
  58. package/dist/chunk-T4AJWZEL.cjs.map +0 -1
  59. /package/dist/{chunk-7LQKUYC7.js.map → chunk-5745XRSJ.js.map} +0 -0
package/dist/index.cjs CHANGED
@@ -12,12 +12,12 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkJQGHPVGVcjs = require('./chunk-JQGHPVGV.cjs');
15
+ var _chunkRUHLHK66cjs = require('./chunk-RUHLHK66.cjs');
16
16
 
17
17
 
18
18
 
19
19
 
20
- var _chunkMYFJ2GV3cjs = require('./chunk-MYFJ2GV3.cjs');
20
+ var _chunkOBYCSKPScjs = require('./chunk-OBYCSKPS.cjs');
21
21
 
22
22
 
23
23
 
@@ -29,7 +29,7 @@ var _chunkMYFJ2GV3cjs = require('./chunk-MYFJ2GV3.cjs');
29
29
 
30
30
 
31
31
 
32
- var _chunkEARDDQSBcjs = require('./chunk-EARDDQSB.cjs');
32
+ var _chunk47FD2BINcjs = require('./chunk-47FD2BIN.cjs');
33
33
 
34
34
 
35
35
 
@@ -75,7 +75,7 @@ function getByScheme(user, scheme = {}, selectedApp) {
75
75
  }
76
76
  function getAuth(api, user, selectedApp) {
77
77
  return Object.keys(_optionalChain([api, 'optionalAccess', _3 => _3.components, 'optionalAccess', _4 => _4.securitySchemes]) || {}).map((scheme) => {
78
- const securityScheme = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, _optionalChain([api, 'access', _5 => _5.components, 'optionalAccess', _6 => _6.securitySchemes, 'optionalAccess', _7 => _7[scheme]]), api);
78
+ const securityScheme = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, _optionalChain([api, 'access', _5 => _5.components, 'optionalAccess', _6 => _6.securitySchemes, 'optionalAccess', _7 => _7[scheme]]), api);
79
79
  if (!securityScheme || _chunk7PWF3F2Wcjs.isRef.call(void 0, securityScheme)) {
80
80
  return false;
81
81
  }
@@ -146,16 +146,16 @@ var Oas = class _Oas {
146
146
  url(selected = 0, variables) {
147
147
  const url = _optionalChain([this, 'access', _8 => _8.api, 'access', _9 => _9.servers, 'optionalAccess', _10 => _10[selected], 'optionalAccess', _11 => _11.url]);
148
148
  const resolvedUrl = url ? this.replaceUrl(url, variables || this.defaultVariables(selected)) : void 0;
149
- return _chunkJQGHPVGVcjs.normalizeURL.call(void 0, resolvedUrl).trim();
149
+ return _chunkRUHLHK66cjs.normalizeURL.call(void 0, resolvedUrl).trim();
150
150
  }
151
151
  variables(selected = 0) {
152
- return _chunkJQGHPVGVcjs.variablesFromServers.call(void 0, this.api.servers, selected);
152
+ return _chunkRUHLHK66cjs.variablesFromServers.call(void 0, this.api.servers, selected);
153
153
  }
154
154
  defaultVariables(selected = 0) {
155
- return _chunkJQGHPVGVcjs.defaultVariablesFromServers.call(void 0, this.api.servers, selected, this.user);
155
+ return _chunkRUHLHK66cjs.defaultVariablesFromServers.call(void 0, this.api.servers, selected, this.user);
156
156
  }
157
157
  splitUrl(selected = 0) {
158
- return _chunkJQGHPVGVcjs.splitUrlFromServers.call(void 0, this.api.servers, selected);
158
+ return _chunkRUHLHK66cjs.splitUrlFromServers.call(void 0, this.api.servers, selected);
159
159
  }
160
160
  /**
161
161
  * With a fully composed server URL, run through our list of known OAS servers and return back
@@ -173,13 +173,13 @@ var Oas = class _Oas {
173
173
  */
174
174
  splitVariables(baseUrl) {
175
175
  const matchedServer = (this.api.servers || []).map((server, i) => {
176
- const rgx = _chunkJQGHPVGVcjs.transformURLIntoRegex.call(void 0, server.url);
176
+ const rgx = _chunkRUHLHK66cjs.transformURLIntoRegex.call(void 0, server.url);
177
177
  const found = new RegExp(rgx).exec(baseUrl);
178
178
  if (!found) {
179
179
  return false;
180
180
  }
181
181
  const variables = {};
182
- Array.from(server.url.matchAll(_chunkMYFJ2GV3cjs.SERVER_VARIABLE_REGEX)).forEach((variable, y) => {
182
+ Array.from(server.url.matchAll(_chunkOBYCSKPScjs.SERVER_VARIABLE_REGEX)).forEach((variable, y) => {
183
183
  variables[variable[1]] = found[y + 1];
184
184
  });
185
185
  return {
@@ -209,8 +209,8 @@ var Oas = class _Oas {
209
209
  * @param variables An object containing variables to swap into the URL.
210
210
  */
211
211
  replaceUrl(url, variables = {}) {
212
- return _chunkJQGHPVGVcjs.stripTrailingSlash.call(void 0,
213
- url.replace(_chunkMYFJ2GV3cjs.SERVER_VARIABLE_REGEX, (original, key) => {
212
+ return _chunkRUHLHK66cjs.stripTrailingSlash.call(void 0,
213
+ url.replace(_chunkOBYCSKPScjs.SERVER_VARIABLE_REGEX, (original, key) => {
214
214
  if (key in variables) {
215
215
  const data = variables[key];
216
216
  if (typeof data === "object") {
@@ -221,7 +221,7 @@ var Oas = class _Oas {
221
221
  return String(data);
222
222
  }
223
223
  }
224
- const userVariable = _chunkJQGHPVGVcjs.getUserVariable.call(void 0, this.user, key);
224
+ const userVariable = _chunkRUHLHK66cjs.getUserVariable.call(void 0, this.user, key);
225
225
  if (userVariable) {
226
226
  return String(userVariable);
227
227
  }
@@ -241,22 +241,22 @@ var Oas = class _Oas {
241
241
  };
242
242
  if (opts.isWebhook) {
243
243
  if (_chunk7PWF3F2Wcjs.isOpenAPI31.call(void 0, this.api)) {
244
- const webhookPath = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _12 => _12.api, 'optionalAccess', _13 => _13.webhooks, 'optionalAccess', _14 => _14[path]]), this.api);
244
+ const webhookPath = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _12 => _12.api, 'optionalAccess', _13 => _13.webhooks, 'optionalAccess', _14 => _14[path]]), this.api);
245
245
  if (webhookPath && !_chunk7PWF3F2Wcjs.isRef.call(void 0, webhookPath)) {
246
246
  if (_optionalChain([webhookPath, 'optionalAccess', _15 => _15[method]])) {
247
247
  operation = webhookPath[method];
248
- return new (0, _chunkJQGHPVGVcjs.Webhook)(this, path, method, operation);
248
+ return new (0, _chunkRUHLHK66cjs.Webhook)(this, path, method, operation);
249
249
  }
250
250
  }
251
251
  }
252
252
  }
253
253
  if (_optionalChain([this, 'optionalAccess', _16 => _16.api, 'optionalAccess', _17 => _17.paths, 'optionalAccess', _18 => _18[path]])) {
254
- const pathItem = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, this.api.paths[path], this.api);
254
+ const pathItem = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, this.api.paths[path], this.api);
255
255
  if (_optionalChain([pathItem, 'optionalAccess', _19 => _19[method]])) {
256
- operation = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, pathItem[method], this.api);
256
+ operation = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, pathItem[method], this.api);
257
257
  }
258
258
  }
259
- return new (0, _chunkJQGHPVGVcjs.Operation)(this, path, method, operation);
259
+ return new (0, _chunkRUHLHK66cjs.Operation)(this, path, method, operation);
260
260
  }
261
261
  findOperationMatches(url) {
262
262
  const annotatedPaths = [
@@ -277,7 +277,7 @@ var Oas = class _Oas {
277
277
  } catch (e) {
278
278
  return void 0;
279
279
  }
280
- const originRegExp = new RegExp(_chunkJQGHPVGVcjs.escapeRegExp.call(void 0, origin), "i");
280
+ const originRegExp = new RegExp(_chunkRUHLHK66cjs.escapeRegExp.call(void 0, origin), "i");
281
281
  const { servers, paths } = this.api;
282
282
  let matchedServer;
283
283
  if (!servers || !servers.length) {
@@ -287,7 +287,7 @@ var Oas = class _Oas {
287
287
  } else {
288
288
  matchedServer = servers.find((s) => originRegExp.exec(this.replaceUrl(s.url, s.variables || {})));
289
289
  if (!matchedServer) {
290
- const hostnameRegExp = new RegExp(_chunkJQGHPVGVcjs.escapeRegExp.call(void 0, hostname));
290
+ const hostnameRegExp = new RegExp(_chunkRUHLHK66cjs.escapeRegExp.call(void 0, hostname));
291
291
  matchedServer = servers.find((s) => hostnameRegExp.exec(this.replaceUrl(s.url, s.variables || {})));
292
292
  }
293
293
  }
@@ -303,14 +303,14 @@ var Oas = class _Oas {
303
303
  const resolvedPaths = {};
304
304
  Object.keys(paths).forEach((path) => {
305
305
  const rawPathItem = paths[path];
306
- const pathItem = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, rawPathItem, this.api);
306
+ const pathItem = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, rawPathItem, this.api);
307
307
  if (!pathItem || _chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem)) {
308
308
  resolvedPaths[path] = rawPathItem;
309
309
  return;
310
310
  }
311
311
  resolvedPaths[path] = _chunk7PWF3F2Wcjs.isRef.call(void 0, rawPathItem) ? this.pathItemForRootServerMatching(pathItem) : pathItem;
312
312
  });
313
- const annotatedPaths = _chunkJQGHPVGVcjs.generatePathMatches.call(void 0, resolvedPaths, target.pathName || "/", target.origin);
313
+ const annotatedPaths = _chunkRUHLHK66cjs.generatePathMatches.call(void 0, resolvedPaths, target.pathName || "/", target.origin);
314
314
  if (!annotatedPaths.length) return void 0;
315
315
  return annotatedPaths;
316
316
  }
@@ -329,7 +329,7 @@ var Oas = class _Oas {
329
329
  if (!rawPathItem) return;
330
330
  let mayHaveOverrides = _chunk7PWF3F2Wcjs.isRef.call(void 0, rawPathItem) || !!_optionalChain([rawPathItem, 'access', _21 => _21.servers, 'optionalAccess', _22 => _22.length]);
331
331
  if (!mayHaveOverrides) {
332
- for (const method of _chunkMYFJ2GV3cjs.supportedMethods) {
332
+ for (const method of _chunkOBYCSKPScjs.supportedMethods) {
333
333
  const rawOperation = rawPathItem[method];
334
334
  if (rawOperation && (_chunk7PWF3F2Wcjs.isRef.call(void 0, rawOperation) || _optionalChain([rawOperation, 'access', _23 => _23.servers, 'optionalAccess', _24 => _24.length]))) {
335
335
  mayHaveOverrides = true;
@@ -338,11 +338,11 @@ var Oas = class _Oas {
338
338
  }
339
339
  }
340
340
  if (!mayHaveOverrides) return;
341
- const pathItem = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, rawPathItem, this.api);
341
+ const pathItem = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, rawPathItem, this.api);
342
342
  if (!pathItem || _chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem)) return;
343
343
  const groups = /* @__PURE__ */ new Map();
344
- _chunkMYFJ2GV3cjs.supportedMethods.forEach((method) => {
345
- const operation = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, pathItem[method], this.api);
344
+ _chunkOBYCSKPScjs.supportedMethods.forEach((method) => {
345
+ const operation = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, pathItem[method], this.api);
346
346
  if (!operation || _chunk7PWF3F2Wcjs.isRef.call(void 0, operation)) return;
347
347
  const servers = _optionalChain([operation, 'access', _25 => _25.servers, 'optionalAccess', _26 => _26.length]) ? operation.servers : _optionalChain([pathItem, 'access', _27 => _27.servers, 'optionalAccess', _28 => _28.length]) ? pathItem.servers : void 0;
348
348
  if (!servers) return;
@@ -358,7 +358,7 @@ var Oas = class _Oas {
358
358
  for (const server of servers) {
359
359
  const target = this.splitURLIntoOriginAndPathName(url, server);
360
360
  if (!target) continue;
361
- const annotatedPaths = _chunkJQGHPVGVcjs.generatePathMatches.call(void 0,
361
+ const annotatedPaths = _chunkRUHLHK66cjs.generatePathMatches.call(void 0,
362
362
  { [path]: operations },
363
363
  target.pathName || "/",
364
364
  target.origin
@@ -379,11 +379,11 @@ var Oas = class _Oas {
379
379
  pathItemForRootServerMatching(pathItem) {
380
380
  const hasPathItemServers = Boolean(_optionalChain([pathItem, 'access', _29 => _29.servers, 'optionalAccess', _30 => _30.length]));
381
381
  const filtered = { ...pathItem };
382
- _chunkMYFJ2GV3cjs.supportedMethods.forEach((method) => {
382
+ _chunkOBYCSKPScjs.supportedMethods.forEach((method) => {
383
383
  if (!(method in filtered)) {
384
384
  return;
385
385
  }
386
- const operation = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, pathItem[method], this.api);
386
+ const operation = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, pathItem[method], this.api);
387
387
  if (!operation || _chunk7PWF3F2Wcjs.isRef.call(void 0, operation)) {
388
388
  if (hasPathItemServers) {
389
389
  delete filtered[method];
@@ -409,7 +409,7 @@ var Oas = class _Oas {
409
409
  splitURLOnSubstitutedServer(url, server) {
410
410
  try {
411
411
  const substitutedUrl = this.replaceUrl(server.url, server.variables || {});
412
- const [, pathName] = url.split(new RegExp(_chunkJQGHPVGVcjs.escapeRegExp.call(void 0, substitutedUrl), "i"));
412
+ const [, pathName] = url.split(new RegExp(_chunkRUHLHK66cjs.escapeRegExp.call(void 0, substitutedUrl), "i"));
413
413
  if (pathName !== void 0) {
414
414
  return { origin: substitutedUrl, pathName };
415
415
  }
@@ -423,7 +423,7 @@ var Oas = class _Oas {
423
423
  */
424
424
  splitURLOnServerRegex(url, server) {
425
425
  try {
426
- const regex = _chunkJQGHPVGVcjs.transformURLIntoRegex.call(void 0, server.url);
426
+ const regex = _chunkRUHLHK66cjs.transformURLIntoRegex.call(void 0, server.url);
427
427
  if (new RegExp(regex).exec(url)) {
428
428
  return { origin: server.url, pathName: url.split(new RegExp(regex)).slice(-1).pop() || "" };
429
429
  }
@@ -444,9 +444,9 @@ var Oas = class _Oas {
444
444
  if (!annotatedPaths) {
445
445
  return void 0;
446
446
  }
447
- const matches = _chunkJQGHPVGVcjs.filterPathMethods.call(void 0, annotatedPaths, method);
447
+ const matches = _chunkRUHLHK66cjs.filterPathMethods.call(void 0, annotatedPaths, method);
448
448
  if (!matches.length) return void 0;
449
- return _chunkJQGHPVGVcjs.findTargetPath.call(void 0, matches);
449
+ return _chunkRUHLHK66cjs.findTargetPath.call(void 0, matches);
450
450
  }
451
451
  /**
452
452
  * Discover an operation in an OAS from a fully-formed URL without an HTTP method. Will return an
@@ -459,7 +459,7 @@ var Oas = class _Oas {
459
459
  if (!annotatedPaths) {
460
460
  return void 0;
461
461
  }
462
- return _chunkJQGHPVGVcjs.findTargetPath.call(void 0, annotatedPaths);
462
+ return _chunkRUHLHK66cjs.findTargetPath.call(void 0, annotatedPaths);
463
463
  }
464
464
  /**
465
465
  * Retrieve an operation in an OAS from a fully-formed URL and HTTP method. Differs from
@@ -545,7 +545,7 @@ var Oas = class _Oas {
545
545
  let scheme = _optionalChain([this, 'access', _40 => _40.api, 'optionalAccess', _41 => _41.components, 'optionalAccess', _42 => _42.securitySchemes, 'optionalAccess', _43 => _43[name]]);
546
546
  if (!scheme) return void 0;
547
547
  if (_chunk7PWF3F2Wcjs.isRef.call(void 0, scheme)) {
548
- scheme = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, scheme, this.api);
548
+ scheme = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, scheme, this.api);
549
549
  if (!scheme || _chunk7PWF3F2Wcjs.isRef.call(void 0, scheme)) return void 0;
550
550
  }
551
551
  return scheme;
@@ -571,14 +571,14 @@ var Oas = class _Oas {
571
571
  if (!pathItem) {
572
572
  return;
573
573
  } else if (_chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem)) {
574
- this.api.paths[path] = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, pathItem, this.api);
574
+ this.api.paths[path] = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, pathItem, this.api);
575
575
  pathItem = this.api.paths[path];
576
576
  if (!pathItem || _chunk7PWF3F2Wcjs.isRef.call(void 0, pathItem)) {
577
577
  return;
578
578
  }
579
579
  }
580
580
  Object.keys(pathItem).forEach((method) => {
581
- if (!_chunkMYFJ2GV3cjs.supportedMethods.includes(method)) {
581
+ if (!_chunkOBYCSKPScjs.supportedMethods.includes(method)) {
582
582
  return;
583
583
  }
584
584
  paths[path][method] = this.operation(path, method);
@@ -600,10 +600,10 @@ var Oas = class _Oas {
600
600
  }
601
601
  Object.keys(this.api.webhooks).forEach((id) => {
602
602
  webhooks[id] = {};
603
- const webhookPath = _chunkMYFJ2GV3cjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _44 => _44.api, 'access', _45 => _45.webhooks, 'optionalAccess', _46 => _46[id]]), this.api);
603
+ const webhookPath = _chunkOBYCSKPScjs.dereferenceRef.call(void 0, _optionalChain([this, 'access', _44 => _44.api, 'access', _45 => _45.webhooks, 'optionalAccess', _46 => _46[id]]), this.api);
604
604
  if (webhookPath) {
605
605
  Object.keys(webhookPath).forEach((method) => {
606
- if (!_chunkMYFJ2GV3cjs.supportedMethods.includes(method)) {
606
+ if (!_chunkOBYCSKPScjs.supportedMethods.includes(method)) {
607
607
  return;
608
608
  }
609
609
  webhooks[id][method] = this.operation(id, method, {
@@ -628,7 +628,7 @@ var Oas = class _Oas {
628
628
  getTags(setIfMissing = false) {
629
629
  const allTags = /* @__PURE__ */ new Set();
630
630
  const oasTags = _optionalChain([this, 'access', _47 => _47.api, 'access', _48 => _48.tags, 'optionalAccess', _49 => _49.map, 'call', _50 => _50((tag) => tag.name)]) || [];
631
- const disableTagSorting = _chunkEARDDQSBcjs.getExtension.call(void 0, "disable-tag-sorting", this.api);
631
+ const disableTagSorting = _chunk47FD2BINcjs.getExtension.call(void 0, "disable-tag-sorting", this.api);
632
632
  Object.entries(this.getPaths()).forEach(([path, operations]) => {
633
633
  Object.values(operations).forEach((operation) => {
634
634
  const tags = operation.getTags();
@@ -679,7 +679,7 @@ var Oas = class _Oas {
679
679
  * @param extension Specification extension to lookup.
680
680
  */
681
681
  hasExtension(extension) {
682
- return _chunkEARDDQSBcjs.hasRootExtension.call(void 0, extension, this.api);
682
+ return _chunk47FD2BINcjs.hasRootExtension.call(void 0, extension, this.api);
683
683
  }
684
684
  /**
685
685
  * Retrieve a custom specification extension off of the API definition.
@@ -689,7 +689,7 @@ var Oas = class _Oas {
689
689
  * @param extension Specification extension to lookup.
690
690
  */
691
691
  getExtension(extension, operation) {
692
- return _chunkEARDDQSBcjs.getExtension.call(void 0, extension, this.api, operation);
692
+ return _chunk47FD2BINcjs.getExtension.call(void 0, extension, this.api, operation);
693
693
  }
694
694
  /**
695
695
  * Determine if a given OpenAPI custom extension is valid or not.
@@ -707,20 +707,20 @@ var Oas = class _Oas {
707
707
  throw new TypeError('"x-readme" must be of type "Object"');
708
708
  }
709
709
  if (extension in data) {
710
- if ([_chunkEARDDQSBcjs.CODE_SAMPLES, _chunkEARDDQSBcjs.HEADERS, _chunkEARDDQSBcjs.PARAMETER_ORDERING, _chunkEARDDQSBcjs.SAMPLES_LANGUAGES].includes(extension)) {
710
+ if ([_chunk47FD2BINcjs.CODE_SAMPLES, _chunk47FD2BINcjs.HEADERS, _chunk47FD2BINcjs.PARAMETER_ORDERING, _chunk47FD2BINcjs.SAMPLES_LANGUAGES].includes(extension)) {
711
711
  if (data[extension] !== void 0) {
712
712
  if (!Array.isArray(data[extension])) {
713
713
  throw new TypeError(`"x-readme.${extension}" must be of type "Array"`);
714
714
  }
715
- if (extension === _chunkEARDDQSBcjs.PARAMETER_ORDERING) {
716
- _chunkEARDDQSBcjs.validateParameterOrdering.call(void 0, data[extension], `x-readme.${extension}`);
715
+ if (extension === _chunk47FD2BINcjs.PARAMETER_ORDERING) {
716
+ _chunk47FD2BINcjs.validateParameterOrdering.call(void 0, data[extension], `x-readme.${extension}`);
717
717
  }
718
718
  }
719
- } else if (extension === _chunkEARDDQSBcjs.OAUTH_OPTIONS) {
719
+ } else if (extension === _chunk47FD2BINcjs.OAUTH_OPTIONS) {
720
720
  if (typeof data[extension] !== "object") {
721
721
  throw new TypeError(`"x-readme.${extension}" must be of type "Object"`);
722
722
  }
723
- } else if (extension === _chunkEARDDQSBcjs.STATUS_URL) {
723
+ } else if (extension === _chunk47FD2BINcjs.STATUS_URL) {
724
724
  if (typeof data[extension] !== "string") {
725
725
  throw new TypeError(`"x-readme.${extension}" must be of type "String"`);
726
726
  }
@@ -731,18 +731,18 @@ var Oas = class _Oas {
731
731
  }
732
732
  if (this.hasExtension(`x-${extension}`)) {
733
733
  const data = this.getExtension(`x-${extension}`);
734
- if ([_chunkEARDDQSBcjs.CODE_SAMPLES, _chunkEARDDQSBcjs.HEADERS, _chunkEARDDQSBcjs.PARAMETER_ORDERING, _chunkEARDDQSBcjs.SAMPLES_LANGUAGES].includes(extension)) {
734
+ if ([_chunk47FD2BINcjs.CODE_SAMPLES, _chunk47FD2BINcjs.HEADERS, _chunk47FD2BINcjs.PARAMETER_ORDERING, _chunk47FD2BINcjs.SAMPLES_LANGUAGES].includes(extension)) {
735
735
  if (!Array.isArray(data)) {
736
736
  throw new TypeError(`"x-${extension}" must be of type "Array"`);
737
737
  }
738
- if (extension === _chunkEARDDQSBcjs.PARAMETER_ORDERING) {
739
- _chunkEARDDQSBcjs.validateParameterOrdering.call(void 0, data, `x-${extension}`);
738
+ if (extension === _chunk47FD2BINcjs.PARAMETER_ORDERING) {
739
+ _chunk47FD2BINcjs.validateParameterOrdering.call(void 0, data, `x-${extension}`);
740
740
  }
741
- } else if (extension === _chunkEARDDQSBcjs.OAUTH_OPTIONS) {
741
+ } else if (extension === _chunk47FD2BINcjs.OAUTH_OPTIONS) {
742
742
  if (typeof data !== "object") {
743
743
  throw new TypeError(`"x-${extension}" must be of type "Object"`);
744
744
  }
745
- } else if (extension === _chunkEARDDQSBcjs.STATUS_URL) {
745
+ } else if (extension === _chunk47FD2BINcjs.STATUS_URL) {
746
746
  if (typeof data !== "string") {
747
747
  throw new TypeError(`"x-${extension}" must be of type "String"`);
748
748
  }
@@ -759,7 +759,7 @@ var Oas = class _Oas {
759
759
  * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specification-extensions}
760
760
  */
761
761
  validateExtensions() {
762
- Object.keys(_chunkEARDDQSBcjs.extensionDefaults).forEach((extension) => {
762
+ Object.keys(_chunk47FD2BINcjs.extensionDefaults).forEach((extension) => {
763
763
  this.validateExtension(extension);
764
764
  });
765
765
  }