An express.js middleware for validator.js.
MIT License
Bot releases are visible (Hide)
check().run(req, { dryRun: boolean })
. See docs for more information.
min
/max
options to isArray()
validatoroptional
when using checkSchema
.if()
with another validation chainawait body('email').isEmail().run(req)
) not generating any errorsreq.check()
, req.checkBody()
, req.filter()
, etc) have been removed;require('express-validator/check')
and require('express-validator/filter)
are now deprecated. Instead, just use require('express-validator')
;toArray()
sanitizer;check('field').run(req)
. See docs.Error
checkNull
and checkFalsy
options to exists
validatormatchedData()
exists
validator to have message set in schemasoneOf()
body().isUppercase()
.isArray()
and .isString()
checkSchema()
TypeScript