Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax issue when generating Javascript client operation without parameters #1691

Closed
thibaultclem opened this issue Dec 9, 2015 · 1 comment

Comments

@thibaultclem
Copy link
Contributor

When generating Client JS for an operation without parameters, an unnecessary comma is added before the callback parameter:

self.logoutUser = function(, callback) {

You can see the error directly on the generating UserApi.js:
https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/javascript/src/scripts/rest/api/UserApi.js#L233

I provided a PR: #1690

PS: @jfiala thanks for this useful JS generator ;)

@wing328
Copy link
Contributor

wing328 commented Dec 9, 2015

@thibaultclem thanks for reporting the issue and the PR, which has been merged into master.

@wing328 wing328 closed this as completed Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants