aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-02-10 22:49:27 +0100
committerjld3103 <jld3103yt@gmail.com>2023-02-10 22:56:32 +0100
commitb271096495cdcea1b743a572fc73cdb830fbfd25 (patch)
treed412a44fb5a3a0fba577e3192069e74bffe33b66 /lib
parente0946a1608283bd376f439906c50f3a4eb810839 (diff)
downloadnextcloud-server-b271096495cdcea1b743a572fc73cdb830fbfd25.tar.gz
nextcloud-server-b271096495cdcea1b743a572fc73cdb830fbfd25.zip
Fix OCM validation errors
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/Federation/Exceptions/BadRequestException.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/public/Federation/Exceptions/BadRequestException.php b/lib/public/Federation/Exceptions/BadRequestException.php
index 8054c0e89f0..bc8b5c7b724 100644
--- a/lib/public/Federation/Exceptions/BadRequestException.php
+++ b/lib/public/Federation/Exceptions/BadRequestException.php
@@ -32,6 +32,9 @@ use OCP\HintException;
* @since 14.0.0
*/
class BadRequestException extends HintException {
+ /**
+ * @var string[] $parameterList
+ */
private $parameterList;
/**
@@ -55,7 +58,7 @@ class BadRequestException extends HintException {
*
* @since 14.0.0
*
- * @return array
+ * @return array{message: string, validationErrors: array{message: string, name: string}[]}
*/
public function getReturnMessage() {
$result = [
@@ -65,7 +68,7 @@ class BadRequestException extends HintException {
];
foreach ($this->parameterList as $missingParameter) {
- $result['validationErrors'] = [
+ $result['validationErrors'][] = [
'name' => $missingParameter,
'message' => 'NOT_FOUND'
];