fastify-zod icon indicating copy to clipboard operation
fastify-zod copied to clipboard

How to trigger a 400 error when there are unknown properties in the request body

Open mmalyana opened this issue 1 year ago • 1 comments

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?

mmalyana avatar Sep 12 '23 16:09 mmalyana

+1

AllanCochrane avatar Nov 20 '23 22:11 AllanCochrane