diff --git a/src/Servant/QuickCheck/Internal/Predicates.hs b/src/Servant/QuickCheck/Internal/Predicates.hs index c34f83c..baee453 100644 --- a/src/Servant/QuickCheck/Internal/Predicates.hs +++ b/src/Servant/QuickCheck/Internal/Predicates.hs @@ -36,6 +36,11 @@ not500 = ResponsePredicate "not500" (\resp -> not $ responseStatus resp == statu -- -- This function checks that any @application/json@ responses only return JSON -- objects (and not arrays, strings, numbers, or booleans) at the top level. +-- +-- __References__: +-- +-- * JSON Grammar: +-- * JSON Grammar: onlyJsonObjects :: ResponsePredicate Text Bool onlyJsonObjects = ResponsePredicate "onlyJsonObjects" (\resp -> case decode (responseBody resp) of @@ -66,6 +71,10 @@ getsHaveLastModifiedHeader -- -- This function checks that every @405 Method Not Allowed@ response contains -- an @Allow@ header with a list of standard HTTP methods. +-- +-- __References__: +-- +-- * @Allow@ header: notAllowedContainsAllowHeader :: ResponsePredicate Text Bool notAllowedContainsAllowHeader = ResponsePredicate "notAllowedContainsAllowHeader" (\resp ->