Skip to content

Commit

Permalink
address PR comments: better comment in asl source and error formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
massfords committed Jun 24, 2022
1 parent 00e6048 commit 9939422
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/definitions/invalid-map-ob-link.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Comment": "An example of the Amazon States Language using a map state to map over items in parallel.",
"Comment": "The link to \"Final State\" from within the Iterator is invalid since the target state is defined outside of the Iterator",
"StartAt": "Map",
"States": {
"Map": {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/definitions/invalid-parallel-ob-link.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Comment": "An example of the Amazon States Language using a parallel state to execute two branches at the same time.",
"Comment": "The link to the \"Final State\" within the Choice is invalid because it targets a state outside of its parent branch",
"StartAt": "Parallel",
"States": {
"Parallel": {
Expand Down
2 changes: 1 addition & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function validator(definition) {
errorList.push(ajv.errorsText(ajv.errors, { separator }));
}
errorList.push(missingTransitionTargetErrors.map(formatError).join(separator));
errorList.push(transitionErrors.join(separator));
errorList.push(transitionErrors.map(formatError).join(separator));
return errorList.join(separator);
},
};
Expand Down

0 comments on commit 9939422

Please sign in to comment.