@scalar/openapi-parser
Advanced tools
Comparing version 0.10.3 to 0.10.4
# @scalar/openapi-parser | ||
## 0.10.4 | ||
### Patch Changes | ||
- 64df4fc: fix: example arrays are transformed to objects | ||
## 0.10.3 | ||
@@ -4,0 +10,0 @@ |
@@ -10,3 +10,3 @@ /** | ||
result[key] = value.map((item, index) => { | ||
if (typeof item === 'object' && item !== null) { | ||
if (typeof item === 'object' && !Array.isArray(item) && item !== null) { | ||
return traverse(item, transform, [...currentPath, index.toString()]); | ||
@@ -17,3 +17,5 @@ } | ||
} | ||
else if (typeof value === 'object' && value !== null) { | ||
else if (typeof value === 'object' && | ||
!Array.isArray(value) && | ||
value !== null) { | ||
result[key] = traverse(value, transform, currentPath); | ||
@@ -20,0 +22,0 @@ } |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"engines": { | ||
@@ -68,5 +68,5 @@ "node": ">=18" | ||
"tinybench": "^2.8.0", | ||
"@scalar/types": "0.0.25", | ||
"@scalar/build-tooling": "0.1.12", | ||
"@scalar/openapi-types": "0.1.5" | ||
"@scalar/openapi-types": "0.1.6", | ||
"@scalar/types": "0.0.26" | ||
}, | ||
@@ -73,0 +73,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
1963313
28306