From fe8e6fcfdabdbe992614464a0db716b36f46385c Mon Sep 17 00:00:00 2001 From: Boy132 Date: Tue, 25 Feb 2025 13:49:55 +0100 Subject: [PATCH] Fix `StoreServerRequest` for deployment (#1031) --- .../Api/Application/Servers/StoreServerRequest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php b/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php index fba1573bb..07f4b2636 100644 --- a/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php +++ b/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php @@ -55,9 +55,11 @@ class StoreServerRequest extends ApplicationApiRequest // Automatic deployment rules 'deploy' => 'sometimes|required|array', - 'deploy.locations' => 'array', - 'deploy.locations.*' => 'required_with:deploy.locations,integer|min:1', - 'deploy.dedicated_ip' => 'required_with:deploy,boolean', + 'deploy.locations' => 'sometimes|array', + 'deploy.locations.*' => 'required_with:deploy.locations|integer|min:1', + 'deploy.tags' => 'array', + 'deploy.tags.*' => 'required_with:deploy.tags|string|min:1', + 'deploy.dedicated_ip' => 'required_with:deploy|boolean', 'deploy.port_range' => 'array', 'deploy.port_range.*' => 'string', 'start_on_completion' => 'sometimes|boolean',