Skip to content

Commit 9694fe4

Browse files
Carbon Digitalmicalevisk
andauthored
Update content/pipes.md
Co-authored-by: Micael Levi L. Cavalcante <[email protected]>
1 parent 4e8c1f2 commit 9694fe4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

content/pipes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ async create(createCatDto) {
331331

332332
> info **Hint** The `@UsePipes()` decorator is imported from the `@nestjs/common` package.
333333
334-
> info **Note** When a DTO already uses `class-validator` to validate each data element, the techniques above using both Joi schema and a DTO are not necessary. You only need one level of validation. However, if your DTO does not have `class-validator` in use, then the Joi schema method could be used like the above example, without worrying about breaking "DRY" principles.
335334

336335
#### Class validator
337336

0 commit comments

Comments
 (0)