elierotenberg / fastify-zod

Zod integration with Fastify
MIT License
212 stars 19 forks source link

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

Open mmalyana opened 1 year ago

mmalyana commented 1 year ago

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?

AllanCochrane commented 12 months ago

+1