-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set choice state variable and path fields set to reference paths
- Loading branch information
1 parent
4efbaaf
commit c33ac55
Showing
2 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/__tests__/definitions/invalid-choice-state-variable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"Comment": "Violates the rule: The values of Variable and Path fields in a comparison must be valid Reference Paths.", | ||
"StartAt": "ChoiceState", | ||
"States": { | ||
"ChoiceState": { | ||
"Type": "Choice", | ||
"Choices": [ | ||
{ | ||
"Variable": "States.ArrayContains($.clients.unique, 'null')", | ||
"NumericEquals": 1, | ||
"Next": "FirstMatchState" | ||
} | ||
], | ||
"Default": "DefaultState" | ||
}, | ||
|
||
"FirstMatchState": { | ||
"Type": "Pass", | ||
"End": true | ||
}, | ||
|
||
"DefaultState": { | ||
"Type": "Pass", | ||
"End": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters