mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 15:34:44 +02:00
Make deploy.locations optional in the api (#295)
This commit is contained in:
parent
5760e72b8f
commit
7674ee0e2b
@ -56,11 +56,10 @@ class StoreServerRequest extends ApplicationApiRequest
|
|||||||
// Automatic deployment rules
|
// Automatic deployment rules
|
||||||
'deploy' => 'sometimes|required|array',
|
'deploy' => 'sometimes|required|array',
|
||||||
'deploy.locations' => 'array',
|
'deploy.locations' => 'array',
|
||||||
'deploy.locations.*' => 'integer|min:1',
|
'deploy.locations.*' => 'required_with:deploy.locations,integer|min:1',
|
||||||
'deploy.dedicated_ip' => 'required_with:deploy,boolean',
|
'deploy.dedicated_ip' => 'required_with:deploy,boolean',
|
||||||
'deploy.port_range' => 'array',
|
'deploy.port_range' => 'array',
|
||||||
'deploy.port_range.*' => 'string',
|
'deploy.port_range.*' => 'string',
|
||||||
|
|
||||||
'start_on_completion' => 'sometimes|boolean',
|
'start_on_completion' => 'sometimes|boolean',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user