Fixed broken JSONSchema errors

This commit is contained in:
jos 2017-09-17 21:03:33 +02:00
parent 432e169f32
commit 6f9776a07a
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export function addErrors (eson: ESON, errors) {
if (errors) {
errors.forEach(error => {
const esonPath = toEsonPath(eson, parseJSONPointer(error.esonPath))
const esonPath = toEsonPath(eson, parseJSONPointer(error.dataPath))
// TODO: do we want to be able to store multiple errors per item?
updatedEson = setIn(updatedEson, esonPath.concat('error'), error)
})