forked from loafle/openapi-generator-original
[javascript] Fix empty response body when schema type is string (#5759)
* [javascript] Fix response body when return type is String. * [javascript] Regenerate javascript petstores with fixed String return type.
This commit is contained in:
committed by
wing328
parent
ef07a02a01
commit
9bc8f37aa6
@@ -420,6 +420,8 @@
|
||||
|
||||
if (returnType === 'Blob') {
|
||||
request.responseType('blob');
|
||||
} else if (returnType === 'String') {
|
||||
request.responseType('string');
|
||||
}
|
||||
|
||||
// Attach previously saved cookies, if enabled
|
||||
|
||||
Reference in New Issue
Block a user