aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-03-21 09:15:55 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2025-03-21 09:15:55 +0100
commitb9f919089417af9821255200f388b18f0f00b2cb (patch)
tree340f091b6d0dfbf489147e3e468c22ee6b70268e /lib/public
parent3d38a4bddeb8d002269b965ac2f4cc2bc06492f5 (diff)
downloadnextcloud-server-b9f919089417af9821255200f388b18f0f00b2cb.tar.gz
nextcloud-server-b9f919089417af9821255200f388b18f0f00b2cb.zip
fix(ocm): `publicKey` can be disabled so capabilities do not matchfix/ocm-public-key-is-optional
When the public key feature is disabled null is returned for `publicKey`. So in this case we need to adjust the capabilities and return type of `jsonSerialize()`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/OCM/IOCMProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/OCM/IOCMProvider.php b/lib/public/OCM/IOCMProvider.php
index a588d869655..a267abc52d2 100644
--- a/lib/public/OCM/IOCMProvider.php
+++ b/lib/public/OCM/IOCMProvider.php
@@ -151,7 +151,7 @@ interface IOCMProvider extends JsonSerializable {
* enabled: bool,
* apiVersion: '1.0-proposal1',
* endPoint: string,
- * publicKey: array{
+ * publicKey?: array{
* keyId: string,
* publicKeyPem: string
* },