From d14a8eb1b0052ab952514e35bf0062e4db0be71a Mon Sep 17 00:00:00 2001 From: Carson Full Date: Wed, 18 Dec 2024 16:04:54 -0600 Subject: [PATCH] Do not skip null properties on validation / transformation --- src/core/validation/validation.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/validation/validation.pipe.ts b/src/core/validation/validation.pipe.ts index 3f8ecde525..00fe6d0f64 100644 --- a/src/core/validation/validation.pipe.ts +++ b/src/core/validation/validation.pipe.ts @@ -11,7 +11,7 @@ export class ValidationPipe extends BaseValidationPipe { constructor(private readonly moduleRef: ModuleRef) { super({ transform: true, - skipMissingProperties: true, + skipUndefinedProperties: true, exceptionFactory: (es) => new ValidationException(es), }); }