This repo demonstrates a simple pathway for going from pydantic to zod via JSON schema. To use, run:
python recipe.py > schema.json
npm run generate
The input is recipe.py
containing a simple pydantic model, and the ouptut is recipe.ts
, TypeScript zod schema.