diff --git a/postgrest.cabal b/postgrest.cabal index 992e33eb6..5ac62f842 100644 --- a/postgrest.cabal +++ b/postgrest.cabal @@ -36,7 +36,7 @@ executable postgrest , HTTP, convertible, http-types , case-insensitive , scientific, time - , aeson == 0.8.0.*, network >= 2.6 + , aeson >= 0.8, network >= 2.6 , bytestring, text, split, string-conversions , stringsearch , containers, unordered-containers diff --git a/test/Feature/InsertSpec.hs b/test/Feature/InsertSpec.hs index ea6badbb2..b8a37c167 100644 --- a/test/Feature/InsertSpec.hs +++ b/test/Feature/InsertSpec.hs @@ -87,12 +87,7 @@ spec = afterAll_ resetDb $ around withApp $ do context "with invalid json payload" $ it "fails with 400 and error" $ - post "/simple_pk" "}{ x = 2" - `shouldRespondWith` ResponseMatcher { - matchBody = Just [json| {"message":"Failed to parse JSON payload. Failed reading: satisfy"} |] - , matchStatus = 400 - , matchHeaders = [] - } + post "/simple_pk" "}{ x = 2" `shouldRespondWith` 400 context "jsonb" . after_ (clearTable "json") $ do it "serializes nested object" $ do