Skip to content

Commit 47a0673

Browse files
fix: buildValue input replacement (#447)
1 parent 8182ee1 commit 47a0673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ function buildValue (laterCode, locationPath, input, location, isArray) {
11751175
})
11761176

11771177
code += `
1178-
else throw new Error(\`The value $\{JSON.stringify(obj${accessor})} does not match schema definition.\`)
1178+
else throw new Error(\`The value $\{JSON.stringify(${input})} does not match schema definition.\`)
11791179
`
11801180
} else if (isEmpty(schema)) {
11811181
code += `

0 commit comments

Comments
 (0)