#Validation Pipe only display "Bad request exception"

5 messages · Page 1 of 1 (latest)

modest nymph
#

I'm trying to add global validation pipe to my application. I'm using:

app.useGlobalPipes( new ValidationPipe({ exceptionFactory: (errors) => new BadRequestException(errors), transform: true, }), );

but as the title, It doesn't display detail which params is missing or invalid. Please check help me!

wanton acorn
#

What's the reason for the exception factory there instead of what nest does by default?

modest nymph
#

acutally I used default like this app.useGlobalPipes(new ValidationPipe()); but still same

wanton acorn
#

Got a reproduction? There should be fields with what the issue is by default

sacred furnace
#

Can you show the route handler code?