@@ 46-53 (lines=8) @@ | ||
43 | /** |
|
44 | * @inheritdoc |
|
45 | */ |
|
46 | public function addValidationIdError( |
|
47 | ErrorInterface $error, |
|
48 | int $errorStatus = JsonApiResponse::HTTP_UNPROCESSABLE_ENTITY |
|
49 | ): void { |
|
50 | $title = $this->getInvalidValueMessage(); |
|
51 | $detail = $this->getValidationMessage($error); |
|
52 | $this->addDataIdError($title, $detail, $errorStatus); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @inheritdoc |
|
@@ 58-65 (lines=8) @@ | ||
55 | /** |
|
56 | * @inheritdoc |
|
57 | */ |
|
58 | public function addValidationTypeError( |
|
59 | ErrorInterface $error, |
|
60 | int $errorStatus = JsonApiResponse::HTTP_UNPROCESSABLE_ENTITY |
|
61 | ): void { |
|
62 | $title = $this->getInvalidValueMessage(); |
|
63 | $detail = $this->getValidationMessage($error); |
|
64 | $this->addDataTypeError($title, $detail, $errorStatus); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * @inheritdoc |
|
@@ 94-102 (lines=9) @@ | ||
91 | /** |
|
92 | * @inheritdoc |
|
93 | */ |
|
94 | public function addValidationQueryError( |
|
95 | string $paramName, |
|
96 | ErrorInterface $error, |
|
97 | int $errorStatus = JsonApiResponse::HTTP_UNPROCESSABLE_ENTITY |
|
98 | ): void { |
|
99 | $title = $this->getInvalidValueMessage(); |
|
100 | $detail = $this->getValidationMessage($error); |
|
101 | $this->addQueryParameterError($paramName, $title, $detail, $errorStatus); |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * |