ctavan/express-validator — Issue #5: how to validate form element names grouped as array?
Author: shebinleo
Created: 2012-02-02 04:52:53+00:00
State: open

form(action='/', method='POST')
input(name='company[name]', type='text')
input(name='company[description]', type='text')
input(name='company[address]', type='text')
input(type='submit')

For the above form how can I use the express-validator?

req.assert('company[name]', 'Company Name is required').notEmpty(); doesn't seems to work