aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-06-03 16:12:53 +0200
committerGitHub <noreply@github.com>2024-06-03 16:12:53 +0200
commit4f3456296ba7ba6c17089ae68fd97c116c12dca5 (patch)
treea1e74510e0f91516d909008758acd1bcab2fd687 /core
parenta28a9709bad150260c06f698e9b9f6260009f5b6 (diff)
parentf48bd314ff74e788db623c74045b529844d52c3b (diff)
downloadnextcloud-server-4f3456296ba7ba6c17089ae68fd97c116c12dca5.tar.gz
nextcloud-server-4f3456296ba7ba6c17089ae68fd97c116c12dca5.zip
Merge pull request #45632 from nextcloud/fix/core/openapi-resource-reference-rich-object
Diffstat (limited to 'core')
-rw-r--r--core/ResponseDefinitions.php4
-rw-r--r--core/openapi.json6
2 files changed, 6 insertions, 4 deletions
diff --git a/core/ResponseDefinitions.php b/core/ResponseDefinitions.php
index f186f52c335..7a1dad464dd 100644
--- a/core/ResponseDefinitions.php
+++ b/core/ResponseDefinitions.php
@@ -53,7 +53,7 @@ namespace OCA\Core;
*
* @psalm-type CoreResource = array{
* richObjectType: string,
- * richObject: array<string, mixed>,
+ * richObject: array<string, ?mixed>,
* openGraphObject: CoreOpenGraphObject,
* accessible: bool,
* }
@@ -66,7 +66,7 @@ namespace OCA\Core;
*
* @psalm-type CoreReference = array{
* richObjectType: string,
- * richObject: array<string, mixed>,
+ * richObject: array<string, ?mixed>,
* openGraphObject: CoreOpenGraphObject,
* accessible: bool,
* }
diff --git a/core/openapi.json b/core/openapi.json
index a20691046fa..94b93253704 100644
--- a/core/openapi.json
+++ b/core/openapi.json
@@ -358,7 +358,8 @@
"richObject": {
"type": "object",
"additionalProperties": {
- "type": "object"
+ "type": "object",
+ "nullable": true
}
},
"openGraphObject": {
@@ -416,7 +417,8 @@
"richObject": {
"type": "object",
"additionalProperties": {
- "type": "object"
+ "type": "object",
+ "nullable": true
}
},
"openGraphObject": {