diff --git a/content/techniques/validation.md b/content/techniques/validation.md index 286ef9598f..78e525a43b 100644 --- a/content/techniques/validation.md +++ b/content/techniques/validation.md @@ -30,7 +30,7 @@ Because this pipe uses the [`class-validator`](https://github.com/typestack/clas export interface ValidationPipeOptions extends ValidatorOptions { transform?: boolean; disableErrorMessages?: boolean; - exceptionFactory?: (errors: ValidationError[]) => any; + exceptionFactory?: (errors: ValidationError[] | string[]) => any; } ``` @@ -129,6 +129,16 @@ In addition to these, all `class-validator` options (inherited from the `Validat
boolean
disableFlattenErrorMessages
boolean
ValidationError
objects, rather than being flattened into an array of strings.flatExceptionFactoryMessage
boolean