DEV Community

Cover image for Generating JSON Schema from TypeScript types

Generating JSON Schema from TypeScript types

Matt Angelosanto on July 11, 2023

Written by Ikeh Akinyemi✏️ In modern web development, it’s common to work with complex data that must be transmitted between different application...
Collapse
 
tylim88 profile image
Acid Coder

...why not just use zod

Collapse
 
baohuynhlam profile image
Bao Huynh Lam

I wonder if zod can be converted to JSON Schema. JSON schema is very useful for documentation, especially in OpenAPI setups. In Fastify they use Typebox instead of Zod because of this.