diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-09-14 12:26:14 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-09-14 15:49:13 +0200 |
commit | 79b8b5c0f20ffee738b57f3b2b5779a8002a9c23 (patch) | |
tree | c5eac6222105aadaed1120a2db846b4a74829556 /core/ResponseDefinitions.php | |
parent | 30a7eabad3f00fe10fa2d66725297a559aa82c3c (diff) | |
download | nextcloud-server-79b8b5c0f20ffee738b57f3b2b5779a8002a9c23.tar.gz nextcloud-server-79b8b5c0f20ffee738b57f3b2b5779a8002a9c23.zip |
core: Fix OpenAPI for reference API
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'core/ResponseDefinitions.php')
-rw-r--r-- | core/ResponseDefinitions.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/core/ResponseDefinitions.php b/core/ResponseDefinitions.php index 3820e71645d..1e5d97b6267 100644 --- a/core/ResponseDefinitions.php +++ b/core/ResponseDefinitions.php @@ -61,22 +61,24 @@ namespace OCA\Core; * } * * @psalm-type CoreOpenGraphObject = array{ + * id: string, + * name: string, + * description: ?string, + * thumb: ?string, + * link: string, + * } + * + * @psalm-type CoreResource = array{ * richObjectType: string, * richObject: array<string, mixed>, - * openGraphObject: array{ - * id: string, - * name: string, - * description: ?string, - * thumb: ?string, - * link: string, - * }, + * openGraphObject: CoreOpenGraphObject, * accessible: bool, * } * * @psalm-type CoreCollection = array{ * id: int, * name: string, - * resources: CoreOpenGraphObject[], + * resources: CoreResource[], * } * * @psalm-type CoreReference = array{ |