Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vkbansal/openapi-to-ts
https://github.com/vkbansal/openapi-to-ts
codegen codegenerator javascript openapi swagger typescript
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vkbansal/openapi-to-ts
- Owner: vkbansal
- Created: 2020-06-06T11:28:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T06:24:07.000Z (over 2 years ago)
- Last Synced: 2024-11-11T16:25:19.219Z (3 months ago)
- Topics: codegen, codegenerator, javascript, openapi, swagger, typescript
- Language: TypeScript
- Size: 2.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenAPI to TypeScript
Command-line utility for converting OpenAPI (formerly Swagger) definitions to TypeScript.
## Installation
WIP
## Usage
```
Usage: oa2ts [args]Commands:
oa2ts import Import OpenAPI specification and output TypeScript codeOptions:
--version Show version number [boolean]
--help Show help [boolean]```
### Available commands
### import
```
oa2ts importImport OpenAPI specification and output TypeScript code
Options:
--version Show version number [boolean]
--help Show help [boolean]
--file Path to OpenAPI spec file. Can be either a JSON or YAML file.
[string]
--url URL to remote OpenAPI spec file. [string]
-o, --output Location for the output. [string]
-c, --config Location for the config file. [string]
--verbose Shows verbose output [boolean]```