swagger-codegen-ts icon indicating copy to clipboard operation
swagger-codegen-ts copied to clipboard

Typesafe Swagger API generator for TypeScript

Results 30 swagger-codegen-ts issues
Sort by recently updated
recently updated
newest added

Generated code uses Blob type in utils.ts, but Blob does not exists in NodeJS

![image](https://user-images.githubusercontent.com/31949379/140900526-b1226b49-511c-4197-9dd4-05d400562a05.png) in this snippet, the function is called three times with the same result, almost. Perhaps you can get by with just one function call.

Please check if it is possible to pass the original filename from the `content-disposition` header to the consumers

OpenAPI 3.0: - Requests: - [ ] single file uploads - [ ] upload as part of a multipart request - [ ] file array in a multipart request -...

enhancement
language: typescript 2.0
language: typescript 3.0
language: typescript asyncapi 2.0

After #133, the headers are now supported. It looks like only `formData` has left from #57.

enhancement
language: typescript 2.0
language: typescript 3.0

There is a chance for`isRoot` false negative result due to specific filepath "normalizing" in "json-schema-ref-parser" lib: https://github.com/APIDevTools/json-schema-ref-parser/blob/0980b0a89b7181655129e4e6be7da78dd10d6a4c/lib/util/url.js#L231 So check for root ( https://github.com/devexperts/swagger-codegen-ts/blob/a1ef03aa4b3c586aa9987499917a9781eb49605b/src/index.ts#L50 ) will fail in some cases: spec...

After starting `generate` I receive an error in generated controllers. The error is ![image](https://user-images.githubusercontent.com/19936650/74423347-6827a400-4e50-11ea-9549-de2830b42bb5.png) `generate` function is same as `test1` in [tests](https://github.com/devexperts/swagger-codegen-ts/blob/master/test/index.ts) Libs: ``` "fp-ts": "^2.4.4", "io-ts": "^2.0.1", "io-ts-reporters": "^1.0.0",...

If your spec file is in yaml format and you have a SyntaxError, you still see the old message: > file.yaml is not a valid JSON Schema

how about use x-name or something for generated name?

Add: - resolver - parser - typescript-language serializer (no need for css since css-custom-properties can be inlined in `body :root` /cc @sutarmin

enhancement