meteor compatibility: error reporting, closes #159

master
Evgeny Poberezkin 2016-04-11 20:40:31 +01:00
parent 8676a3f62e
commit d730049184
2 changed files with 3 additions and 2 deletions

View File

@ -89,7 +89,8 @@ function Ajv(opts) {
}
var valid = v(data);
if (v.async) return self._opts.async == '*' ? co(valid) : valid;
if (v.async === true)
return self._opts.async == '*' ? co(valid) : valid;
self.errors = v.errors;
return valid;
}

View File

@ -1,6 +1,6 @@
{
"name": "ajv",
"version": "3.8.9",
"version": "3.8.10",
"description": "Another JSON Schema Validator",
"main": "lib/ajv.js",
"files": [