An express.js middleware for validator.js.
MIT License
Bot releases are hidden (Show)
checkSchema()
warning that known validators are unknown when its value is false
- #1223Published by gustavohenke over 1 year ago
🚀 🙌 First major version in almost 4 years! 🚀 🤯
Thanks everybody for having the patience. Hopefully this version brings many improvements to your developer experience!
express-validator/check
and express-validator/filter
sanitize()
, sanitizeBody()
, etc)ValidationParamSchema
and ValidationSchema
)isObject()
validator now assumes options.strict = true
by defaultparam
property has been renamed to path
oneOf()
validation errors no longer have a param: '_error'
propertyValidationError
type is now a discriminated union, it might be necessary to use switch
or if
statements to check that you're dealing with the type that you want to debug/formatoneOf()
signature changed: from oneOf(chains, message)
to oneOf(chains, options: { message, errorType })
oneOf()
default error structure now groups errors by their... validation group!, instead of in a flat listCheckout the migration guide for examples on how to work around some of these:
https://express-validator.github.io/docs/migration-v6-to-v7
checkSchema()
- #552, #1180ExpressValidator
class which allows adding "persistent" custom validators, sanitizers, and options - #1077, #1079, #1209oneOf()
support to .if()
- #1170oneOf()
- #956, #1022ko-KR
to MobilePhoneLocale
- #1218, #1219withMessage
and not
in schemas - #664Full Changelog: https://github.com/express-validator/express-validator/compare/v6.15.0...v7.0.0
Published by fedeci over 1 year ago
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.3...v6.15.0
Published by gustavohenke almost 2 years ago
*
(#1205)Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.2...v6.14.3
Published by gustavohenke about 2 years ago
.matches
when passing regex object by @tonysamperi in https://github.com/express-validator/express-validator/pull/1156
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.1...v6.14.2
Published by gustavohenke over 2 years ago
validationResult()
for schema validation example by @daenamkim in https://github.com/express-validator/express-validator/pull/1120
SK
postal code - #1144Full Changelog: https://github.com/express-validator/express-validator/compare/v6.14.0...v6.14.1
Published by fedeci almost 3 years ago
validator
to 13.7
by @fedeci in https://github.com/express-validator/express-validator/pull/1115
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.13.0...v6.14.0
Published by fedeci about 3 years ago
Full Changelog: https://github.com/express-validator/express-validator/compare/v6.12.2...v6.13.0
oneOf()
imperativelycheckSchema()
imperativelytoString
property is not a functionisObject
validatorisURL
accept non-standard protocolsbig kudos to @fedeci for the many improvements! 🎉