fastify-type-provider-zod
fastify-type-provider-zod copied to clipboard
This will be very useful, for example modifying the contentEncoding for binary files when using a `z.string().base64()` with latest zod(3.23)
I added a way to add refs to your schema and modified the type provider correctly for when this PR is accepted: https://github.com/fastify/fastify/discussions/5311
Currently, fastify-swagger allows the specification of a 204 without any content: https://github.com/fastify/fastify-swagger?tab=readme-ov-file#empty-body-responses ``` { response: { 204: { type: 'null', description: 'No Content' }, 503: { type: 'null', description: 'Service...
For use with fastify-swagger, I'd like to be able to add examples at the property level and at the schema level. From reading the code, it seems like this library...
The NPM Module is outdated and lacks features as `FastifyPluginAsyncZod`.
I have custom JwtAuth hook and I use it on specific routes. ``` export const jwtAuth: preValidationHookHandler = (request, res, next) => { if (request.headers.cookie) { try { const token...
example: the following route if you open `http://127.0.0.1:3003/x/12` it will fail `expected number, received string`. ``` fastify.withTypeProvider().get("/x/:n", { schema: { params: z.object({ n: z.number() }), response: { 200: z.object({ n:...
ref https://github.com/turkerdev/fastify-type-provider-zod/issues/52