express-joi icon indicating copy to clipboard operation
express-joi copied to clipboard

Update to latest Joi, allow validation errors to be handled by user

Open parkan opened this issue 9 years ago • 1 comments

This introduces two major changes:

  1. upgrade Joi to 7.x, which among other things throws Error with name: ValidationError, and update the callsites and tests accordingly
  2. undo f940de6c4997ebacb95aebbbb80188fa72b69066, which made it impossible to handle validation errors in any custom way, and adds appropriate documentation and example in tests

parkan avatar Nov 20 '15 19:11 parkan

the tests failure seems to be from mocha trying to recursively validate node_modules?

parkan avatar Nov 20 '15 22:11 parkan