hapi-openapi icon indicating copy to clipboard operation
hapi-openapi copied to clipboard

Non boom error thrown by input validator

Open DanielAnfelt opened this issue 5 years ago • 0 comments

The input validation step throws an error which es replaced by hapi, as it does not have isBoom set to true. This masks the details of the validation error and gives you the default status code 400, instead of the expected 422.

DanielAnfelt avatar Nov 29 '19 08:11 DanielAnfelt