forked from loafle/openapi-generator-original
Merge pull request #1690 from thibaultclem/master
[Javascript] Fix syntax issue when generating Javascript client operation without parameters
This commit is contained in:
@@ -20,7 +20,7 @@ var {{classname}} = function {{classname}}() {
|
||||
{{/allParams}} * @param {function} callback the callback function
|
||||
* @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}
|
||||
*/
|
||||
self.{{nickname}} = function({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}, callback) {
|
||||
self.{{nickname}} = function({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{#hasParams}}, {{/hasParams}}callback) {
|
||||
|
||||
var {{localVariablePrefix}}postBody = {{#bodyParam}}{{^isBinary}}JSON.stringify({{paramName}}){{/isBinary}}{{#isBinary}}null{{/isBinary}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
|
||||
var {{localVariablePrefix}}postBinaryBody = {{#bodyParam}}{{#isBinary}}{{paramName}}{{/isBinary}}{{^isBinary}}null{{/isBinary}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavascriptClientCodegen", date = "2015-12-07T10:51:19.835+08:00")
|
||||
* @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavascriptClientCodegen", date = "2015-12-09T16:07:21.000+07:00")
|
||||
*/
|
||||
|
||||
//export module
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavascriptClientCodegen", date = "2015-12-07T10:51:19.835+08:00")
|
||||
* @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavascriptClientCodegen", date = "2015-12-09T16:07:21.000+07:00")
|
||||
*/
|
||||
|
||||
//export module
|
||||
@@ -18,7 +18,7 @@ var StoreApi = function StoreApi() {
|
||||
* @param {function} callback the callback function
|
||||
* @return Map<String, Integer>
|
||||
*/
|
||||
self.getInventory = function(, callback) {
|
||||
self.getInventory = function(callback) {
|
||||
|
||||
var postBody = null;
|
||||
var postBinaryBody = null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavascriptClientCodegen", date = "2015-12-07T10:51:19.835+08:00")
|
||||
* @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavascriptClientCodegen", date = "2015-12-09T16:07:21.000+07:00")
|
||||
*/
|
||||
|
||||
//export module
|
||||
@@ -230,7 +230,7 @@ var UserApi = function UserApi() {
|
||||
* @param {function} callback the callback function
|
||||
* @return void
|
||||
*/
|
||||
self.logoutUser = function(, callback) {
|
||||
self.logoutUser = function(callback) {
|
||||
|
||||
var postBody = null;
|
||||
var postBinaryBody = null;
|
||||
|
||||
@@ -38,7 +38,7 @@ if ( typeof define === "function" && define.amd ) {
|
||||
}
|
||||
|
||||
|
||||
var Pet = function Pet(name, photoUrls) {
|
||||
var Pet = function Pet(photoUrls, name) {
|
||||
var self = this;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user