From 6f9776a07a4c1c5612bf66f8e01c8cbdae73bb22 Mon Sep 17 00:00:00 2001 From: jos Date: Sun, 17 Sep 2017 21:03:33 +0200 Subject: [PATCH] Fixed broken JSONSchema errors --- src/eson.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eson.js b/src/eson.js index 33d72d0..aa23396 100644 --- a/src/eson.js +++ b/src/eson.js @@ -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) })