diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-21 09:15:55 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-21 09:15:55 +0100 |
commit | b9f919089417af9821255200f388b18f0f00b2cb (patch) | |
tree | 340f091b6d0dfbf489147e3e468c22ee6b70268e /lib/public | |
parent | 3d38a4bddeb8d002269b965ac2f4cc2bc06492f5 (diff) | |
download | nextcloud-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.php | 2 |
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 * }, |