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
@@ -423,6 +423,8 @@
|
|||||||
|
|
||||||
if (returnType === 'Blob') {
|
if (returnType === 'Blob') {
|
||||||
request.responseType('blob');
|
request.responseType('blob');
|
||||||
|
} else if (returnType === 'String') {
|
||||||
|
request.responseType('string');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach previously saved cookies, if enabled
|
// Attach previously saved cookies, if enabled
|
||||||
|
|||||||
@@ -429,6 +429,8 @@
|
|||||||
|
|
||||||
if (returnType === 'Blob') {
|
if (returnType === 'Blob') {
|
||||||
request.responseType('blob');
|
request.responseType('blob');
|
||||||
|
} else if (returnType === 'String') {
|
||||||
|
request.responseType('string');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach previously saved cookies, if enabled
|
// Attach previously saved cookies, if enabled
|
||||||
|
|||||||
@@ -420,6 +420,8 @@
|
|||||||
|
|
||||||
if (returnType === 'Blob') {
|
if (returnType === 'Blob') {
|
||||||
request.responseType('blob');
|
request.responseType('blob');
|
||||||
|
} else if (returnType === 'String') {
|
||||||
|
request.responseType('string');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach previously saved cookies, if enabled
|
// Attach previously saved cookies, if enabled
|
||||||
|
|||||||
@@ -420,6 +420,8 @@
|
|||||||
|
|
||||||
if (returnType === 'Blob') {
|
if (returnType === 'Blob') {
|
||||||
request.responseType('blob');
|
request.responseType('blob');
|
||||||
|
} else if (returnType === 'String') {
|
||||||
|
request.responseType('string');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach previously saved cookies, if enabled
|
// Attach previously saved cookies, if enabled
|
||||||
|
|||||||
@@ -429,6 +429,8 @@
|
|||||||
|
|
||||||
if (returnType === 'Blob') {
|
if (returnType === 'Blob') {
|
||||||
request.responseType('blob');
|
request.responseType('blob');
|
||||||
|
} else if (returnType === 'String') {
|
||||||
|
request.responseType('string');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach previously saved cookies, if enabled
|
// Attach previously saved cookies, if enabled
|
||||||
|
|||||||
Reference in New Issue
Block a user