0.0.8 • Published 10 months ago
@okeeffed/generate-tsrest-client v0.0.8
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
0.0.8
10 months ago