Closed tzezar closed 4 months ago
It's a behavior from Fastify.
The send
method param is optional, so you can pass whatever was inferred from the schema or undefined
(nothing).
I've already opened an issue to discuss this point https://github.com/fastify/fastify/issues/5534
having schema set like this
sending blank response DOES NOT raise ts error
changing it to object does raise ts err