mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
fix bucket model
This commit is contained in:
parent
f1c3105180
commit
543c32a1ab
1 changed files with 5 additions and 4 deletions
|
|
@ -68,9 +68,9 @@ class Bucket extends Model
|
|||
'example' => 'local',
|
||||
])
|
||||
->addRule('adapterCredentials', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Storage adapter credentials.',
|
||||
'default' => '',
|
||||
'default' => new \stdClass,
|
||||
'example' => ['key' => 'value'],
|
||||
])
|
||||
->addRule('maximumFileSize', [
|
||||
|
|
@ -82,8 +82,9 @@ class Bucket extends Model
|
|||
->addRule('allowedFileExtensions', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Allowed file extensions.',
|
||||
'default' => '',
|
||||
'example' => 'jpg,png',
|
||||
'default' => [],
|
||||
'example' => ['jpg', 'png'],
|
||||
'array' => true
|
||||
])
|
||||
->addRule('encryption', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
|
|
|
|||
Loading…
Reference in a new issue