Skip to content

Commit 51d5bd1

Browse files
docs: update JSDoc default value for forbidUnknownValues (#2322)
1 parent 0b50d8d commit 51d5bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation/ValidatorOptions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface ValidatorOptions {
7272
};
7373

7474
/**
75-
* Fails validation for objects unknown to class-validator. Defaults to false.
75+
* Fails validation for objects unknown to class-validator. Defaults to true.
7676
*
7777
* For instance, since a plain empty object has no annotations used for validation:
7878
* - `validate({})` // passes

0 commit comments

Comments
 (0)