haskell-servant / haskell-servant/servant
Why is ReqBody "always required"?
Open
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
(As said in the [documentation](https://github.com/haskell-servant/servant/blob/master/servant/src/Servant/API/ReqBody.hs#L23).)
There is `ReqBody` and `ReqBody'` (similar to header), but ReqBody is always required -- even if no `Required` modifier is specified.
Found two previous issues:
- an old one here #793 seems to indicate that optional body is now possible, while
- this one #1346 makes it seem like it's not
Contributor guide
Assessment
This issue has not been assessed yet.