haskell-servant / haskell-servant/servant

Why is ReqBody "always required"?

Open
#1,468 0 comments 4 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.