Skip to content

Commit 7294108

Browse files
authored
docs: added note about nested validation and object creation (#571)
1 parent 62678e1 commit 7294108

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ export class Post {
318318
}
319319
```
320320

321+
Please note that nested object *must* be an instance of a class, otherwise `@ValidateNested` won't know what class is target of validation. Check also [Validating plain objects](#validating-plain-objects).
322+
321323
It also works with multi-dimensional array, like :
322324

323325
```typescript

0 commit comments

Comments
 (0)