Skip to content

Optional ReqBody does not wrap it’s type into Maybe #1346

Open
@unclechu

Description

@unclechu

Here is a minimal reproducible demo that shows the problem: https://gist.github.com/unclechu/347bbc386e0659242de80e8ff38b0ec6 (requires Nix to run). This demo also shows a trick how to overcome the problem.

Even when I define ReqBody with Optional mod:

ReqBody' '[Optional, Strict] '[JSON] SomeType

In the Server type SomeType stays the same, without Maybe wrap that I would also expect from QueryParam for instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions