Handle argument locations

This commit is contained in:
2021-09-02 08:45:23 +02:00
parent 233a58094d
commit 7b4c7e2b8c
2 changed files with 55 additions and 10 deletions

View File

@ -285,9 +285,10 @@ spec =
[ "philosopher" .= Aeson.Null
]
executionErrors = pure $ Error
{ message = "Argument coercing failed."
{ message =
"Argument \"id\" has invalid type. Expected type ID, found: True."
, locations = [Location 1 15]
, path = []
, path = [Segment "philosopher"]
}
expected = Response data'' executionErrors
Right (Right actual) = either (pure . parseError) execute'