1
0
Fork 0
mirror of synced 2024-09-28 23:41:23 +12:00

Merge pull request #3665 from appwrite/fix-remove-consts-response

Remove constants from response models
This commit is contained in:
Eldad A. Fux 2022-08-12 06:51:52 +03:00 committed by GitHub
commit 856a53c33c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -27,8 +27,8 @@ class AttributeEmail extends Attribute
->addRule('format', [ ->addRule('format', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'String format.', 'description' => 'String format.',
'default' => APP_DATABASE_ATTRIBUTE_EMAIL, 'default' => 'email',
'example' => APP_DATABASE_ATTRIBUTE_EMAIL, 'example' => 'email',
'array' => false, 'array' => false,
'require' => true, 'require' => true,
]) ])

View file

@ -35,8 +35,8 @@ class AttributeEnum extends Attribute
->addRule('format', [ ->addRule('format', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'String format.', 'description' => 'String format.',
'default' => APP_DATABASE_ATTRIBUTE_ENUM, 'default' => 'enum',
'example' => APP_DATABASE_ATTRIBUTE_ENUM, 'example' => 'enum',
'array' => false, 'array' => false,
'require' => true, 'require' => true,
]) ])

View file

@ -27,8 +27,8 @@ class AttributeIP extends Attribute
->addRule('format', [ ->addRule('format', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'String format.', 'description' => 'String format.',
'default' => APP_DATABASE_ATTRIBUTE_IP, 'default' => 'ip',
'example' => APP_DATABASE_ATTRIBUTE_IP, 'example' => 'ip',
'array' => false, 'array' => false,
'require' => true, 'require' => true,
]) ])

View file

@ -27,8 +27,8 @@ class AttributeURL extends Attribute
->addRule('format', [ ->addRule('format', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'String format.', 'description' => 'String format.',
'default' => APP_DATABASE_ATTRIBUTE_URL, 'default' => 'url',
'example' => APP_DATABASE_ATTRIBUTE_URL, 'example' => 'url',
'array' => false, 'array' => false,
'required' => true, 'required' => true,
]) ])