Permalink
Browse files

The ‘validate’ method now accepts JSON, properly

  • Loading branch information...
1 parent fc62b2d commit ba7982da147490d06a078216ba24814cfea4f695 @Baggz committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/engines/json/validate.js
View
2 src/engines/json/validate.js
@@ -67,7 +67,7 @@ Validation.prototype.validate = function(instance, schema, callback) {
try {
instance = JSON.parse(instance);
} catch(parseError) {
- throw new Error(parseError);
+
}
}
return this.validateSchema(instance, schema, '', callbackProxy);

0 comments on commit ba7982d

Please sign in to comment.