@principlestudios/openapi-codegen-typescript
v0.9.0
Published
A typescript client code generator for principled development
Keywords
Readme
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-typescriptYou 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/ -cThe 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#.
