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

Change of requestBody not honoured in JQuery 'data:' generation #33

Open
vlatkoB opened this issue Dec 6, 2018 · 0 comments
Open

Change of requestBody not honoured in JQuery 'data:' generation #33

vlatkoB opened this issue Dec 6, 2018 · 0 comments

Comments

@vlatkoB
Copy link

vlatkoB commented Dec 6, 2018

Hi, when using
jqueryWith $ defCommonGeneratorOptions {requestBody = "payload"}
generated JS is this

var postUsers = function(payload, onSuccess, onError)   /// changed
{
  $.ajax(
    { url: '/api/users'
    , success: onSuccess
    , data: JSON.stringify(body)   /// not changed
    , contentType: 'application/json'
    , error: onError
    , type: 'POST'
    });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant