dowwntime 1.3.6 → 1.3.7

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.
package/dist/cli.mjs CHANGED
@@ -28330,7 +28330,7 @@ const run = async (options) => {
28330
28330
  if ("200" in (pathItem.get?.responses ?? {}) && "text/event-stream" in (pathItem.get.responses?.["200"]?.content ?? {})) continue;
28331
28331
  for (const param of pathItem.get.parameters || []) {
28332
28332
  let exampleValue = options.getExampleValue?.(param.name, path$4) ?? param.example ?? param.examples?.[0] ?? param.schema?.example ?? param.schema?.examples?.[0];
28333
- if (!exampleValue && "enum" in param.schema) {
28333
+ if (!exampleValue && (param.required || param.in === "path") && "enum" in param.schema) {
28334
28334
  const enumValues = param.schema.enum;
28335
28335
  if (Array.isArray(enumValues) && enumValues.length > 0) exampleValue = enumValues[0];
28336
28336
  }
@@ -28338,12 +28338,16 @@ const run = async (options) => {
28338
28338
  debug$1(`No example value for parameter ${param.name} in ${path$4}`);
28339
28339
  continue;
28340
28340
  }
28341
- if (!exampleValue) continue;
28342
28341
  if (param.in === "path") {
28342
+ if (!exampleValue) {
28343
+ debug$1(`No example value for path parameter ${param.name} in ${path$4}`);
28344
+ continue;
28345
+ }
28343
28346
  const placeholder = `{${param.name}}`;
28344
28347
  _path = _path.replace(placeholder, exampleValue);
28345
28348
  url$2.pathname = _path;
28346
28349
  }
28350
+ if (!exampleValue) continue;
28347
28351
  if (param.in === "query") url$2.searchParams.set(param.name, exampleValue);
28348
28352
  }
28349
28353
  fetchConfigurations.set(path$4, url$2);