SchemToTypes is a command-line interface (CLI) tool that converts API JSON/YAML schema into types for Go or TypeScript.
- Convert API JSON/YAML schema into Go types
- Convert API JSON/YAML schema into TypeScript types
To install schemToTypes cli if you have golang in your system you can run the following command:
go install https://github.com/TheAPIguys/schemToTypes
schemToTypes go -f schema.json -n myTypes
schemToTypes ts -f schema.json -n myTypes
schemToTypes help
schemToTypes