Verbose parse error for OpenAPI

This commit is contained in:
Jacky Hu
2016-06-18 10:18:43 +08:00
parent d1ed884a8d
commit 077bb5a434
+1 -1
View File
@@ -125,7 +125,7 @@ userApiRequest schema req reqBody =
Just json -> PayloadJSON json)
(CSV.decodeByName reqBody)
Right OpenAPI ->
PayloadParseError "Content-type not acceptable"
PayloadParseError "Content-type not acceptable: application/openapi+json; charset=utf-8"
-- This is a Left value because form-urlencoded is not a content
-- type which we ever use for responses, only something we handle
-- just this once for requests