From d18a4a981e9c1bc91170b12ec2aded23002c7c03 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 24 Aug 2026 17:20:22 +0200 Subject: [PATCH] fix: Return type of StreamTraversableResponse We should ideally use the new features from https://bump.sh/blog/json-streaming-openapi-3-2/ but this requires some changes in server. Signed-off-by: Carl Schwan --- src/ResponseType.php | 2 +- tests/openapi-administration.json | 10 +++++++++- tests/openapi-full.json | 10 +++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/ResponseType.php b/src/ResponseType.php index 164a32dd..1aa4df64 100644 --- a/src/ResponseType.php +++ b/src/ResponseType.php @@ -140,7 +140,7 @@ public static function getAll(): array { false, false, null, - null, + $binaryType, null, ), new ResponseType( diff --git a/tests/openapi-administration.json b/tests/openapi-administration.json index b34f0ed4..28cb2478 100644 --- a/tests/openapi-administration.json +++ b/tests/openapi-administration.json @@ -10134,7 +10134,15 @@ ], "responses": { "200": { - "description": "Export OK" + "description": "Export OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "format": "binary" + } + } + } }, "401": { "description": "Current user is not logged in", diff --git a/tests/openapi-full.json b/tests/openapi-full.json index a75f440c..97aeda40 100644 --- a/tests/openapi-full.json +++ b/tests/openapi-full.json @@ -10334,7 +10334,15 @@ ], "responses": { "200": { - "description": "Export OK" + "description": "Export OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "format": "binary" + } + } + } }, "401": { "description": "Current user is not logged in",