From 98ec9e45c4e004ce5896e92003fd008a9fa8caf8 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 16 Apr 2026 13:16:13 +0530 Subject: [PATCH] fix(specs): narrow Detection type enum to each subclass's own value Each Detection subclass now declares only its own type value in the enum rather than sharing the full ['runtime', 'framework'] list. This prevents SDK validators from accepting invalid values on concrete models. --- src/Appwrite/Utopia/Response/Model/Detection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Utopia/Response/Model/Detection.php b/src/Appwrite/Utopia/Response/Model/Detection.php index d57e4a27c0..9dfcc795d6 100644 --- a/src/Appwrite/Utopia/Response/Model/Detection.php +++ b/src/Appwrite/Utopia/Response/Model/Detection.php @@ -15,7 +15,7 @@ abstract class Detection extends Model 'description' => 'Repository detection type.', 'default' => $type, 'example' => $type, - 'enum' => ['runtime', 'framework'], + 'enum' => [$type], ]) ->addRule('variables', [ 'type' => Response::MODEL_DETECTION_VARIABLE,