@nestjs/common#ValidationPipeOptions TypeScript Examples

The following examples show how to use @nestjs/common#ValidationPipeOptions. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: global-validation.pipe.ts    From aqualink-app with MIT License 5 votes vote down vote up
constructor(options?: ValidationPipeOptions & CustomOptions) {
    super(options);
    this.skipTransformIds = (options && options.skipTransformIds) || [];
  }
Example #2
Source File: validation-pipe.ts    From mamori-i-japan-api with BSD 2-Clause "Simplified" License 5 votes vote down vote up
VALIDATION_PIPE_OPTIONS: Readonly<ValidationPipeOptions> = {
  transform: true,
  whitelist: true,
  forbidNonWhitelisted: true,
}