foo
foo
Hi happypulp, I want just to thank you for this tutorial ! This is very great to begin and understand redux. Keep going & nice job ;)
I have the exact same problem. see: https://github.com/sustrik/libmill/issues/186
Alright, no problem. But at least there is any given way to get the rules that doesn't pass the validation ? It will permit to implement error messages on my...
For instance: ``` javascript const User = orm.createModel('User', { id: String, name: type.string().min(3).max(20).required(), email: type.string().email().required(), }); ``` Then: ``` javascript try{ const user = new User( {} ); user.validate(); }...
or at least a quick fix that informs which fields pass or not validation step: ``` javascript // after user.validate() user.validation.errors // [ 'name', 'email' ] user.validation.passes // [ 'addr',...
Whatever the solution to implement the purpose of this is just to be more verbose on how/why the validation fails and not satisfy as currently to throw a basic exception...