swagger-typescript-api
swagger-typescript-api copied to clipboard
TypeScript API generator via Swagger scheme
Hi, I'm currently using this library but i have more than one swagger endpoint. I want merge this more than one swagger endpoints and generate one apiclient.ts file but how...
Hi all. I run npx command to generate api.ts file and getting an error: `Unexpected token =` Full npx command: `npx swagger-typescript-api -p https://localhost:5001/swagger/v1/swagger.json --axios -o ./src/utils/ -n api.ts` log:...
Hello! I generated my swagger file to Api.js. I used -> npx swagger-typescript-api -p ./openapi.yaml --js and then I get two files: - Api.js - Api.d.ts Is it possible not...
We have a permission system in our backend done via enum per each endpoint. I'd like to somehow automate such logic. One way of doing so if swagger will have...
How would the swagger-typescript-api team feel about having the `status` from the response as a typescript union discriminant where rest of the props would be defined based on its value?...
Several of our methods has a number after there name: ``` searchConsumption1 = (data: { filters?: CreditOperationFilters; pageable?: Pageable }, params?: RequestParams) => ``` Ok we have this method in...
I've stumble across a problem when splitting my huge openapi spec file in pieces. We decided to take apart some definitions into different files and reference them from our main...
Converting the http response into the return data or an error takes place in return fetch(requestUrl, requestOptions).then(async (response) => { const data = await this.safeParseResponse(response); if (!response.ok) throw data; return...
Currently, the plugin does not reflect readonly properties. Also, there should be an option to allow export to `.d.ts` file
Currently utility output a lot of warnings about duplicate method naming. I think it should be fixed when custom operation id generator will be improved.