Skip to content

Commit 2da9d4c

Browse files
Merge pull request nestjs#2868 from alouini333/hotfix/docs_fix_wording
docs(pipes): update wording
2 parents a53ab1e + e290002 commit 2da9d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/pipes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export class CreateCatDto {
218218
}
219219
```
220220

221-
We want to ensure that any incoming request to the create method contains a valid body. So we have to validate the three members of the `createCatDto` object. We could do this inside the route handler method, but doing so is not ideal as it would break the **single responsibility rule** (SRP).
221+
We want to ensure that any incoming request to the create method contains a valid body. So we have to validate the three members of the `createCatDto` object. We could do this inside the route handler method, but doing so is not ideal as it would break the **single responsibility principle** (SRP).
222222

223223
Another approach could be to create a **validator class** and delegate the task there. This has the disadvantage that we would have to remember to call this validator at the beginning of each method.
224224

0 commit comments

Comments
 (0)