Open michaeljota opened 8 years ago
Right now if you put some invalid validator in the schema, it throws a not found error.
that._schema[key].match.test is not a function
In the example, 'match' it's the name of the invalid validator.
I guess it should throw some information about where it is being used.
Yes, there is a lot of room for improvement on the errors it throws. Most aren't descriptive enough.
I've added this to my to-do list. Thanks for pointing it out!
Right now if you put some invalid validator in the schema, it throws a not found error.
In the example, 'match' it's the name of the invalid validator.
I guess it should throw some information about where it is being used.