Skip to content

Commit

Permalink
fix(core): Fix NavigationEntry typing
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed May 22, 2024
1 parent 143dd25 commit 489059e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 3 additions & 1 deletion core/ResponseDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@
*
* @psalm-type CoreNavigationEntry = array{
* id: string,
* order: int|string,
* order?: int,
* href: string,
* icon: string,
* type: string,
* name: string,
* app?: string,
* default?: bool,
* active: bool,
* classes: string,
* unread: int,
Expand Down
18 changes: 8 additions & 10 deletions core/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@
"type": "object",
"required": [
"id",
"order",
"href",
"icon",
"type",
Expand All @@ -232,15 +231,8 @@
"type": "string"
},
"order": {
"oneOf": [
{
"type": "integer",
"format": "int64"
},
{
"type": "string"
}
]
"type": "integer",
"format": "int64"
},
"href": {
"type": "string"
Expand All @@ -254,6 +246,12 @@
"name": {
"type": "string"
},
"app": {
"type": "string"
},
"default": {
"type": "boolean"
},
"active": {
"type": "boolean"
},
Expand Down

0 comments on commit 489059e

Please sign in to comment.