validator.js
validator.js copied to clipboard
How to add field value to standard validator?
Hi,
Describe the bug
How can I add custom logic to standard validator?
Example would be something like:
body("step").isInt({min: step + 1}); //"step" is field value.
Is it possible now?
Additional context Validator.js version: 6.14.0 Node.js version: v14.15.4 OS platform: [windows, linux, macOS, etc]
Thank you.