diff --git a/app/config/collections.php b/app/config/collections.php index b468459e95..bfc222e34f 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1484,24 +1484,13 @@ $commonCollections = [ 'array' => false, 'filters' => [], ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], [ '$id' => ID::custom('data'), 'type' => Database::VAR_STRING, 'format' => '', 'size' => 16384, 'signed' => true, - 'required' => false, + 'required' => true, 'default' => null, 'array' => false, 'filters' => ['json'], @@ -1545,7 +1534,7 @@ $commonCollections = [ 'format' => '', 'size' => 0, 'signed' => true, - 'required' => true, + 'required' => false, 'default' => null, 'array' => false, 'filters' => [], @@ -1556,7 +1545,7 @@ $commonCollections = [ 'format' => '', 'size' => 0, 'signed' => true, - 'required' => true, + 'required' => false, 'default' => false, 'array' => false, 'filters' => [], diff --git a/src/Appwrite/Utopia/Response/Model/Provider.php b/src/Appwrite/Utopia/Response/Model/Provider.php index 6dd12a4d7a..0cbc233fc3 100644 --- a/src/Appwrite/Utopia/Response/Model/Provider.php +++ b/src/Appwrite/Utopia/Response/Model/Provider.php @@ -33,6 +33,12 @@ class Provider extends Model 'default' => '', 'example' => 'mailgun', ]) + ->addRule('default', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Default provider or not.', + 'default' => '', + 'example' => true, + ]) ->addRule('type', [ 'type' => self::TYPE_STRING, 'description' => 'Type of provider.',