@scalar/fastify-api-reference 1.25.102 → 1.25.104

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/index.js CHANGED
@@ -12472,12 +12472,12 @@ function traverse(specification, transform, path2 = []) {
12472
12472
  const currentPath = [...path2, key];
12473
12473
  if (Array.isArray(value)) {
12474
12474
  result[key] = value.map((item, index) => {
12475
- if (typeof item === "object" && item !== null) {
12475
+ if (typeof item === "object" && !Array.isArray(item) && item !== null) {
12476
12476
  return traverse(item, transform, [...currentPath, index.toString()]);
12477
12477
  }
12478
12478
  return item;
12479
12479
  });
12480
- } else if (typeof value === "object" && value !== null) {
12480
+ } else if (typeof value === "object" && !Array.isArray(value) && value !== null) {
12481
12481
  result[key] = traverse(value, transform, currentPath);
12482
12482
  } else {
12483
12483
  result[key] = value;