Replies: 1 comment
-
I've been able to solve this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm using Zod validation in my Hono project, and I'm finding it a bit tricky to access validation errors when my controllers are defined in separate files. Here's a simplified example of my setup:
The line await c.req.json("json") throws an error: "Expected 0 arguments, but got 1". I understand that Zod validation likely parses the data beforehand, but I'm unsure how to access the validation errors or the parsed body within my controller function.
my question is
Beta Was this translation helpful? Give feedback.
All reactions