feat: invert quotes

This commit is contained in:
Mustaque Ahmed
2025-10-21 14:46:46 +05:30
parent bfcb0b57de
commit 4fc6f73ce6
2 changed files with 2 additions and 2 deletions
@@ -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();
@@ -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();