From 9c2b9fee1f12e89b156e009ab73a4ec63c3d5fed Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 1 Nov 2021 18:37:08 +0545 Subject: [PATCH] fix spec --- src/Appwrite/Specification/Format/Swagger2.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index 7a9822160a..7c45e9cb53 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -323,6 +323,13 @@ class Swagger2 extends Format 'type' => 'string', ]; break; + case 'Utopia\Database\Validator\Permissions': + $node['type'] = $validator->getType(); + $node['collectionFormat'] = 'multi'; + $node['items'] = [ + 'type' => 'string', + ]; + break; case 'Appwrite\Auth\Validator\Password': $node['type'] = $validator->getType(); $node['format'] = 'password';