From 077bb5a4341c6596fa59160830a2934461ada421 Mon Sep 17 00:00:00 2001 From: Jacky Hu Date: Wed, 15 Jun 2016 12:22:14 +0800 Subject: [PATCH] Verbose parse error for OpenAPI --- src/PostgREST/ApiRequest.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostgREST/ApiRequest.hs b/src/PostgREST/ApiRequest.hs index c1da04df7..9cf82097e 100644 --- a/src/PostgREST/ApiRequest.hs +++ b/src/PostgREST/ApiRequest.hs @@ -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