From bba54b55564dbf36c6602d6ebb4a7fe186f376c4 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Wed, 22 May 2024 16:21:12 +0200 Subject: [PATCH] fix(core): Fix NavigationEntry typing Signed-off-by: provokateurin --- core/ResponseDefinitions.php | 4 +++- core/openapi.json | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/core/ResponseDefinitions.php b/core/ResponseDefinitions.php index eba1ca0fcd7..3a84ed60a4b 100644 --- a/core/ResponseDefinitions.php +++ b/core/ResponseDefinitions.php @@ -43,11 +43,13 @@ namespace OCA\Core; * * @psalm-type CoreNavigationEntry = array{ * id: string, - * order: int, + * order?: int, * href: string, * icon: string, * type: string, * name: string, + * app?: string, + * default?: bool, * active: bool, * classes: string, * unread: int, diff --git a/core/openapi.json b/core/openapi.json index fbdc7092462..eac918e4db9 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -182,7 +182,6 @@ "type": "object", "required": [ "id", - "order", "href", "icon", "type", @@ -211,6 +210,12 @@ "name": { "type": "string" }, + "app": { + "type": "string" + }, + "default": { + "type": "boolean" + }, "active": { "type": "boolean" }, -- 2.39.5