From 2210fa49cd53900adc51aaa8ff788b4370846b23 Mon Sep 17 00:00:00 2001 From: Diego Pereira Grassato Date: Fri, 5 Oct 2018 19:03:55 +0000 Subject: [PATCH] New validation type --- src/BaseBundle/Api/ApiProblem.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BaseBundle/Api/ApiProblem.php b/src/BaseBundle/Api/ApiProblem.php index dc7a643..d320039 100644 --- a/src/BaseBundle/Api/ApiProblem.php +++ b/src/BaseBundle/Api/ApiProblem.php @@ -10,9 +10,11 @@ class ApiProblem { const TYPE_VALIDATION_ERROR = 'validation_error'; + const TYPE_VALIDATION_NOTICE = 'validation_notice'; const TYPE_INVALID_REQUEST_BODY_FORMAT = 'invalid_body_format'; private static $titles = array( + self::TYPE_VALIDATION_NOTICE => 'There was a validation notice', self::TYPE_VALIDATION_ERROR => 'There was a validation error', self::TYPE_INVALID_REQUEST_BODY_FORMAT => 'Invalid JSON format sent', );