Skip to content

Commit

Permalink
WB-784: feat(validator): add 'id' and 'result' to allowed state keys
Browse files Browse the repository at this point in the history
Expand the set of allowed state keys in `StateConfigValidator` to include 'id' and 'result', enabling additional configuration flexibility.
  • Loading branch information
deligoez committed Dec 12, 2024
1 parent 7e560c7 commit abe9843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StateConfigValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit abe9843

Please sign in to comment.