Add response model rule

This commit is contained in:
Jake Barnby 2024-10-29 15:56:08 +13:00
parent 299664d18b
commit 64dd4bdce1
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -46,9 +46,15 @@ class Migration extends Model
'default' => '',
'example' => 'Appwrite',
])
->addRule('destination', [
'type' => self::TYPE_STRING,
'description' => 'A string containing the type of destination of the migration.',
'default' => 'Appwrite',
'example' => 'Appwrite',
])
->addRule('resources', [
'type' => self::TYPE_STRING,
'description' => 'Resources to migration.',
'description' => 'Resources to migrate.',
'default' => [],
'example' => ['user'],
'array' => true