fastify-zod
fastify-zod copied to clipboard
How to trigger a 400 error when there are unknown properties in the request body
I'm attempting to trigger a 400 error response when there are unknown properties present in the request body. However, it seems that the strict
and refine
functions are not working as expected in this context. How can I resolve this problem?
+1