haskell-servant / haskell-servant/servant-js

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

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
23
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.