POST @hono/zod-validator seems to fail
I have a fairly minimal use-case, in which I'd like to validate that the json posted to an endpoint is correct ala zod. However, it bombs immediately with the following.
POST some json:
To the handler:
These seems consistent with the documentation at https://github.com/honojs/middleware/tree/main/packages/zod-validator
2 Replies
It seems like the POST data isn't being
await
ed
I forget to set -H "Content-Type: application/json"
just spent two hours debugging that without understanding what was going on
thats what i get for doing a generic client, damn