We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5889e63 commit 811e716Copy full SHA for 811e716
index.js
@@ -580,16 +580,18 @@ function buildArray (context, location) {
580
if (schema.additionalItems) {
581
functionCode += `
582
for (let i = ${itemsSchema.length}; i < arrayLength; i++) {
583
- json += JSON.stringify(obj[i])
+ value = obj[i]
584
+ json += JSON.stringify(value)
585
if (i < arrayEnd) {
586
json += JSON_STR_COMMA
587
}
588
}`
589
590
} else {
- const code = buildValue(context, itemsLocation, 'obj[i]')
591
+ const code = buildValue(context, itemsLocation, 'value')
592
593
for (let i = 0; i < arrayLength; i++) {
594
595
${code}
596
597
0 commit comments