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();