haskell-servant / haskell-servant/servant-js
Change of requestBody not honoured in JQuery 'data:' generation
Open
- 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.