turkerdev / fastify-type-provider-zod

MIT License
337 stars 21 forks source link

Validation is not invoked for responses on primitive response types #16

Open kibertoad opened 2 years ago

kibertoad commented 2 years ago

If handler is returning a primitive type as a response (e. g. a string), serializer is not used, and response validation does not happen

We probably should create a custom plugin which could be registered for handling such cases.