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

The procedure call template uses the presence of `requestParams` to decide whether to actually do the `--extract-request-params` behavior, i.e., put path _and_ query params in a single object that is...

this may be an issue with next.js is anyone has set something like this up for it I am recieving the error TypeError: Cannot read properties of undefined (reading 'mergeRequestParams')...

Thank you very much for this tool, which has greatly facilitated our development work. Recently, while using the tool, I encountered a scenario where I needed to define some extra...

Instead of rewriting the templates, I want to be able to extend the underlying HttpClient class, e.g.: ``` class ApiWithErrorHandling extends Api { async request(params: FullRequestParams): Promise { try {...

Needed this for my project, (using a custom template), But thought it might be useful for an option, but it's a bit verbose in the CLI. Could be cleaner in...

I have schema with globally set security for all paths. But some of the paths override global security with empty value to disable security. When I generate http client for...

Hi, I have a problem to use the typescript api generator. In the examples of the api generator there is a possibility to set username and password for the api,...

I'm confused as to the purpose of this line of code: https://github.com/acacode/swagger-typescript-api/blob/5817a95706be4299b4afa76801e940bd62020742/src/schema.js#L210 It produces a type like: ```typescript type Thing = A | B | C | (A & B...

Steps to reproduce: > npm i swagger-typescript-api -g + [email protected] >npx swagger-typescript-api -p .\swagger.json -o ./src/app/api -n client.ts ``` C:\work\notidar-web\node_modules\swagger-typescript-api\src\index.js:164 if(schema.rawTypeData?.properties) { ^ SyntaxError: Unexpected token '.' ←[90m at wrapSafe...

It would be great if `swagger-typescript-api` supported a configuration file. Currently the options are: * Pass a lot of command line arguments * Write a custom JS script and call...