1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-database-indexing

This commit is contained in:
Torsten Dittmann 2021-11-25 11:28:55 +01:00
commit e30d7d1db4
2 changed files with 14 additions and 0 deletions

View file

@ -335,6 +335,12 @@ class OpenAPI3 extends Format
'type' => 'string',
];
break;
case 'Utopia\Database\Validator\Permissions':
$node['schema']['type'] = $validator->getType();
$node['schema']['items'] = [
'type' => 'string',
];
break;
case 'Appwrite\Auth\Validator\Password':
$node['schema']['type'] = $validator->getType();
$node['schema']['format'] = 'password';

View file

@ -323,6 +323,14 @@ class Swagger2 extends Format
'type' => 'string',
];
break;
case 'Utopia\Database\Validator\Permissions':
$node['type'] = $validator->getType();
$node['collectionFormat'] = 'multi';
$node['items'] = [
'type' => 'string',
];
$node['x-example'] = '["role:all"]';
break;
case 'Appwrite\Auth\Validator\Password':
$node['type'] = $validator->getType();
$node['format'] = 'password';