diff --git a/apps/files_sharing/lib/ResponseDefinitions.php b/apps/files_sharing/lib/ResponseDefinitions.php index 0edf67fe042..6b6b0fcc4b6 100644 --- a/apps/files_sharing/lib/ResponseDefinitions.php +++ b/apps/files_sharing/lib/ResponseDefinitions.php @@ -99,7 +99,6 @@ namespace OCA\Files_Sharing; * } * * @psalm-type Files_SharingSharee = array{ - * count: int|null, * label: string, * } * @@ -108,6 +107,14 @@ namespace OCA\Files_Sharing; * shareWith: string, * } * + * @psalm-type Files_SharingShareeGroup = Files_SharingSharee&array{ + * value: Files_SharingShareeValue, + * } + * + * @psalm-type Files_SharingShareeRoom = Files_SharingSharee&array{ + * value: Files_SharingShareeValue, + * } + * * @psalm-type Files_SharingShareeUser = Files_SharingSharee&array{ * subline: string, * icon: string, @@ -180,19 +187,19 @@ namespace OCA\Files_Sharing; * exact: array{ * circles: list, * emails: list, - * groups: list, + * groups: list, * remote_groups: list, * remotes: list, - * rooms: list, + * rooms: list, * users: list, * }, * circles: list, * emails: list, - * groups: list, + * groups: list, * lookup: list, * remote_groups: list, * remotes: list, - * rooms: list, + * rooms: list, * users: list, * lookupEnabled: bool, * } @@ -200,13 +207,13 @@ namespace OCA\Files_Sharing; * @psalm-type Files_SharingShareesRecommendedResult = array{ * exact: array{ * emails: list, - * groups: list, + * groups: list, * remote_groups: list, * remotes: list, * users: list, * }, * emails: list, - * groups: list, + * groups: list, * remote_groups: list, * remotes: list, * users: list, diff --git a/apps/files_sharing/openapi.json b/apps/files_sharing/openapi.json index 50b67c298e4..a9ad361ff35 100644 --- a/apps/files_sharing/openapi.json +++ b/apps/files_sharing/openapi.json @@ -766,15 +766,9 @@ "Sharee": { "type": "object", "required": [ - "count", "label" ], "properties": { - "count": { - "type": "integer", - "format": "int64", - "nullable": true - }, "label": { "type": "string" } @@ -851,6 +845,24 @@ } ] }, + "ShareeGroup": { + "allOf": [ + { + "$ref": "#/components/schemas/Sharee" + }, + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/ShareeValue" + } + } + } + ] + }, "ShareeLookup": { "allOf": [ { @@ -1027,6 +1039,24 @@ } ] }, + "ShareeRoom": { + "allOf": [ + { + "$ref": "#/components/schemas/Sharee" + }, + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/ShareeValue" + } + } + } + ] + }, "ShareeUser": { "allOf": [ { @@ -1129,7 +1159,7 @@ "groups": { "type": "array", "items": { - "$ref": "#/components/schemas/Sharee" + "$ref": "#/components/schemas/ShareeGroup" } }, "remote_groups": { @@ -1161,7 +1191,7 @@ "groups": { "type": "array", "items": { - "$ref": "#/components/schemas/Sharee" + "$ref": "#/components/schemas/ShareeGroup" } }, "remote_groups": { @@ -1226,7 +1256,7 @@ "groups": { "type": "array", "items": { - "$ref": "#/components/schemas/Sharee" + "$ref": "#/components/schemas/ShareeGroup" } }, "remote_groups": { @@ -1244,7 +1274,7 @@ "rooms": { "type": "array", "items": { - "$ref": "#/components/schemas/Sharee" + "$ref": "#/components/schemas/ShareeRoom" } }, "users": { @@ -1270,7 +1300,7 @@ "groups": { "type": "array", "items": { - "$ref": "#/components/schemas/Sharee" + "$ref": "#/components/schemas/ShareeGroup" } }, "lookup": { @@ -1294,7 +1324,7 @@ "rooms": { "type": "array", "items": { - "$ref": "#/components/schemas/Sharee" + "$ref": "#/components/schemas/ShareeRoom" } }, "users": {