Open severireivinen opened 2 days ago
Thank you for the report! I will try to reproduce
@severireivinen I cannot reproduce the error, see https://github.com/turkerdev/fastify-type-provider-zod/pull/114
Could you please send a PR with a modification of the test from https://github.com/turkerdev/fastify-type-provider-zod/pull/114, adjusted to be closer to your use-case, illustrating how it is failing? I suspect that the error might be on your side rather than within the library (not reacting correctly to some of the behaviour changes in the major release)
Been updating our dependencies and noticed that latest version of this package doesn't return proper error when validation fails.
Example route (this is wrapped in TypeProvider):
Currently using v2.1.0 Passing invalid body to endpoint correctly returns status 400
Updating to 3.0.0 Passing invalid body to endpoint now returns 500