Skip to content

Compile error should occur when 'query' prop is given but not mentioned in the query string #28

Description

@m-bock

First of all: Great library!

Here's a small thing that I came across that may be a bit type-unsafe:

mySpec
  :: Spec
       { getBar ::
           GET "/bar"
             { query :: { foo :: String }
             , response :: { data :: Array String }
             }
       }
mySpec = Spec

I'm specifying the query but it's not mentioned in the query string. The code compiles but the foo query param is not sent by the client.
Currently only the opposite is checked: Prop present in the query string but not mention in the record below.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions