From 6df585fe8084dcae83523b959d590e8c1be3e96a Mon Sep 17 00:00:00 2001 From: gkourie Date: Thu, 19 Dec 2024 17:27:17 +0100 Subject: [PATCH] Remove feature vector rule --- app/Http/Requests/StoreImageAnnotationLabel.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Requests/StoreImageAnnotationLabel.php b/app/Http/Requests/StoreImageAnnotationLabel.php index 0667624ba..321024a95 100644 --- a/app/Http/Requests/StoreImageAnnotationLabel.php +++ b/app/Http/Requests/StoreImageAnnotationLabel.php @@ -43,8 +43,7 @@ public function authorize() public function rules() { return [ - 'label_id' => 'required_without:feature_vector|integer|exists:labels,id', - 'feature_vector' => 'required_without:label_id|array|size:384', + 'label_id' => 'required|integer|exists:labels,id', 'confidence' => 'required|numeric|between:0,1', ]; }