openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification

Results 228 openapi-typescript-codegen issues
Sort by recently updated
recently updated
newest added

Currently the generated API client consists of *Service classes which have a bunch of static methods to call the individual end points. This serves as a sort of name spacing,...

> A free-form object (arbitrary property/value pairs) is defined as: > > type: object > > This is equivalent to > > type: object > additionalProperties: true > > and...

**Issue** When the OpenAPI response type is a `binary` type the generated TypeScript has a response type of `Promise` but the response returned is a `string`. E.g. for fetch the...

Sample schema which [validates](https://apitools.dev/swagger-parser/online/): ```yaml openapi: 3.0.0 info: version: 1.0.0 title: Simple API components: schemas: default: type: object properties: name: type: string paths: /artists: get: description: Returns a list of...

Given an openapi fragment like: ``` "Norm" : { "type" : "object", "required" : [ "condition", "value" ], "properties" : { "condition" : { "type" : "string", "example" : "

The code generated by this package is currently not suitable to be easily used in ESM projects. This is because for ESM, we need different import specifiers: https://nodejs.org/api/esm.html#import-specifiers So e.g.:...

In OpenAPI 3, a schema like: ```yaml AnyValues: description: An object whose property values can be of any type type: object additionalProperties: true ``` Should be equivalent to a typescript...

**Describe the bug** https://github.com/vechain/thor/blob/master/api/doc/thor.yaml For all models output looks like: ``` export const $Account = { properties: { }, } as const; ```

At the moment when running the generator, the base url will automatically be replaced with whatever host the api was generated against. In our current project we want to keep...

Using this 3.0 openapi spec: ```yaml openapi: "3.0.0" info: version: 1.0.0 title: Authenticated API Example description: An example API which uses bearer token scopes and JWT auth paths: /things: get:...