How to validate an array of strings using express validator? How to validate an array of strings using express validator? express express

How to validate an array of strings using express validator?


Yes, you must use wildcards for that.

req.check('options.*').isLength({ max: 30 })