validatorjs
validatorjs copied to clipboard
A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.
Version 3.18.1 Hi, for a rule containing .*. ```'conditions.*.values': 'required' ``` can't create custom message by mask .*. , custom message ```'required.conditions.*.values': 'select value'``` - does not work, custom message...
I've bumped to the odd behavior of the `in` rule. It throws `ok` when it should have not to. My validating object must have `status` field. The `status` value must...
in after, after_or_equal, before, before_or_equal rules, as req is not the key of the input, but already the value to be validated. **What is the purpose of this pull request?...
This PR adjusts the handling of the date rules (`after`, `after_or_equal`, `before`, `before_or_equal`) to also accept a date string as an argument instead of only allowing attribute names to be...
I am using the version `3.22.1` Could it be possible to have a feature where the validator can return an error if data key with that is not defined in...
**What version of this package are you using?** 3.22.1 **What problem do you want to solve?** In some cases I need to access user model object (authenticated user) which is...
### Environment info **Validatorjs version**: 3.22.1 **Node.js version**: v12.18.3 ### Problem I need the same functionality of issue #345, I want check in my database if the new value is...
resolve before ,before_or_equal,after,after_or_equal params **What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [ X] Bug fix [ ] New feature...
v3.22.1 Local server URLs are not seen as valid. Example here: [https://codesandbox.io/s/npm-playground-forked-ne791](https://codesandbox.io/s/npm-playground-forked-ne791) Code example here: ``` const Validator = require("validatorjs"); const validation = new Validator( { url1: "http://google.com", // valid...
So, I set up these rules: ``` channel: 'required|numeric', url: 'required_if:channel,1|url_validation', ``` And it's supposed to check for url when the channel is 1, but the problem is when I...