Validate ToJSON instance matches ToSchema for a given value.
This can be used with QuickCheck to ensure those instances are coherent:
validateToJSON (x :: Int) == []NOTE: validateToJSON does not perform string pattern validation.
See validateToJSONWithPatternChecker.
See renderValidationErrors on how the output is structured.