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)), ); } }