swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

TypeScript API generator via Swagger scheme

Results 247 swagger-typescript-api issues
Sort by recently updated
recently updated
newest added

I have an object of a product that has some non nullable properties such as ProductId and price with the following schema generated by swagger ``` "ProductBasicInfo": { "type": "object",...

# Problem When generating an Axios client, the `Content-Type` headers are not being set correctly if using the default `type` param to specify the content type (note: if you specify...

I have read through docs and issues, and haven't been able to find out if there's a way to do this. ### Current behavior The tool currently generates array types...

## Summary If a path parameter has a dot in it (e.g. `item.id`) then `swagger-typescript-api` will rewrite this to camelCase for the _parameter name_ but not in the path string...

# Steps to Reproduce - Clone [this repo](https://github.com/rodriguezmarting/LogrocketAxiosMSW/tree/master) - `npm install && npm run generate:api` - `npm run dev` - Open the app in any browser and check the console...

Got missing function for Typescript v4.8.x onwards. fileExists required.

Hi, it looks like there is unreachable code detected in createFormData method (typescript axios): ![image](https://user-images.githubusercontent.com/1918108/185388446-04dc6562-f1b9-4d76-8b25-7ba0b518eb81.png)

Generated axios request template: I have 2 different schemas for request and response: Request schema: (**id** and **color** are optional to create this entity) ``` StageModel { id?: number; name:...

Add text parser when content-type is type text in response.

I got error while trying my url json api file. ``` error while getting swagger by URL http://xxx.xxx.com/latest.json [AxiosError: maxContentLength size of -1 exceeded] ``` this json file length is...