Fix handling of backup tasks; closes #2067
This commit is contained in:
parent
364b645b81
commit
693b9eab0c
5 changed files with 35 additions and 11 deletions
|
@ -25,7 +25,7 @@ class StoreTaskRequest extends ViewScheduleRequest
|
|||
{
|
||||
return [
|
||||
'action' => 'required|in:command,power,backup',
|
||||
'payload' => 'required_unless:action,backup|string',
|
||||
'payload' => 'required_unless:action,backup|string|nullable',
|
||||
'time_offset' => 'required|numeric|min:0|max:900',
|
||||
'sequence_id' => 'sometimes|required|numeric|min:1',
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue