mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Improve error and copy in params/models
This commit is contained in:
@@ -49,7 +49,7 @@ class Collection extends Model
|
||||
])
|
||||
->addRule('enabled', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
'description' => 'Collection enabled.',
|
||||
'description' => 'Collection enabled. Can be \'enabled\' or \'disabled\'. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys.',
|
||||
'default' => true,
|
||||
'example' => false,
|
||||
])
|
||||
|
||||
@@ -36,7 +36,7 @@ class Database extends Model
|
||||
])
|
||||
->addRule('enabled', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
'description' => 'Database enabled.',
|
||||
'description' => 'If database is enabled. Can be \'enabled\' or \'disabled\'. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys.',
|
||||
'default' => true,
|
||||
'example' => false,
|
||||
])
|
||||
|
||||
@@ -51,13 +51,13 @@ class Func extends Model
|
||||
])
|
||||
->addRule('live', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
'description' => 'Is function live (deployed with latest config)?',
|
||||
'description' => 'Is the function deployed with the latest configuration? This is set to false if you\'ve changed an environment variable. When the value is false, redeploy the function to update it with the latest configuration.',
|
||||
'default' => true,
|
||||
'example' => false,
|
||||
])
|
||||
->addRule('logging', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
'description' => 'Function logging.',
|
||||
'description' => 'Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.',
|
||||
'default' => true,
|
||||
'example' => false,
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user