schema2typebox
Version:
Creates typebox code from JSON schemas
11 lines (8 loc) • 379 B
Markdown
When schema2typebox is installed (simply issue npm i -g schema2typebox to do
so), clone the repo, cd into this directory and:
- Remove the old generated-typebox.ts file `rm generated-typebox.ts`
- Use schema2typebox to generate the typebox code based on the schema.json file.
`schema2typebox`
- generated-typebox.ts should now again exist in the folder
- done 🎉