swagger-typescript-api
swagger-typescript-api copied to clipboard
TypeScript API generator via Swagger scheme
Hello. I caught one issue with the sort function.  ``` 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...
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",...
https://github.com/acacode/swagger-typescript-api/blob/7df956c236d1e7fc051658cd7012c8ea22286b44/src/routes.js#L151 https://opensource.zalando.com/restful-api-guidelines/#129 - Zalando MUST.
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:...
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...
input json file: ```operationId": "sample_getInfo``` expected output: ```sample_getInfo``` actual output: ```sampleGetInfo``` Please add option like "--allow-special-character".
The following schema: ```json { "enum": ["&&", "||"], "type": "string" } ``` is compiled to ```ts export enum RuleChainingOperator { Type = '&&', Type = '||', } ```
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: `...
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...
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 