From b64202043de87da12b6d84a454723bbd047b898b Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Wed, 21 Jul 2021 10:26:08 -0400 Subject: [PATCH] Renamed import due to reserved keyword conflicts --- app/controllers/api/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index db715f5234..279bd2ae71 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -3,7 +3,7 @@ use Utopia\App; use Utopia\Exception; use Utopia\Validator\Boolean; -use Utopia\Validator\FloatValidator as Float; +use Utopia\Validator\FloatValidator; use Utopia\Validator\Integer; use Utopia\Validator\Numeric; use Utopia\Validator\Range; @@ -392,7 +392,7 @@ App::post('/v1/database/collections/:collectionId/attributes/float') ->param('collectionId', '', new UID(), 'Collection unique ID. You can create a new collection using the Database service [server integration](/docs/server/database#createCollection).') ->param('attributeId', '', new Key(), 'Attribute ID.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('default', null, new Float(), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) + ->param('default', null, new FloatValidator(), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) ->param('array', false, new Boolean(), 'Is attribute an array?', true) ->inject('response') ->inject('dbForExternal')