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