Skip to content

Commit

Permalink
Merge pull request #112 from nextcloud/test/204-custom-header
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Apr 8, 2024
2 parents ecf189d + 735df5c commit 214f599
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public function throwingOther(): DataResponse {
/**
* A route 204 response
*
* @return DataResponse<Http::STATUS_NO_CONTENT, array<empty>, array{}>
* @return DataResponse<Http::STATUS_NO_CONTENT, array<empty>, array{X-Custom: string}>
*
* 204: No settings
*/
Expand Down
9 changes: 8 additions & 1 deletion tests/openapi-administration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,14 @@
],
"responses": {
"204": {
"description": "No settings"
"description": "No settings",
"headers": {
"X-Custom": {
"schema": {
"type": "string"
}
}
}
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -2497,7 +2497,14 @@
],
"responses": {
"204": {
"description": "No settings"
"description": "No settings",
"headers": {
"X-Custom": {
"schema": {
"type": "string"
}
}
}
}
}
}
Expand Down

0 comments on commit 214f599

Please sign in to comment.