diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 3934cfdbb2..6fa6fd93ed 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -534,7 +534,7 @@ class OpenAPI3 extends Format $node['schema']['items'] = [ 'type' => 'string', ]; - $node['schema']['x-example'] = '["' . str_ireplace("\"", "'", Permission::read(Role::any())) . '"]'; + $node['schema']['x-example'] = "['" . str_ireplace("'", "\"", Permission::read(Role::any())) . "']"; break; case 'Utopia\Database\Validator\Roles': $node['schema']['type'] = $validator->getType(); diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 21acca7263..4ce092a14f 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -524,7 +524,7 @@ class Swagger2 extends Format $node['items'] = [ 'type' => 'string', ]; - $node['x-example'] = '["' . str_ireplace("\"", "'", Permission::read(Role::any())) . '"]'; + $node['x-example'] = "['" . str_ireplace("'", "\"", Permission::read(Role::any())) . "']"; break; case 'Utopia\Database\Validator\Roles': $node['type'] = $validator->getType();