openapi-generator
openapi-generator copied to clipboard
[BUG] [typescript-fetch] JSON.stringify on `text/plain` requestBody
const init: RequestInit = {
...overridedInit,
body:
isFormData(overridedInit.body) ||
overridedInit.body instanceof URLSearchParams ||
isBlob(overridedInit.body)
? overridedInit.body
: JSON.stringify(overridedInit.body),
};
Here, you can see the request body is stringified, resulting in "body-text" rather than the expected body-text
Generator Version: 6.1.0 (latest) Generator: typescript-fetch