adds data in message model and search param in messages query validator
This commit is contained in:
parent
8602c44d14
commit
b86f531b30
2 changed files with 11 additions and 1 deletions
|
@ -12,7 +12,8 @@ class Messages extends Base
|
|||
'deliveryErrors',
|
||||
'status',
|
||||
'description',
|
||||
'data'
|
||||
'data',
|
||||
'search'
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -58,6 +58,15 @@ class Message extends Any
|
|||
'default' => 0,
|
||||
'example' => 1,
|
||||
])
|
||||
->addRule('data', [
|
||||
'type' => self::TYPE_JSON,
|
||||
'description' => 'Data of the message.',
|
||||
'default' => [],
|
||||
'example' => [
|
||||
'subject' => 'Welcome to Appwrite',
|
||||
'content' => 'Hi there, welcome to Appwrite family.',
|
||||
],
|
||||
])
|
||||
->addRule('status', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Status of delivery.',
|
||||
|
|
Loading…
Reference in a new issue