mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +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',
|
'example' => 'local',
|
||||||
])
|
])
|
||||||
->addRule('adapterCredentials', [
|
->addRule('adapterCredentials', [
|
||||||
'type' => self::TYPE_STRING,
|
'type' => self::TYPE_JSON,
|
||||||
'description' => 'Storage adapter credentials.',
|
'description' => 'Storage adapter credentials.',
|
||||||
'default' => '',
|
'default' => new \stdClass,
|
||||||
'example' => ['key' => 'value'],
|
'example' => ['key' => 'value'],
|
||||||
])
|
])
|
||||||
->addRule('maximumFileSize', [
|
->addRule('maximumFileSize', [
|
||||||
|
|
@ -82,8 +82,9 @@ class Bucket extends Model
|
||||||
->addRule('allowedFileExtensions', [
|
->addRule('allowedFileExtensions', [
|
||||||
'type' => self::TYPE_STRING,
|
'type' => self::TYPE_STRING,
|
||||||
'description' => 'Allowed file extensions.',
|
'description' => 'Allowed file extensions.',
|
||||||
'default' => '',
|
'default' => [],
|
||||||
'example' => 'jpg,png',
|
'example' => ['jpg', 'png'],
|
||||||
|
'array' => true
|
||||||
])
|
])
|
||||||
->addRule('encryption', [
|
->addRule('encryption', [
|
||||||
'type' => self::TYPE_BOOLEAN,
|
'type' => self::TYPE_BOOLEAN,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue