zod-to-json-schema #563
Replies: 3 comments 2 replies
-
Hey Stefan, I did something similar, with the aim to generate an OpenAPI JSON object (for a swagger interface) I took a slightly different approach and used a map of functions for conversion. OpenAPI just extends JSON Schema, so there is a good chunk of crossover. |
Beta Was this translation helpful? Give feedback.
-
@StefanTerdell Feel free to add your project in a PR, I'll help get it merged for you. |
Beta Was this translation helpful? Give feedback.
-
Loving both the packages @StefanTerdell! I feel like it should be a part of Zod since they are interoperable (in my testing, might have some edge cases). Would like this first class support: |
Beta Was this translation helpful? Give feedback.
-
Hey! Just saw the ecosystem paragraph in the readme. I've made a zod to jsonSchema converter available here.
Thanks for making Zod! It's pretty awesome
Beta Was this translation helpful? Give feedback.
All reactions