Skip to content

Commit 55c350c

Browse files
authored
docs(pipes): remove Joi reference and replace with Zod
1 parent 3e565ed commit 55c350c

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)