]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(core): Add missing null value possibility to Resource and Reference richObject 45632/head
authorprovokateurin <kate@provokateurin.de>
Sun, 2 Jun 2024 21:41:06 +0000 (23:41 +0200)
committerprovokateurin <kate@provokateurin.de>
Sun, 2 Jun 2024 21:41:06 +0000 (23:41 +0200)
Signed-off-by: provokateurin <kate@provokateurin.de>
core/ResponseDefinitions.php
core/openapi.json

index f186f52c335727b54fe52653398b98623b3dba91..7a1dad464dd8a3031cc2f56e4603ad7fc129f7a5 100644 (file)
@@ -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,
  * }
index a20691046fa7ace15c753524c4ca04d61359fc6b..94b9325370414cdfb164d9312cd843a9aa1ba063 100644 (file)
                     "richObject": {
                         "type": "object",
                         "additionalProperties": {
-                            "type": "object"
+                            "type": "object",
+                            "nullable": true
                         }
                     },
                     "openGraphObject": {
                     "richObject": {
                         "type": "object",
                         "additionalProperties": {
-                            "type": "object"
+                            "type": "object",
+                            "nullable": true
                         }
                     },
                     "openGraphObject": {