File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,7 @@ import { ValidationPipe } from '@nestjs/common';
55async function bootstrap ( ) {
66 const app = await NestFactory . create ( AppModule ) ;
77
8- /*
9- Warning for the AC team:
10- When whitelist is true, NestJS will automatically remove any properties from the incoming data that are not defined in your DTO class.
11- When forbidNonWhitelisted is true, instead of removing the extra properties, NestJS will throw an error if it finds any field not defined in your DTO.
12- When transform is true, NestJS will automatically transform payloads to be objects typed according to their DTO classes.
13-
14- # hint for the future: while making users module add a dto folder inside users module and define your dtos there.
15- # TODO: add common dtos for requests and responses
16- */
8+ // TODO: add common dtos for requests and responses
179
1810 app . useGlobalPipes (
1911 new ValidationPipe ( {
You can’t perform that action at this time.
0 commit comments