cagrison
cagrison
I'm using this on nestJS with DTO's. Is this enough to adding this main.ts to avoid from this vulnerability? `app.useGlobalPipes(new ValidationPipe({ forbidUnknownValues: true }));`
Is there a something more to do using class-validator with DTO and Swagger?. I've added `new ValidationPipe({ transform: true, forbidUnknownValues: true, forbidNonWhitelisted: true, }),` to my mainTS but i still...
> > Is there a something more to do using class-validator with DTO and Swagger?. > > Did you set `whitelist: true` in the options? `app.useGlobalPipes( new ValidationPipe({ forbidUnknownValues: true,...
> Yes, if you're using NestJS DTOs, this is sufficient and in most cases you don't need to do much else: > > ```ts > app.useGlobalPipes( > // Globally validate...
any news?
> Same error +1 I've fixed this problem. Forked the library changed little bit. I can share you later when i customized it. Without customized, i couldn't managed to run....