From abe9843824b29b7faf1ed7ee62934a225592e760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Emre=20Delig=C3=B6z?= Date: Thu, 12 Dec 2024 23:02:56 +0300 Subject: [PATCH] WB-784: feat(validator): add 'id' and 'result' to allowed state keys Expand the set of allowed state keys in `StateConfigValidator` to include 'id' and 'result', enabling additional configuration flexibility. --- src/StateConfigValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StateConfigValidator.php b/src/StateConfigValidator.php index 91fdb3f..ccedbe9 100644 --- a/src/StateConfigValidator.php +++ b/src/StateConfigValidator.php @@ -16,7 +16,7 @@ class StateConfigValidator ]; private const ALLOWED_STATE_KEYS = [ - 'on', 'states', 'initial', 'type', 'meta', 'entry', 'exit', 'description', + 'id', 'on', 'states', 'initial', 'type', 'meta', 'entry', 'exit', 'description', 'result', ]; private const ALLOWED_TRANSITION_KEYS = [