Skip to content

Commit 7b6303d

Browse files
committed
fix(theming): Document correct response schema if app is not enabled
Signed-off-by: provokateurin <[email protected]>
1 parent 4733369 commit 7b6303d

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

apps/theming/lib/Controller/ThemingController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function getThemeStylesheet(string $themeId, bool $plain = false, bool $w
429429
*
430430
* @param string $app ID of the app
431431
* @psalm-suppress LessSpecificReturnStatement The content of the Manifest doesn't need to be described in the return type
432-
* @return JSONResponse<Http::STATUS_OK, array{name: string, short_name: string, start_url: string, theme_color: string, background_color: string, description: string, icons: list<array{src: non-empty-string, type: string, sizes: string}>, display_override: list<string>, display: string}, array{}>|JSONResponse<Http::STATUS_NOT_FOUND, array{}, array{}>
432+
* @return JSONResponse<Http::STATUS_OK, array{name: string, short_name: string, start_url: string, theme_color: string, background_color: string, description: string, icons: list<array{src: non-empty-string, type: string, sizes: string}>, display_override: list<string>, display: string}, array{}>|JSONResponse<Http::STATUS_NOT_FOUND, list<empty>, array{}>
433433
*
434434
* 200: Manifest returned
435435
* 404: App not found

apps/theming/openapi.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,7 @@
410410
"description": "App not found",
411411
"content": {
412412
"application/json": {
413-
"schema": {
414-
"type": "object"
415-
}
413+
"schema": {}
416414
}
417415
}
418416
}

openapi.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28042,9 +28042,7 @@
2804228042
"description": "App not found",
2804328043
"content": {
2804428044
"application/json": {
28045-
"schema": {
28046-
"type": "object"
28047-
}
28045+
"schema": {}
2804828046
}
2804928047
}
2805028048
}

0 commit comments

Comments
 (0)