Currently, when using openapi-typescript-codegen to consume the generated openapi.json file from fastify-zod for my frontend, I encounter difficulties due to the incompatibility between the codegen types and the default refStrategy options options used in zod-to-json-schema.
To overcome this limitation and improve the integration between these two amazing tools (great work btw 😄), I propose the addition of a new refStrategy option in the buildJSONSchema options and pass this down to zod-to-json-schema.
Also, given this is just the addition of a passthrough prop, I didn't think writing a whole test for this was necessary 😅
Currently, when using openapi-typescript-codegen to consume the generated
openapi.json
file fromfastify-zod
for my frontend, I encounter difficulties due to the incompatibility between the codegen types and the default refStrategy options options used inzod-to-json-schema
.To overcome this limitation and improve the integration between these two amazing tools (great work btw 😄), I propose the addition of a new
refStrategy
option in thebuildJSONSchema
options and pass this down tozod-to-json-schema
.Also, given this is just the addition of a passthrough prop, I didn't think writing a whole test for this was necessary 😅
Thanks!