diff --git a/lib/schema.js b/lib/schema.js index eb7f2ae..2715c0c 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -1051,6 +1051,7 @@ function ValidateLayer(schema, root, argv){ validator.errors = root.errors; validator.throw = root.throw; validator.annotations = root.annotations; + validator.emitError = root.emitError; }else{ validator.errors = []; validator.throw = null;