mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
fix: tests
This commit is contained in:
parent
641740db77
commit
08ba652464
4 changed files with 2 additions and 8 deletions
|
|
@ -83,11 +83,9 @@ abstract class Model
|
|||
{
|
||||
$this->rules[$key] = array_merge([
|
||||
'required' => true,
|
||||
'type' => '',
|
||||
'array' => false,
|
||||
'description' => '',
|
||||
'default' => null,
|
||||
'example' => '',
|
||||
'array' => false
|
||||
'example' => ''
|
||||
], $options);
|
||||
|
||||
return $this;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ class AttributeEmail extends Attribute
|
|||
'description' => 'String format.',
|
||||
'default' => APP_DATABASE_ATTRIBUTE_EMAIL,
|
||||
'example' => APP_DATABASE_ATTRIBUTE_EMAIL,
|
||||
'required' => true,
|
||||
])
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_STRING,
|
||||
|
|
|
|||
|
|
@ -30,14 +30,12 @@ class AttributeEnum extends Attribute
|
|||
'default' => null,
|
||||
'example' => 'element',
|
||||
'array' => true,
|
||||
'required' => true,
|
||||
])
|
||||
->addRule('format', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'String format.',
|
||||
'default' => APP_DATABASE_ATTRIBUTE_ENUM,
|
||||
'example' => APP_DATABASE_ATTRIBUTE_ENUM,
|
||||
'required' => true,
|
||||
])
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_STRING,
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ class AttributeURL extends Attribute
|
|||
'description' => 'String format.',
|
||||
'default' => APP_DATABASE_ATTRIBUTE_URL,
|
||||
'example' => APP_DATABASE_ATTRIBUTE_URL,
|
||||
'required' => true,
|
||||
])
|
||||
->addRule('default', [
|
||||
'type' => self::TYPE_STRING,
|
||||
|
|
|
|||
Loading…
Reference in a new issue