swagger-typescript-api
swagger-typescript-api copied to clipboard
TypeScript API generator via Swagger scheme
## Summary Fixes #1429 - Response object mutation fails in ESM environments ## Problem The Fetch client template directly mutates Response objects by adding `data` and `error` properties. This works...
Contributes to #314 Signed-off-by: Stefan Cooper
# Description Today i tried updating from `13.2.8 -> 13.2.13`. I have the following problems: ## 1. I have `extractRequestParams` set. I have one path param. Before my first parameter...
Hi, For now we can generate one module name based on the route. Example: 'fruits/getFruit' it will generate fruits.getFruit(...). Is it possible to generate submodules based on the route like:...
In a functional codebase consumers of `swagger-typescript-api` would want to force properties and values to be immutable even if swagger spec does not have `readOnly` property. With this change one...
Form Data "files" is not correctly handled as an array of objects in fetch templates and is inconsistent with the axios templates. As a result, an array of files in...
## Problem The generated Fetch client attempts to directly mutate the Response object by adding `data` and `error` properties. This fails in ESM environments using node-fetch v3 because Response objects...
…ly handled I was facing this issue with `[email protected]`. For a `PUT` request expecting `application/x-www-form-urlencoded`, The generated swagger.json has the correct config: ``` "consumes": ["application/x-www-form-urlencoded"] ``` However, the generated code...