swagger-typescript-codegen
swagger-typescript-codegen copied to clipboard
A Swagger Codegenerator tailored for typescript.
See #100, more specifically in _src/type-mappers/array.ts_
The way I see it it's not really needed, and just bloats the consumer's bundle size. Using XMLHttpRequest should be sufficient
Is there a way to transform enums into tyepscript string enums instead of string literal type?
Generated mutable types: ``` interface Thing { name: string; children: Array; } type x = ResponseWithBody; ``` Could be immutable types: ``` interface ReadonlyThing { readonly name: string; readonly children:...
The response types can be quite long, and inconvenient to use. `const x: Promise = undefined;` I propose generating some concise type aliases. ``` type SomeAlias1 = ResponseWithBody; type SomeAlias2...
The api methods have docs, but the types themselves do not. **Actual:** Response types are missing JSDocs ``` export type User { id: number; username: string; } ``` **Expected:** JSDocs...
In a perfect world, everyone would version their immutable apis and never introduce breaking changes. But in reality co-workers could introduce breaking api changes. There could potentially be a mismatch...
I'm looking for a good fork of wcandillon's work. This seems a good place to start off - especially since it's hosted by an Microsoft member. Sadly, I'm required to...
Hey there, for libraries like https://www.npmjs.com/package/swagger-typescript-codegen it would be nice, if your tool could generate a Typescript file, out of a YAML file.
There are a few valid ways to define `additionalProperties`. > To define a dictionary, use `type: object` and use the `additionalProperties` keyword to specify the type of values in key/value...