1.0.4 • Published 8 months ago

openapi-to-ts-definitions v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

openapi-to-ts-definitions

Transforms OpenAPI 3.1 component schemas into TypeScript definitions.

Usage

npx openapi-to-ts-definitions --input-file api/my-openapi-spec.yaml --output-file models.ts

Note that it's expected that your API YAML meets OpenAPI 3.1 specifications or the results may be unexpected.

Command line arguments

--input-file Description: The path to the input file that contains the OpenAPI YAML.

--output-file Description: The path to where the results should be written. Default value: models.ts

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago