fix(ApiExceptionRenderer): change title for ValidationException response

Update the title for the ValidationException response to accurately reflect the error type.
This commit is contained in:
Jérémy Munsch 2026-08-13 12:26:56 +02:00
parent 985fcedb04
commit b7c5c98128
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -34,7 +34,7 @@ final readonly class ApiExceptionRenderer
$e instanceof ValidationException => response()->json([
'type' => (string) $baseUri->withPath('/errors/400'),
'title' => 'Unprocessable Entity',
'title' => 'Bad Request',
'status' => 400,
'detail' => $e->getMessage(),
'invalidParams' => array_values(array_map(