Skip to content

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

Description

@vlatkoB

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'
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions