Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-database-indexing
This commit is contained in:
commit
e30d7d1db4
2 changed files with 14 additions and 0 deletions
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue