An express.js middleware for validator.js.
withMessage
actually override a custom validator's messageisAlphanumeric
oneOf()
work imperativelyoneOf()
imperativelycheckSchema()
imperativelytoString
property is not a functionisObject
validatorisURL
accept non-standard protocolsbig kudos to @fedeci for the many improvements! 🎉
.ts
filesisAlpha()
to work again with the underlying validatorbail
in schemasIsAlphaOptions#ignore
to allow RegExp
s, in addition to string[]