validatorjs icon indicating copy to clipboard operation
validatorjs copied to clipboard

A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.

Results 91 validatorjs issues
Sort by recently updated
recently updated
newest added

I noticed that localhost is not valid according to URL validator. examples url: http://localhost/ http://localhost/deeplink this is the regex used for validation right now: `/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/i` the following change would fix...

bug
next

This isn't relevant for nodejs but for browser based validation - it would be useful to add a `file` validation rule. That way you can validate it's an actual file...

new feature
next

```javascript const data = { 'person.0.name': 'John', 'person.1.name': 'Kate', } const rules = { 'person.*.name': 'required' } const errorMessages = { 'required.person.*.name': 'Some custom error message' //prints out "The field...

reviewing

It took me a little longer than expected due to lack of time but I managed to rewrite whole core library to Typescript. Also some improvements are included. My branch...

new feature
reviewing

Fix Spanish translation of 'same'

We get a lot of problems when it comes to missing attributes / values in language files. This could be because: * A new rule is added but the PR...

enhancement
new feature

I know how to set custom attribute names for an instance of validator but I want to know is it possible to set them globally? (i need something like below):...

enhancement

There is no way to write a test which accepts only Arrays including empty array. also your unit tests for custom tests arent reflective of this case: ```js var Validator...

enhancement
new feature

[boolean on required_if (#132)](https://github.com/skaterdav85/validatorjs/pull/132) seems to be fixed, [nested object (#134)](https://github.com/skaterdav85/validatorjs/issues/134) too, but the following code doesn't work. It passes the validation and shouldn't: ``` const myEvent = { datetimes:...