forked from loafle/openapi-generator-original
Update samples for javascript + javascript-promise. (#5241)
This commit is contained in:
parent
4e1d9ea010
commit
36d1406493
@ -414,7 +414,7 @@
|
|||||||
if (accept) {
|
if (accept) {
|
||||||
request.accept(accept);
|
request.accept(accept);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (returnType === 'Blob') {
|
if (returnType === 'Blob') {
|
||||||
request.responseType('blob');
|
request.responseType('blob');
|
||||||
}
|
}
|
||||||
|
@ -97,10 +97,10 @@
|
|||||||
obj['string'] = ApiClient.convertToType(data['string'], 'String');
|
obj['string'] = ApiClient.convertToType(data['string'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('byte')) {
|
if (data.hasOwnProperty('byte')) {
|
||||||
obj['byte'] = ApiClient.convertToType(data['byte'], Blob);
|
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('binary')) {
|
if (data.hasOwnProperty('binary')) {
|
||||||
obj['binary'] = ApiClient.convertToType(data['binary'], Blob);
|
obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('date')) {
|
if (data.hasOwnProperty('date')) {
|
||||||
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
|
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
|
||||||
|
@ -423,7 +423,7 @@
|
|||||||
if (accept) {
|
if (accept) {
|
||||||
request.accept(accept);
|
request.accept(accept);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (returnType === 'Blob') {
|
if (returnType === 'Blob') {
|
||||||
request.responseType('blob');
|
request.responseType('blob');
|
||||||
}
|
}
|
||||||
|
@ -97,10 +97,10 @@
|
|||||||
obj['string'] = ApiClient.convertToType(data['string'], 'String');
|
obj['string'] = ApiClient.convertToType(data['string'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('byte')) {
|
if (data.hasOwnProperty('byte')) {
|
||||||
obj['byte'] = ApiClient.convertToType(data['byte'], Blob);
|
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('binary')) {
|
if (data.hasOwnProperty('binary')) {
|
||||||
obj['binary'] = ApiClient.convertToType(data['binary'], Blob);
|
obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('date')) {
|
if (data.hasOwnProperty('date')) {
|
||||||
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
|
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user