Rollback Func Correctly
This commit is contained in:
parent
fb091f1b48
commit
af0c111d2e
|
@ -61,6 +61,12 @@ class Func extends Model
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'example' => '5e5ea5c16897e',
|
'example' => '5e5ea5c16897e',
|
||||||
])
|
])
|
||||||
|
->addRule('vars', [
|
||||||
|
'type' => self::TYPE_JSON,
|
||||||
|
'description' => 'Function environment variables.',
|
||||||
|
'default' => new \stdClass(),
|
||||||
|
'example' => ['key' => 'value'],
|
||||||
|
])
|
||||||
->addRule('events', [
|
->addRule('events', [
|
||||||
'type' => self::TYPE_STRING,
|
'type' => self::TYPE_STRING,
|
||||||
'description' => 'Function trigger events.',
|
'description' => 'Function trigger events.',
|
||||||
|
|
Loading…
Reference in a new issue