From 55c350c1059afc8a38d404e8c0b729f83cfabd1c Mon Sep 17 00:00:00 2001 From: Hubert Mine Date: Fri, 1 Dec 2023 09:20:43 +0100 Subject: [PATCH] docs(pipes): remove Joi reference and replace with Zod --- content/pipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/pipes.md b/content/pipes.md index fb68876a9e..d3b20cbcda 100644 --- a/content/pipes.md +++ b/content/pipes.md @@ -407,7 +407,7 @@ Next, we use the class-transformer function `plainToInstance()` to transform our Finally, as noted earlier, since this is a **validation pipe** it either returns the value unchanged, or throws an exception. -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. +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. 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. ```typescript