1.3.4 • Published 1 year ago

open-ts v1.3.4

Weekly downloads
561
License
MIT
Repository
-
Last release
1 year ago

OpenAPI Typescript Generator

This library allows generating code for Typescript and OpenAPI specs. The main feature of this library is the generation of API Clients in Typescript from OpenAPI specs. One of the other features this library supports is generating OpenAPI enums! from Typescript code.

Installation

npm install -g open-ts

Usage

1/ API Agent

Usage

open-ts gen-agent <path/to/your-openapi-specs-file.yml> <path/to/generated/your-ts-file.ts>

2/ OpenAPI enums

This command parses files of the <path/to/dir> and generated OpenAPI specs enums for Typescript enums and Object literals annotated with const keyword. To exclude an object declaration, use the leading comment:

/* open-ts: ignore-convert-enums */

Usage

open-ts convert-enums <path/to/dir> <path/to/generated/your-yaml-file.yml>
1.3.4

1 year ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago