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

Hello. I caught one issue with the sort function. ![image](https://user-images.githubusercontent.com/51864449/170973825-189d4309-b54a-4672-be69-b9a368934115.png) ``` content: schema.rawTypeData['$parsed'].content.sort(sortByName)} ``` After some research I've found that in openapi we have this ` "TriggerAPISchema": "title":"TriggerAPISchema","type":"object","properties":{}}` which in...

bug
next release

Node version: 16.15.0 OS: Windows Code to reproduce: package.json ``` { "name": "swagger-typescript-api-bug", "version": "1.0.0", "description": "", "type": "module", "main": "index.js", "scripts": { "fetch-types": "swagger-typescript-api -p https://my-website-api.com" }, "license": "ISC",...

bug

https://github.com/acacode/swagger-typescript-api/blob/7df956c236d1e7fc051658cd7012c8ea22286b44/src/routes.js#L151 https://opensource.zalando.com/restful-api-guidelines/#129 - Zalando MUST.

bug

In swagger 2, additionalProperties are very limited. They didn't support the true and {} values. To replace this they define it like this ``` MyObject: type: object properties: id: type:...

bug

Hello, Thanks so much for this solution, many of us really appreciate it. I've been trying to get things to work with `nullable: true`. I have a situation where I...

bug
good first issue

input json file: ```operationId": "sample_getInfo``` expected output: ```sample_getInfo``` actual output: ```sampleGetInfo``` Please add option like "--allow-special-character".

enhancement
good first issue
lot-of-changes

The following schema: ```json { "enum": ["&&", "||"], "type": "string" } ``` is compiled to ```ts export enum RuleChainingOperator { Type = '&&', Type = '||', } ```

bug
research

I can't seem to get enums to be generated. What I understand from the documentation is that enums should be generated by default. I'm trying out the petstore example: `...

research
maybe_bug

Hi there, I'm wondering if it's possible to extract `data-contracts.eta` to a different file when `modular` is set to `false`? Not sure how to go about it. Many thanks in...

enhancement

How can i customize name generating of api calls? For this moment i see that name generate from route parts and word Create that is not comfortable for me ![image](https://user-images.githubusercontent.com/57916019/184615915-8d2dffb9-be8f-4bd3-a768-56175a21f162.png)