repocrypts / Validator

Client-side javascript validator library ports from Laravel 5.2
MIT License
46 stars 22 forks source link

Added nullable rule. #9

Closed adrianlocurcio closed 6 years ago

adrianlocurcio commented 6 years ago

Added nullable rule because for exampe I pass a 'email' rule to a field an the field not exists the valdiator rejects the field and saying that the fields is not a 'email' valid. With nullable rule if the field not exists and has 'nullable' rule the validator will not validate the field with the others rules and will passed.

ratiw commented 6 years ago

Thanks @adrianlocurcio