Skip to content

Commit bf400a0

Browse files
Merge pull request #2913 from hubertmine/patch-2
docs(pipes): remove Joi reference and replace with Zod
2 parents 3e565ed + 55c350c commit bf400a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/pipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ Next, we use the class-transformer function `plainToInstance()` to transform our
407407

408408
Finally, as noted earlier, since this is a **validation pipe** it either returns the value unchanged, or throws an exception.
409409

410-
The last step is to bind the `ValidationPipe`. Pipes can be parameter-scoped, method-scoped, controller-scoped, or global-scoped. Earlier, with our Joi-based validation pipe, we saw an example of binding the pipe at the method level.
410+
The last step is to bind the `ValidationPipe`. Pipes can be parameter-scoped, method-scoped, controller-scoped, or global-scoped. Earlier, with our Zod-based validation pipe, we saw an example of binding the pipe at the method level.
411411
In the example below, we'll bind the pipe instance to the route handler `@Body()` decorator so that our pipe is called to validate the post body.
412412

413413
```typescript

0 commit comments

Comments
 (0)