You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the second one fails statelint validation with this error:
One error:
State Machine.States.start.ResultPath is "$.foo-result" but should be a Reference Path
I'm not familiar with Reference Paths, so I'm not sure if this is the AWS console accepting something it shouldn't or statelint improperly rejecting something.
The text was updated successfully, but these errors were encountered:
This one is complicated. Part of the problem is that there's no actual official specification for JSONPath. Statelint takes the approach that you can say $.X.Y if X and Y meet the ECMAScript grammar for "name", which "foo-result" doesn't, so statelint wants you to say $["foo-result"]. The AWS Service uses the Jayway JSONPath library, which is OK with foo-result.
I find the Jayway behavior irritating because it means that $.foo-bar is a synonym of $.["foo-bar"] but $.foo.bar isn't a synonym of $.["foo.bar"], so I like ruling out $.foo-bar.
But maybe we should make statelint act like Jayway.
Both of these state machines I can create and run in the AWS console w/o error:
However, the second one fails
statelint
validation with this error:I'm not familiar with Reference Paths, so I'm not sure if this is the AWS console accepting something it shouldn't or statelint improperly rejecting something.
The text was updated successfully, but these errors were encountered: