Replies: 3 comments
-
Running into the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Me too. I'm using Hono as webserver. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same with Hono. To avoid error, provide Content-Type header + some JSON payload as body. Example: curl --location 'http://localhost:8000/notes' \
--header 'Content-Type: application/json' \
--data '{"accessCode": "12"}' |
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
-
I am encountering an issue when using
zValidator
with a JSON schema in my Node.js application. Specifically, I am receiving the error "Invalid HTTP header: Content-Type=undefined" when trying to validate JSON data using the following schema and validation setup:What I want to achieve:
accessCode
is a boolean.Is it possible to achieve these requirements with Zod and zValidator? If so, how can I modify my setup to accomplish this? If not, are there any workarounds or alternative approaches I can consider?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions