From c646ed9625736618fd76a1ad37044af21d382807 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 03e62c4c23f..0ca4c8851df 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 28a95fe4744..68eba1fe915 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -218,7 +218,6 @@ "type": "object", "required": [ "id", - "order", "href", "icon", "type", @@ -247,6 +246,12 @@ "name": { "type": "string" }, + "app": { + "type": "string" + }, + "default": { + "type": "boolean" + }, "active": { "type": "boolean" }, -- 2.39.5