Skip to content

Commit 379ef49

Browse files
committed
OpenApiFactory: Don't override response description
1 parent 09a2626 commit 379ef49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bundle/ApiPlatform/OpenApiFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private function insertIbexaResponseExample(Operation $operation): Operation
198198
if ($newContent !== $response['content']) {
199199
$newOperation = $newOperation->withResponse(
200200
$responseCode,
201-
new Response((string)$responseCode, new ArrayObject($newContent)),
201+
new Response($response['description'] ?? (string)$responseCode, new ArrayObject($newContent)),
202202
);
203203
}
204204
}

0 commit comments

Comments
 (0)