forked from loafle/openapi-generator-original
Use String for "binary" as a workaronud
This commit is contained in:
parent
9c580a2447
commit
3b5462c1e9
@ -133,8 +133,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
typeMapping.put("double", "Number");
|
typeMapping.put("double", "Number");
|
||||||
typeMapping.put("number", "Number");
|
typeMapping.put("number", "Number");
|
||||||
typeMapping.put("DateTime", "Date");
|
typeMapping.put("DateTime", "Date");
|
||||||
// binary not supported in JavaScript client right now, using Object as a workaround
|
// binary not supported in JavaScript client right now, using String as a workaround
|
||||||
typeMapping.put("binary", "Object");
|
typeMapping.put("binary", "String");
|
||||||
|
|
||||||
importMapping.clear();
|
importMapping.clear();
|
||||||
}
|
}
|
||||||
|
@ -377,7 +377,7 @@
|
|||||||
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
* Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||||
* @param {Integer} petId ID of pet that needs to be fetched
|
* @param {Integer} petId ID of pet that needs to be fetched
|
||||||
* @param {function} callback the callback function, accepting three arguments: error, data, response
|
* @param {function} callback the callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: Object
|
* data is of type: String
|
||||||
*/
|
*/
|
||||||
self.getPetByIdWithByteArray = function(petId, callback) {
|
self.getPetByIdWithByteArray = function(petId, callback) {
|
||||||
var postBody = null;
|
var postBody = null;
|
||||||
@ -420,7 +420,7 @@
|
|||||||
/**
|
/**
|
||||||
* Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
* Fake endpoint to test byte array in body parameter for adding a new pet to the store
|
||||||
*
|
*
|
||||||
* @param {Object} body Pet object in the form of byte array
|
* @param {String} body Pet object in the form of byte array
|
||||||
* @param {function} callback the callback function, accepting three arguments: error, data, response
|
* @param {function} callback the callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
self.addPetUsingByteArray = function(body, callback) {
|
self.addPetUsingByteArray = function(body, callback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user