fastest-validator icon indicating copy to clipboard operation
fastest-validator copied to clipboard

:zap: The fastest JS validator library for NodeJS

Results 56 fastest-validator issues
Sort by recently updated
recently updated
newest added

There's no standard formatter specified for this repo and different parts have different formats. Steps - Add a `format` script to package.json - Add `npm run format --check` like command...

enhancement
help wanted

Here is an example of current error message: `The 'email_address' field must not be empty.` Is there a way to pass field label into schema so the error message is...

enhancement
good first issue

There is no way to create a custom validator for all types, like "max: 3" on "number" type. We can create default custom for individual types but is not very...

enhancement
breaking-change

Adding a custom string validator function seems to have caused my other validation to stop working correctly. I have simplified my code down and attached a link to the repo...

bug

I have some regex pattern Called discount **_discount: { type: 'string', pattern: /(^\d+(\.\d{2})?$){0,100}_**/ }, It enable max allow two decimal places and minimum number is 0 and max number is...

WHAT? When I define alpha parameter in the optional field, the validator throws error. EXAMPLE: Here is an example how I defined rule for name field. ` name: { type:...

Sample schema using this shorthand ```js const schema = { a: /^(foo|bar)$/, b: /[a-z]/, c: /^[0-9]$/, } ``` Todo: - [x] Add to readme

After plugins were introduced, extra rules like objectId can be removed by creating plugin for these rules

breaking-change

Steps to reproduce: 1. set rule `{ type: 'string', pattern: 'https:\/\/example\.com' }` 2. validate incorrect string with this rule to get error 3. in error.expected will be: ```javascript { expected:...

FV can run natively on node, so there is no need for a build process. Also bundling a browser version is not in our business, Frameworks and CDNs usually do...

breaking-change