@principlestudios/openapi-codegen-typescript
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

OpenAPI Codegen for a TypeScript-friendly Open API clients

Uses Microsoft.OpenApi.Readers along with custom templates in order to generate generalized TypeScript objects for creating clients of many shapes. Delivered via an npm package.

npm i -D @principlestudios/openapi-codegen-typescript

You must also have dotnet 8.0 runtime installed on your machine.

This will provide a corresponding bin to generate the typescript files.

openapi-codegen-typescript api.yaml api-generated/ -c

The above example will take as input an api.yaml, output an api-generated/ folder with all the typescript files and a gitignore. You should add this as part of your CI process with only the OpenAPI spec checked in, or download the spec as part of the CI process.

Written in C#.

Readme

Keywords

none

Package Sidebar

Install

npm i @principlestudios/openapi-codegen-typescript

Weekly Downloads

90

Version

0.8.0

License

BSD-2-Clause

Unpacked Size

2.22 MB

Total Files

30

Last publish

Collaborators

  • tonymishler
  • jordanrhode
  • chelfers-sp
  • mdekrey