|
@@ -13,7 +13,9 @@ abstract class AbstractPostSerializable implements PostSerializableInterface {
|
|
|
|
|
|
if ($vars[$key] == null && $param->required)
|
|
|
throw new \Symfony\Component\HttpClient\Exception\InvalidArgumentException(
|
|
|
- sprintf("Missing required argmuent: %s", $key)
|
|
|
+ json_encode([
|
|
|
+ $key => sprintf("%s is a required field.", $key)
|
|
|
+ ])
|
|
|
);
|
|
|
}
|
|
|
|