add to open api spec as well
This commit is contained in:
parent
ebe3dc0dbd
commit
31d596c43c
1 changed files with 3 additions and 0 deletions
|
@ -276,6 +276,9 @@ class OpenAPI3 extends Format
|
|||
break;
|
||||
case 'Utopia\Database\Validator\UID':
|
||||
case 'Appwrite\Utopia\Database\Validator\CustomId':
|
||||
if($route->getLabel('sdk.methodType', '') === 'upload') {
|
||||
$node['schema']['x-upload-id'] = true;
|
||||
}
|
||||
$node['schema']['type'] = $validator->getType();
|
||||
$node['schema']['x-example'] = '['.\strtoupper(Template::fromCamelCaseToSnake($node['name'])).']';
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue