@sebspark/openapi-typegen v1.10.0
@sebspark/openapi-typegen
Generates types and a routerdefinition from OpenAPI specs
Usage
This is an example assuming that you have one schema, marketdata.json
. The name
of this file will be used to generate Server and Client names.
This example can be found in @sebspark/openapi-e2e
yarn openapi-typegen -i ./src/schemas/ -o ./src/schemas/
The schema will export all types defined in the OpenAPI spec as well as:
MarketdataAPIServer
- a server definition meant to be used with @sebspark/openapi-express
MarketDataAPIClient
- a client definition meant to be used with @sebspark/openapi-client
9 months ago
10 months ago
10 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago