From 735df5cae2775081c28b0b38b0cb65343a72caea Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 8 Apr 2024 17:02:49 +0200 Subject: [PATCH] test: Add custom header to 204 Signed-off-by: provokateurin --- tests/lib/Controller/SettingsController.php | 2 +- tests/openapi-administration.json | 9 ++++++++- tests/openapi-full.json | 9 ++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/tests/lib/Controller/SettingsController.php b/tests/lib/Controller/SettingsController.php index c7e2e5b..3508478 100644 --- a/tests/lib/Controller/SettingsController.php +++ b/tests/lib/Controller/SettingsController.php @@ -443,7 +443,7 @@ public function throwingOther(): DataResponse { /** * A route 204 response * - * @return DataResponse, array{}> + * @return DataResponse, array{X-Custom: string}> * * 204: No settings */ diff --git a/tests/openapi-administration.json b/tests/openapi-administration.json index 5eec96f..d1bcdf2 100644 --- a/tests/openapi-administration.json +++ b/tests/openapi-administration.json @@ -2370,7 +2370,14 @@ ], "responses": { "204": { - "description": "No settings" + "description": "No settings", + "headers": { + "X-Custom": { + "schema": { + "type": "string" + } + } + } } } } diff --git a/tests/openapi-full.json b/tests/openapi-full.json index 4b42bdb..f4c88bc 100644 --- a/tests/openapi-full.json +++ b/tests/openapi-full.json @@ -2497,7 +2497,14 @@ ], "responses": { "204": { - "description": "No settings" + "description": "No settings", + "headers": { + "X-Custom": { + "schema": { + "type": "string" + } + } + } } } }