openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
### Problem. I want to generate typescript definitions for the OpenAPI file. The generator doesn't generate typescript definitions for 'components' -> 'headers'. ### Expected behavior. The generator generates typescript definitions...
**Describe the bug** I have an API that has some JSON endpoints and some file endpoints (media type `application/octet-stream`). The generated code works for the JSON endpoints, but for the...
While processing this Spec file (4k lines) - it seems that a recrusive function is causing an StackOverflow. [adh-openapi-docs.json.zip](https://github.com/ferdikoomen/openapi-typescript-codegen/files/7863376/adh-openapi-docs.json.zip) Command used: npx openapi-typescript-codegen --input ./adh-openapi-docs.json --output ./schemas Error: RangeError: Maximum...
hi, i'm curious how this library handles the contextual behavior of `required` properties interacting with `readOnly`/`writeOnly`? from [https://swagger.io/specification](https://swagger.io/specification/#fixed-fields-20) - "If the property is marked as readOnly being true and is...
The bug is identical to this bug from modelina: https://github.com/asyncapi/modelina/issues/450 For example: ``` export enum Operator { ADD = '+', SUB = '-' } ``` Would result in ``` export...
An OpenApi document can contain securitySchemes to indicate that all calls must be done with a JWT or an API-KEY or ... The whole spec : https://swagger.io/docs/specification/authentication/ In my case,...
I used `[email protected]` to parse the `openapi.json` generated by our backend(which uses FastAPI). I find that one of the api is mis-parsed as a request that sends json rather than...
**Describe the solution you'd like** Based on the documentation below, array types in the query should be sent based on the `collectionFormat` property of an array type query parameter with...
In the project I am working on, we use openapi v3. The schema contains objects which use the type `string` with the format `date-time`. example: ```yaml ExampleType: title: ExampleType type:...
Hi, I'm consuming an API that has this path: `/api/v1/management/organizations ` This generates a `OrganizationsService`, which is fine, but there is no mention of management, or even v1 anywhere. If...