From 893d077e5da77b7842eb22f556f9b6d0ff6fd40c Mon Sep 17 00:00:00 2001 From: choir27 Date: Mon, 22 Jul 2024 15:05:24 -0400 Subject: [PATCH] change swagger2.php --- src/Appwrite/Specification/Format/Swagger2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index 03dcd38814..a9772cc4e5 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -376,7 +376,7 @@ class Swagger2 extends Format $node['items'] = [ 'type' => 'string', ]; - $node['x-example'] = '["' . Permission::read(Role::any()) . '"]'; + $node['x-example'] = [. Permission::read(Role::any())]; break; case 'Utopia\Database\Validator\Roles': $node['type'] = $validator->getType(); @@ -384,7 +384,7 @@ class Swagger2 extends Format $node['items'] = [ 'type' => 'string', ]; - $node['x-example'] = '["' . Role::any()->toString() . '"]'; + $node['x-example'] = [. Role::any()->toString() .]; break; case 'Appwrite\Auth\Validator\Password': $node['type'] = $validator->getType();