mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
[JS] Fix JavaScript string return type (#5819)
* [javascript] Fix response body when return type is String. * [javascript] Regenerate javascript petstores with fixed String return type. * [javascript-es6] Fix response body when return type is string.
This commit is contained in:
parent
f163fdb980
commit
dc7c1f8cb9
@ -434,6 +434,8 @@ export default class ApiClient {
|
||||
|
||||
if (returnType === 'Blob') {
|
||||
request.responseType('blob');
|
||||
} else if (returnType === 'String') {
|
||||
request.responseType('string');
|
||||
}
|
||||
|
||||
// Attach previously saved cookies, if enabled
|
||||
|
Loading…
Reference in New Issue
Block a user