Skip to content

Commit 31f85a7

Browse files
Merge pull request nestjs#3059 from ruscon/fix/class-validator-external-interface
fix(common): class-validator interface v0.10.1
2 parents f722491 + 4e199d0 commit 31f85a7

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

packages/common/interfaces/external/validator-options.interface.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@
22
* Options passed to validator during validation.
33
* @see https://github.com/typestack/class-validator
44
*
5+
* class-validator@0.10.1
6+
*
57
* @publicApi
68
*/
79
export interface ValidatorOptions {
810
/**
9-
* If set to true than validator will skip validation of all properties that are missing in the validating object.
11+
* If set to true then validator will skip validation of all properties that are undefined in the validating object.
12+
*/
13+
skipUndefinedProperties?: boolean;
14+
/**
15+
* If set to true then validator will skip validation of all properties that are null in the validating object.
16+
*/
17+
skipNullProperties?: boolean;
18+
/**
19+
* If set to true then validator will skip validation of all properties that are null or undefined in the validating object.
1020
*/
1121
skipMissingProperties?: boolean;
1222
/**
@@ -25,7 +35,7 @@ export interface ValidatorOptions {
2535
groups?: string[];
2636
/**
2737
* If set to true, the validation will not use default messages.
28-
* Error message will always be undefined if it's not explicitly set.
38+
* Error message always will be undefined if its not explicitly set.
2939
*/
3040
dismissDefaultMessages?: boolean;
3141
/**
@@ -42,7 +52,7 @@ export interface ValidatorOptions {
4252
value?: boolean;
4353
};
4454
/**
45-
* Setting true will cause failed validation of unknown objects.
55+
* Settings true will cause fail validation of unknown objects.
4656
*/
4757
forbidUnknownValues?: boolean;
4858
}

0 commit comments

Comments
 (0)