swagger-typescript-api
swagger-typescript-api copied to clipboard
TypeScript API generator via Swagger scheme
There seems to be an issue generating union types when multiple media types exist that alter the requirements for the request body. Example path with multiple media types ([right from...
Given a path that accepts a put operation with a text/plain body: ```yml info: title: Demo version: '1.0' swagger: '2.0' paths: '/agency': put: consumes: - text/plain produces: - text/plain parameters:...
A fix is needed to convert arrays to query parameters. Now, instead of a similar `site.io/request?id=100&id=200` it is done like this `site.io/request?id[]=100&id[]=200`
May I suggest a small improvement. When swagger defines a property with "readOnly":true, then the generated property should also be marked as readonly. This will help type-checking what is passed...
Hi! Is it possible to add an option to generate ``` export type User = { username?: string; uuid?: string; } ``` instead of ``` export interface User { username?:...
Hi, I'm trying to generate ts-axios client for the strava api but can't generate the response models correctly. All response types are just 'any' or 'any[]'. I'm using the script...
Hi! Love your package, very useful. We were attempting to use custom ETA templates but we noticed promises don't appear to be supported currently by `swagger-typescript-api`. # Minimal replicable example...
  ) In node, can not support
Hello! Thank you everyone for this amazing library, its been working wonderfully for me. I have a few features in mind for the library but one simple add might be...
When generating enums (without `--union-enums`), there are two things that can happen when there are numbers in the enum values: 1. An enum value prefixed with underscore and a number...