From ae83b85d9dd363c70c000d16f2fb90e229cc721b Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Tue, 30 Apr 2024 20:53:10 -0700 Subject: [PATCH] GH-14 --- src/Http/Requests/Backlog/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Board/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Board/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Board/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Epic/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Epic/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Epic/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Epic/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Flow/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Flow/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Flow/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Flow/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Matrix/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Matrix/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Matrix/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Matrix/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Milestone/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Milestone/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Milestone/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Milestone/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Note/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Note/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Note/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Note/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Project/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Project/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Project/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Project/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Release/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Release/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Release/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Release/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Roadmap/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Roadmap/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Roadmap/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Roadmap/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Source/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Source/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Source/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Source/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Sprint/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Sprint/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Sprint/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Sprint/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Tag/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Tag/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Tag/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Tag/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Team/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Team/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Team/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Team/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Ticket/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Ticket/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Ticket/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Ticket/UpdateRequest.php | 20 +++++++++---------- src/Http/Requests/Version/CreateRequest.php | 20 +++++++++---------- src/Http/Requests/Version/EditRequest.php | 20 +++++++++---------- src/Http/Requests/Version/StoreRequest.php | 20 +++++++++---------- src/Http/Requests/Version/UpdateRequest.php | 20 +++++++++---------- .../Controllers/Playground/IndexRouteTest.php | 7 +++++-- 61 files changed, 605 insertions(+), 602 deletions(-) diff --git a/src/Http/Requests/Backlog/CreateRequest.php b/src/Http/Requests/Backlog/CreateRequest.php index 02b47b5..32a3cff 100644 --- a/src/Http/Requests/Backlog/CreateRequest.php +++ b/src/Http/Requests/Backlog/CreateRequest.php @@ -61,16 +61,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Board/EditRequest.php b/src/Http/Requests/Board/EditRequest.php index 6ac27df..847ebf1 100644 --- a/src/Http/Requests/Board/EditRequest.php +++ b/src/Http/Requests/Board/EditRequest.php @@ -61,16 +61,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Board/StoreRequest.php b/src/Http/Requests/Board/StoreRequest.php index a54606c..9373d1c 100644 --- a/src/Http/Requests/Board/StoreRequest.php +++ b/src/Http/Requests/Board/StoreRequest.php @@ -61,16 +61,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Board/UpdateRequest.php b/src/Http/Requests/Board/UpdateRequest.php index 5f52cca..3648c0a 100644 --- a/src/Http/Requests/Board/UpdateRequest.php +++ b/src/Http/Requests/Board/UpdateRequest.php @@ -61,16 +61,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Epic/CreateRequest.php b/src/Http/Requests/Epic/CreateRequest.php index dd1a555..09ce505 100644 --- a/src/Http/Requests/Epic/CreateRequest.php +++ b/src/Http/Requests/Epic/CreateRequest.php @@ -61,16 +61,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Epic/EditRequest.php b/src/Http/Requests/Epic/EditRequest.php index 8a6552a..ef7203f 100644 --- a/src/Http/Requests/Epic/EditRequest.php +++ b/src/Http/Requests/Epic/EditRequest.php @@ -61,16 +61,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Epic/StoreRequest.php b/src/Http/Requests/Epic/StoreRequest.php index d40e1e4..e83e9b1 100644 --- a/src/Http/Requests/Epic/StoreRequest.php +++ b/src/Http/Requests/Epic/StoreRequest.php @@ -61,16 +61,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Epic/UpdateRequest.php b/src/Http/Requests/Epic/UpdateRequest.php index 303db1e..e263dce 100644 --- a/src/Http/Requests/Epic/UpdateRequest.php +++ b/src/Http/Requests/Epic/UpdateRequest.php @@ -61,16 +61,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Flow/CreateRequest.php b/src/Http/Requests/Flow/CreateRequest.php index 3f37deb..58237c1 100644 --- a/src/Http/Requests/Flow/CreateRequest.php +++ b/src/Http/Requests/Flow/CreateRequest.php @@ -44,16 +44,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'cron' => ['boolean'], 'flagged' => ['boolean'], diff --git a/src/Http/Requests/Flow/EditRequest.php b/src/Http/Requests/Flow/EditRequest.php index 429bed8..a11691c 100644 --- a/src/Http/Requests/Flow/EditRequest.php +++ b/src/Http/Requests/Flow/EditRequest.php @@ -44,16 +44,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'cron' => ['boolean'], 'flagged' => ['boolean'], diff --git a/src/Http/Requests/Flow/StoreRequest.php b/src/Http/Requests/Flow/StoreRequest.php index 1cd6fe0..a82e19f 100644 --- a/src/Http/Requests/Flow/StoreRequest.php +++ b/src/Http/Requests/Flow/StoreRequest.php @@ -44,16 +44,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'cron' => ['boolean'], 'flagged' => ['boolean'], diff --git a/src/Http/Requests/Flow/UpdateRequest.php b/src/Http/Requests/Flow/UpdateRequest.php index 0c7d618..a5c0c1c 100644 --- a/src/Http/Requests/Flow/UpdateRequest.php +++ b/src/Http/Requests/Flow/UpdateRequest.php @@ -44,16 +44,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'cron' => ['boolean'], 'flagged' => ['boolean'], diff --git a/src/Http/Requests/Matrix/CreateRequest.php b/src/Http/Requests/Matrix/CreateRequest.php index 335b8ef..5ab3edd 100644 --- a/src/Http/Requests/Matrix/CreateRequest.php +++ b/src/Http/Requests/Matrix/CreateRequest.php @@ -43,16 +43,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Matrix/EditRequest.php b/src/Http/Requests/Matrix/EditRequest.php index d912680..ba470e7 100644 --- a/src/Http/Requests/Matrix/EditRequest.php +++ b/src/Http/Requests/Matrix/EditRequest.php @@ -43,16 +43,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Matrix/StoreRequest.php b/src/Http/Requests/Matrix/StoreRequest.php index aa927cd..84b1d2d 100644 --- a/src/Http/Requests/Matrix/StoreRequest.php +++ b/src/Http/Requests/Matrix/StoreRequest.php @@ -43,16 +43,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Matrix/UpdateRequest.php b/src/Http/Requests/Matrix/UpdateRequest.php index dac0a91..f938fd7 100644 --- a/src/Http/Requests/Matrix/UpdateRequest.php +++ b/src/Http/Requests/Matrix/UpdateRequest.php @@ -43,16 +43,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Milestone/CreateRequest.php b/src/Http/Requests/Milestone/CreateRequest.php index 9848afd..3d062a6 100644 --- a/src/Http/Requests/Milestone/CreateRequest.php +++ b/src/Http/Requests/Milestone/CreateRequest.php @@ -59,16 +59,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Milestone/EditRequest.php b/src/Http/Requests/Milestone/EditRequest.php index 69c08cd..eb0755f 100644 --- a/src/Http/Requests/Milestone/EditRequest.php +++ b/src/Http/Requests/Milestone/EditRequest.php @@ -59,16 +59,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Milestone/StoreRequest.php b/src/Http/Requests/Milestone/StoreRequest.php index 1d9f749..be16ff2 100644 --- a/src/Http/Requests/Milestone/StoreRequest.php +++ b/src/Http/Requests/Milestone/StoreRequest.php @@ -59,16 +59,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Milestone/UpdateRequest.php b/src/Http/Requests/Milestone/UpdateRequest.php index 0f78e72..eb990f8 100644 --- a/src/Http/Requests/Milestone/UpdateRequest.php +++ b/src/Http/Requests/Milestone/UpdateRequest.php @@ -59,16 +59,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Note/CreateRequest.php b/src/Http/Requests/Note/CreateRequest.php index 7ec611f..bb507f2 100644 --- a/src/Http/Requests/Note/CreateRequest.php +++ b/src/Http/Requests/Note/CreateRequest.php @@ -34,16 +34,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Note/EditRequest.php b/src/Http/Requests/Note/EditRequest.php index 3f40021..18c9cdf 100644 --- a/src/Http/Requests/Note/EditRequest.php +++ b/src/Http/Requests/Note/EditRequest.php @@ -34,16 +34,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Note/StoreRequest.php b/src/Http/Requests/Note/StoreRequest.php index 936d19e..e9fcc84 100644 --- a/src/Http/Requests/Note/StoreRequest.php +++ b/src/Http/Requests/Note/StoreRequest.php @@ -34,16 +34,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Note/UpdateRequest.php b/src/Http/Requests/Note/UpdateRequest.php index 1a7dc84..1f61b69 100644 --- a/src/Http/Requests/Note/UpdateRequest.php +++ b/src/Http/Requests/Note/UpdateRequest.php @@ -34,16 +34,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Project/CreateRequest.php b/src/Http/Requests/Project/CreateRequest.php index 8d63d08..b3a30b8 100644 --- a/src/Http/Requests/Project/CreateRequest.php +++ b/src/Http/Requests/Project/CreateRequest.php @@ -59,16 +59,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Project/EditRequest.php b/src/Http/Requests/Project/EditRequest.php index 9b471fa..6b4aa5a 100644 --- a/src/Http/Requests/Project/EditRequest.php +++ b/src/Http/Requests/Project/EditRequest.php @@ -59,16 +59,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Project/StoreRequest.php b/src/Http/Requests/Project/StoreRequest.php index a27c45d..85b45d4 100644 --- a/src/Http/Requests/Project/StoreRequest.php +++ b/src/Http/Requests/Project/StoreRequest.php @@ -59,16 +59,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Project/UpdateRequest.php b/src/Http/Requests/Project/UpdateRequest.php index 87b244b..ea090c2 100644 --- a/src/Http/Requests/Project/UpdateRequest.php +++ b/src/Http/Requests/Project/UpdateRequest.php @@ -59,16 +59,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Release/CreateRequest.php b/src/Http/Requests/Release/CreateRequest.php index 4298d45..155e3fc 100644 --- a/src/Http/Requests/Release/CreateRequest.php +++ b/src/Http/Requests/Release/CreateRequest.php @@ -59,16 +59,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Release/EditRequest.php b/src/Http/Requests/Release/EditRequest.php index 739ddca..4bcf968 100644 --- a/src/Http/Requests/Release/EditRequest.php +++ b/src/Http/Requests/Release/EditRequest.php @@ -59,16 +59,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Release/StoreRequest.php b/src/Http/Requests/Release/StoreRequest.php index 74ff878..346ec86 100644 --- a/src/Http/Requests/Release/StoreRequest.php +++ b/src/Http/Requests/Release/StoreRequest.php @@ -59,16 +59,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Release/UpdateRequest.php b/src/Http/Requests/Release/UpdateRequest.php index d8758bb..169e09f 100644 --- a/src/Http/Requests/Release/UpdateRequest.php +++ b/src/Http/Requests/Release/UpdateRequest.php @@ -59,16 +59,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Roadmap/CreateRequest.php b/src/Http/Requests/Roadmap/CreateRequest.php index 88cdd6d..b752aa1 100644 --- a/src/Http/Requests/Roadmap/CreateRequest.php +++ b/src/Http/Requests/Roadmap/CreateRequest.php @@ -59,16 +59,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Roadmap/EditRequest.php b/src/Http/Requests/Roadmap/EditRequest.php index de4d220..ac59826 100644 --- a/src/Http/Requests/Roadmap/EditRequest.php +++ b/src/Http/Requests/Roadmap/EditRequest.php @@ -59,16 +59,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Roadmap/StoreRequest.php b/src/Http/Requests/Roadmap/StoreRequest.php index eb4d69d..baaf8d5 100644 --- a/src/Http/Requests/Roadmap/StoreRequest.php +++ b/src/Http/Requests/Roadmap/StoreRequest.php @@ -59,16 +59,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Roadmap/UpdateRequest.php b/src/Http/Requests/Roadmap/UpdateRequest.php index 0641a1d..deaa232 100644 --- a/src/Http/Requests/Roadmap/UpdateRequest.php +++ b/src/Http/Requests/Roadmap/UpdateRequest.php @@ -59,16 +59,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Source/CreateRequest.php b/src/Http/Requests/Source/CreateRequest.php index 69a0a6e..792d4ec 100644 --- a/src/Http/Requests/Source/CreateRequest.php +++ b/src/Http/Requests/Source/CreateRequest.php @@ -47,16 +47,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Source/EditRequest.php b/src/Http/Requests/Source/EditRequest.php index 48c818c..584c646 100644 --- a/src/Http/Requests/Source/EditRequest.php +++ b/src/Http/Requests/Source/EditRequest.php @@ -47,16 +47,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Source/StoreRequest.php b/src/Http/Requests/Source/StoreRequest.php index 30c2fb9..22b5221 100644 --- a/src/Http/Requests/Source/StoreRequest.php +++ b/src/Http/Requests/Source/StoreRequest.php @@ -47,16 +47,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Source/UpdateRequest.php b/src/Http/Requests/Source/UpdateRequest.php index e75649f..9c2ddcb 100644 --- a/src/Http/Requests/Source/UpdateRequest.php +++ b/src/Http/Requests/Source/UpdateRequest.php @@ -47,16 +47,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Sprint/CreateRequest.php b/src/Http/Requests/Sprint/CreateRequest.php index ef16cf8..a2e7c30 100644 --- a/src/Http/Requests/Sprint/CreateRequest.php +++ b/src/Http/Requests/Sprint/CreateRequest.php @@ -61,16 +61,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Sprint/EditRequest.php b/src/Http/Requests/Sprint/EditRequest.php index 90ca3cb..b590f4e 100644 --- a/src/Http/Requests/Sprint/EditRequest.php +++ b/src/Http/Requests/Sprint/EditRequest.php @@ -61,16 +61,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Sprint/StoreRequest.php b/src/Http/Requests/Sprint/StoreRequest.php index 8eaa16d..7ba658d 100644 --- a/src/Http/Requests/Sprint/StoreRequest.php +++ b/src/Http/Requests/Sprint/StoreRequest.php @@ -61,16 +61,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Sprint/UpdateRequest.php b/src/Http/Requests/Sprint/UpdateRequest.php index d76a553..88f62d7 100644 --- a/src/Http/Requests/Sprint/UpdateRequest.php +++ b/src/Http/Requests/Sprint/UpdateRequest.php @@ -61,16 +61,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Tag/CreateRequest.php b/src/Http/Requests/Tag/CreateRequest.php index c18facf..dbd5c95 100644 --- a/src/Http/Requests/Tag/CreateRequest.php +++ b/src/Http/Requests/Tag/CreateRequest.php @@ -33,16 +33,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/src/Http/Requests/Tag/EditRequest.php b/src/Http/Requests/Tag/EditRequest.php index 5002bea..ceb5b6c 100644 --- a/src/Http/Requests/Tag/EditRequest.php +++ b/src/Http/Requests/Tag/EditRequest.php @@ -33,16 +33,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/src/Http/Requests/Tag/StoreRequest.php b/src/Http/Requests/Tag/StoreRequest.php index df85f91..5edc3f6 100644 --- a/src/Http/Requests/Tag/StoreRequest.php +++ b/src/Http/Requests/Tag/StoreRequest.php @@ -33,16 +33,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/src/Http/Requests/Tag/UpdateRequest.php b/src/Http/Requests/Tag/UpdateRequest.php index f7fe26c..45d504c 100644 --- a/src/Http/Requests/Tag/UpdateRequest.php +++ b/src/Http/Requests/Tag/UpdateRequest.php @@ -33,16 +33,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/src/Http/Requests/Team/CreateRequest.php b/src/Http/Requests/Team/CreateRequest.php index ca3a87c..cede936 100644 --- a/src/Http/Requests/Team/CreateRequest.php +++ b/src/Http/Requests/Team/CreateRequest.php @@ -57,16 +57,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Team/EditRequest.php b/src/Http/Requests/Team/EditRequest.php index 3e8cf43..007f36e 100644 --- a/src/Http/Requests/Team/EditRequest.php +++ b/src/Http/Requests/Team/EditRequest.php @@ -57,16 +57,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Team/StoreRequest.php b/src/Http/Requests/Team/StoreRequest.php index 8cc2bd4..22287da 100644 --- a/src/Http/Requests/Team/StoreRequest.php +++ b/src/Http/Requests/Team/StoreRequest.php @@ -57,16 +57,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Team/UpdateRequest.php b/src/Http/Requests/Team/UpdateRequest.php index 6d5c302..94bc92b 100644 --- a/src/Http/Requests/Team/UpdateRequest.php +++ b/src/Http/Requests/Team/UpdateRequest.php @@ -57,16 +57,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Ticket/CreateRequest.php b/src/Http/Requests/Ticket/CreateRequest.php index ddd17a1..6f82d1c 100644 --- a/src/Http/Requests/Ticket/CreateRequest.php +++ b/src/Http/Requests/Ticket/CreateRequest.php @@ -66,16 +66,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Ticket/EditRequest.php b/src/Http/Requests/Ticket/EditRequest.php index 60b1f3a..5515792 100644 --- a/src/Http/Requests/Ticket/EditRequest.php +++ b/src/Http/Requests/Ticket/EditRequest.php @@ -66,16 +66,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Ticket/StoreRequest.php b/src/Http/Requests/Ticket/StoreRequest.php index 7106a83..87b0626 100644 --- a/src/Http/Requests/Ticket/StoreRequest.php +++ b/src/Http/Requests/Ticket/StoreRequest.php @@ -66,16 +66,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Ticket/UpdateRequest.php b/src/Http/Requests/Ticket/UpdateRequest.php index 7c9ab52..7ac1e73 100644 --- a/src/Http/Requests/Ticket/UpdateRequest.php +++ b/src/Http/Requests/Ticket/UpdateRequest.php @@ -66,16 +66,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'canceled' => ['boolean'], 'closed' => ['boolean'], diff --git a/src/Http/Requests/Version/CreateRequest.php b/src/Http/Requests/Version/CreateRequest.php index f8bb26c..1d6142f 100644 --- a/src/Http/Requests/Version/CreateRequest.php +++ b/src/Http/Requests/Version/CreateRequest.php @@ -33,16 +33,16 @@ class CreateRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/src/Http/Requests/Version/EditRequest.php b/src/Http/Requests/Version/EditRequest.php index c9c907b..eed8fc1 100644 --- a/src/Http/Requests/Version/EditRequest.php +++ b/src/Http/Requests/Version/EditRequest.php @@ -33,16 +33,16 @@ class EditRequest extends FormRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/src/Http/Requests/Version/StoreRequest.php b/src/Http/Requests/Version/StoreRequest.php index 1cee75d..6089a44 100644 --- a/src/Http/Requests/Version/StoreRequest.php +++ b/src/Http/Requests/Version/StoreRequest.php @@ -33,16 +33,16 @@ class StoreRequest extends BaseStoreRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/src/Http/Requests/Version/UpdateRequest.php b/src/Http/Requests/Version/UpdateRequest.php index 9ee0251..b92e5f9 100644 --- a/src/Http/Requests/Version/UpdateRequest.php +++ b/src/Http/Requests/Version/UpdateRequest.php @@ -33,16 +33,16 @@ class UpdateRequest extends BaseUpdateRequest 'rank' => ['integer'], 'size' => ['integer'], 'matrix' => ['array'], - 'x' => ['integer'], - 'y' => ['integer'], - 'z' => ['integer'], - 'r' => ['float'], - 'theta' => ['float'], - 'rho' => ['float'], - 'phi' => ['float'], - 'elevation' => ['float'], - 'latitude' => ['float'], - 'longitude' => ['float'], + 'x' => ['nullable', 'integer'], + 'y' => ['nullable', 'integer'], + 'z' => ['nullable', 'integer'], + 'r' => ['nullable', 'numeric'], + 'theta' => ['nullable', 'numeric'], + 'rho' => ['nullable', 'numeric'], + 'phi' => ['nullable', 'numeric'], + 'elevation' => ['nullable', 'numeric'], + 'latitude' => ['nullable', 'numeric'], + 'longitude' => ['nullable', 'numeric'], 'active' => ['boolean'], 'flagged' => ['boolean'], 'internal' => ['boolean'], diff --git a/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php b/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php index c467440..4489395 100644 --- a/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php +++ b/tests/Feature/Http/Controllers/Playground/IndexRouteTest.php @@ -18,7 +18,7 @@ class IndexRouteTest extends TestCase protected bool $load_migrations_matrix = true; - public function test_guest_cannot_render_index_view() + public function test_guest_cannot_render_index_view(): void { $url = route('playground.matrix.resource'); @@ -27,8 +27,11 @@ public function test_guest_cannot_render_index_view() $response->assertStatus(403); } - public function test_admin_can_render_index_view() + public function test_admin_can_render_index_view(): void { + /** + * @var User $user + */ $user = User::factory()->admin()->create(); $url = route('playground.matrix.resource');