#set specific route non whitelisted in validation pipe

2 messages · Page 1 of 1 (latest)

fiery grail
#

Hi,
I have a global validation pipe (class-validator) that I configured with { forbidNonWhitelisted: true, whitelist: true } but I want a specific route that will allow non-whitelisted properties in the arriving schema (since the route receives requests from a 3rd party that might change what it is sending)
is there a way to override this configuration just in specific routes?

scenic sky