Validator icon indicating copy to clipboard operation
Validator copied to clipboard

Client-side javascript validator library ports from Laravel 5.2

Results 11 Validator issues
Sort by recently updated
recently updated
newest added

If a rule is not present, required, etc... it should not fail if it's not set in data. FYI, this works as expected for some rules, such as string, array,...

sample code: ```JS const messagesCustom = { "min":{ "numeric": ":attr minimo :min.", "file": ":attr dev'essere almeno :min kilobytes.", "string": ":attr deve essere lungo almeno :min caratteri.", "array": ":attr deve avere...

Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...

dependencies

Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1. Commits 2449650 Update mocha 560b2d8 Don't use regex to trim whitespace b1bdb92 Remove linting package zoo c20dc7e Cache 308 See full diff in compare...

dependencies

Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...

dependencies

Functions defined as **async** always pass the validation, even if they return **false** ``` function validateUserExists(name, value, params) { const user = await db.users.findOne({ where: { id: value } })...

Is it possible to return data, that can be used later? For example if as part of the validation I call the database to check if a record exists, is...