Options dedicated file
Let's just have a bit more of organization with our options object.
export const VALIDATION_PIPE_OPTIONS: ValidationPipeOptions = {
whitelist: true,
forbidNonWhitelisted: true,
transform: true,
transformOptions: {
enableImplicitConversion: true,
},
};new ValidationPipe(VALIDATION_PIPE_OPTIONS)Last updated