validatorjs
validatorjs copied to clipboard
A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.
I'm trying to use the before_or_equal/after_or_equal validators. I saw a few examples of a rule created using another property but I've tried a number of permutations all returning runtime errors....
Hi- I've got an scenario where the validation rules needs to use references to external variables (a settings object, etc) How can I achieve to compose a custom rule that...
before_or_equal rule always returns false because `this.validator.input[req]` is called even when the value for `val1` is already pulled from the `this.validator.input` array. Below is before_or_equal with a few extra `console.log()`...
``` var input = { name: '' }; var rules = { name : 'required' }; var validation = new Validator(input, rules, { required: 'You forgot to give a :attribute'...
Hi all, I don't know if this is intended behaviour, but I need to have an email field validated if another field 'emailRequired' is eql to 'yes'. Default is 'no'....
Hi there! Is unicode characters already supported ? it seems not , or some of the rules aren't . I'm using "alpha" rule, but It doesn't allow Arabic alphabet.
I am trying to pull down the latest NPM (3.13.3) due to the bug in the rules.js for Month (date not valid for value: 2017-10-31). When I pull this down,...
Laravel 5.5 will be adding `custom validators` and this functionality will be part of `validatorjs` in the next major release (no timetable, but soonish) Have a look at this link...
I see that the boolean rule has test cases that say the boolean validation rule should pass with no value and with an empty string value. It seems that those...
It would be nice to have array rule improved, so it would take an optional parameter containing rue or set of rules to validate each element in the array accordingly....