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

rest js client wrong code generation #1564

Closed
deviator opened this Issue Sep 18, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@deviator
Contributor

deviator commented Sep 18, 2016

If I want use Collections or simple classes in js client I get errors.
Generated js code have more that one mistake:

IModel = new function() {
var toRestString = function(v) { return v; } // bad serialization for structures (js-objects) if use HTTP GET
calculator = new function() { // here "calculator" must be "this.calculator" because it's a method of IModel
var toRestString = function(v) { return v; } 
  this.calc = function(_name, points, on_result, on_error) {
    var url = "http://127.0.0.1:8080/calculator/:name/calc"; // here no replacement of ":name" parameter
...

s-ludwig added a commit that referenced this issue Sep 23, 2016

@s-ludwig s-ludwig closed this in dcb9193 Sep 23, 2016

s-ludwig added a commit that referenced this issue Sep 23, 2016

Merge pull request #1566 from deviator/master
Fix some rest js client problems. (#1564, #1565)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment