how to validate with zod #2931
-
hi,please how to validate with zod for req.params and req.body etc ? |
Beta Was this translation helpful? Give feedback.
Answered by
wolfgangwalther
Sep 15, 2023
Replies: 1 comment
-
Maybe you can use something like https://www.npmjs.com/package/openapi-zod-client to convert the OpenApi output of PostgREST to a zod schema and then validate your typescript code with that? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wolfgangwalther
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe you can use something like https://www.npmjs.com/package/openapi-zod-client to convert the OpenApi output of PostgREST to a zod schema and then validate your typescript code with that?