mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Use exposed nested validator
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@
|
||||
"ext-sockets": "*",
|
||||
"appwrite/php-clamav": "1.1.*",
|
||||
"appwrite/php-runtimes": "0.7.*",
|
||||
"utopia-php/framework": "0.19.*",
|
||||
"utopia-php/framework": "dev-feat-graphql-helpers",
|
||||
"utopia-php/logger": "0.3.*",
|
||||
"utopia-php/abuse": "0.7.*",
|
||||
"utopia-php/analytics": "0.2.*",
|
||||
|
||||
@@ -6,9 +6,6 @@ use Appwrite\GraphQL\Types\JsonType;
|
||||
use Appwrite\Utopia\Request;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Appwrite\Utopia\Response\Model;
|
||||
use Appwrite\Utopia\Response\Model\User;
|
||||
use GraphQL\Error\Error;
|
||||
use GraphQL\Error\FormattedError;
|
||||
use GraphQL\Type\Definition\ObjectType;
|
||||
use GraphQL\Type\Definition\Type;
|
||||
use GraphQL\Type\Schema;
|
||||
@@ -210,8 +207,12 @@ class Builder
|
||||
$type = Type::boolean();
|
||||
break;
|
||||
case 'Utopia\Validator\ArrayList':
|
||||
$nested = (fn() => $this->validator)->bindTo($validator, $validator)();
|
||||
$type = Type::listOf(self::getParameterArgType($utopia, $nested, $required, $injections));
|
||||
$type = Type::listOf(self::getParameterArgType(
|
||||
$utopia,
|
||||
$validator->getValidator(),
|
||||
$required,
|
||||
$injections)
|
||||
);
|
||||
break;
|
||||
case 'Utopia\Validator\Numeric':
|
||||
case 'Utopia\Validator\Integer':
|
||||
|
||||
Reference in New Issue
Block a user