fix(theming): Document correct response schema if app is not enabled

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/54532/head
provokateurin 2025-08-20 12:45:47 +07:00
parent 4733369764
commit 7b6303dcc9
No known key found for this signature in database
3 changed files with 3 additions and 7 deletions

@ -429,7 +429,7 @@ class ThemingController extends Controller {
*
* @param string $app ID of the app
* @psalm-suppress LessSpecificReturnStatement The content of the Manifest doesn't need to be described in the return type
* @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{}>
* @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{}>
*
* 200: Manifest returned
* 404: App not found

@ -410,9 +410,7 @@
"description": "App not found",
"content": {
"application/json": {
"schema": {
"type": "object"
}
"schema": {}
}
}
}

@ -28042,9 +28042,7 @@
"description": "App not found",
"content": {
"application/json": {
"schema": {
"type": "object"
}
"schema": {}
}
}
}