From 0c6d963015a0f67773405774a559b3f141830be7 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 18 May 2026 17:51:17 +0200 Subject: [PATCH] OpenApiFactory: Don't override response description --- src/bundle/ApiPlatform/OpenApiFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/ApiPlatform/OpenApiFactory.php b/src/bundle/ApiPlatform/OpenApiFactory.php index 04d82268..f4bd1c5c 100644 --- a/src/bundle/ApiPlatform/OpenApiFactory.php +++ b/src/bundle/ApiPlatform/OpenApiFactory.php @@ -198,7 +198,7 @@ private function insertIbexaResponseExample(Operation $operation): Operation if ($newContent !== $response['content']) { $newOperation = $newOperation->withResponse( $responseCode, - new Response((string)$responseCode, new ArrayObject($newContent)), + new Response($response['description'] ?? (string)$responseCode, new ArrayObject($newContent)), ); } }