File tree Expand file tree Collapse file tree
packages/common/interfaces/external Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
79export 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}
You can’t perform that action at this time.
0 commit comments