]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(core): Add missing null value possibility to Resource and Reference richObject 45644/head
authorprovokateurin <kate@provokateurin.de>
Sun, 2 Jun 2024 21:41:06 +0000 (23:41 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 3 Jun 2024 14:15:25 +0000 (14:15 +0000)
Signed-off-by: provokateurin <kate@provokateurin.de>
core/ResponseDefinitions.php
core/openapi.json

index 4a79c3ad3ec859a7429e2928a544ef2103da2295..5c1a22dde0286f623b1ef5a729e7501690d9a84e 100644 (file)
@@ -70,7 +70,7 @@ namespace OCA\Core;
  *
  * @psalm-type CoreResource = array{
  *     richObjectType: string,
- *     richObject: array<string, mixed>,
+ *     richObject: array<string, ?mixed>,
  *     openGraphObject: CoreOpenGraphObject,
  *     accessible: bool,
  * }
@@ -83,7 +83,7 @@ namespace OCA\Core;
  *
  * @psalm-type CoreReference = array{
  *     richObjectType: string,
- *     richObject: array<string, mixed>,
+ *     richObject: array<string, ?mixed>,
  *     openGraphObject: CoreOpenGraphObject,
  *     accessible: bool,
  * }
index 34009e38472d7df7fa769576c54277b0d7628905..28210059fe10bd5ee7473757b8d6455b739d9b7a 100644 (file)
                     "richObject": {
                         "type": "object",
                         "additionalProperties": {
-                            "type": "object"
+                            "type": "object",
+                            "nullable": true
                         }
                     },
                     "openGraphObject": {
                     "richObject": {
                         "type": "object",
                         "additionalProperties": {
-                            "type": "object"
+                            "type": "object",
+                            "nullable": true
                         }
                     },
                     "openGraphObject": {