src/core/pipes/validation.pipe.ts
env variables validation pipeline
ValidatorOptions
Properties |
|
disableErrorMessages |
disableErrorMessages:
|
Type : boolean
|
Optional |
If error messages should be disabled |
exceptionFactory |
exceptionFactory:
|
Type : function
|
Optional |
Exception factory |
transform |
transform:
|
Type : boolean
|
Optional |
If it should be transformed |
import { ValidationError, ValidatorOptions } from 'class-validator';
/**
* env variables validation pipeline
*/
export interface ValidationPipeOptions extends ValidatorOptions {
/**
* If it should be transformed
*/
transform?: boolean;
/**
* If error messages should be disabled
*/
disableErrorMessages?: boolean;
/**
* Exception factory
*/
exceptionFactory?: (errors: ValidationError[]) => any;
}