express-joi
express-joi copied to clipboard
Update to latest Joi, allow validation errors to be handled by user
This introduces two major changes:
- upgrade Joi to 7.x, which among other things throws
Error
withname: ValidationError
, and update the callsites and tests accordingly - undo f940de6c4997ebacb95aebbbb80188fa72b69066, which made it impossible to handle validation errors in any custom way, and adds appropriate documentation and example in tests
the tests failure seems to be from mocha trying to recursively validate node_modules?