@okeeffed/generate-tsrest-client
v0.0.8
Published
Helper to generate a TS Rest client based on a Swagger file and JSON schemas
Downloads
32
Readme
Generate TS Rest client
Helper to generate a client based off JSON schemas and an OpenAPI specification.
Getting started
This requires you to have a target folder of JSON specifications as well as a target OpenAPI compatible JSON file.
You should also checkout TSRest to understand more about usage of the client.
Usage
# Generates a TS Rest client
$ npx @okeeffed/generate-tsrest-client generate -s path/to/swagger.json -j path/to/json-schemas -o path/to/output
The above code will generate a zod-schemas
and client.ts
file at path/to/output
.
Roadmap
- [ ] Support configuration file