From c31055f144d78f713edcb67e5d9bf5faaa725410 Mon Sep 17 00:00:00 2001 From: Shimon Newman Date: Wed, 1 Jun 2022 12:55:35 +0300 Subject: [PATCH 1/2] Update app/controllers/api/projects.php Co-authored-by: Torsten Dittmann --- app/controllers/api/projects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 8145cab3e2..fd562c2003 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -776,7 +776,7 @@ App::post('/v1/projects/:projectId/keys') ->param('projectId', null, new UID(), 'Project unique ID.') ->param('name', null, new Text(128), 'Key name. Max length: 128 chars.') ->param('scopes', null, new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Key scopes list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' scopes are allowed.') - ->param('expire', 0, new Integer() , 'Key expiration time') + ->param('expire', 0, new Integer(), 'Key expiration time') ->inject('response') ->inject('dbForConsole') ->action(function (string $projectId, string $name, array $scopes, int $expire, Response $response, Database $dbForConsole) { From 0d24ebd6f5ffc38caef4cf0b85d10e0178181715 Mon Sep 17 00:00:00 2001 From: Shimon Newman Date: Wed, 1 Jun 2022 12:55:46 +0300 Subject: [PATCH 2/2] Update src/Appwrite/Utopia/Response/Model/Key.php Co-authored-by: Torsten Dittmann --- src/Appwrite/Utopia/Response/Model/Key.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Utopia/Response/Model/Key.php b/src/Appwrite/Utopia/Response/Model/Key.php index 48a0b5ac6c..85353cff35 100644 --- a/src/Appwrite/Utopia/Response/Model/Key.php +++ b/src/Appwrite/Utopia/Response/Model/Key.php @@ -29,7 +29,7 @@ class Key extends Model ]) ->addRule('expire', [ 'type' => self::TYPE_INTEGER, - 'description' => 'Key expiration .', + 'description' => 'Key expiration timestamp.', 'default' => 0, 'example' => '1653990687', ])