Zod for Validation #480
              
                
                  
                  
                    Answered
                  
                  by
                    ggurkal
                  
              
          
                  
                    
                      ChristoRibeiro
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         In my projects I use Zod a lot. @ggurkal do you think it's possible/easy to use Zod for Validation?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ggurkal
          
      
      
        Sep 22, 2022 
      
    
    Replies: 1 comment 2 replies
-
| 
         Hey @ChristoRibeiro It sure is possible. The only thing you need is a validation pipe that uses zod (the original one is here), or you can take some inspiration from https://github.com/kbkk/abitia/tree/master/packages/zod-dto how to do it with DTOs.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        ChristoRibeiro
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Hey @ChristoRibeiro
It sure is possible. The only thing you need is a validation pipe that uses zod (the original one is here), or you can take some inspiration from https://github.com/kbkk/abitia/tree/master/packages/zod-dto how to do it with DTOs.