Skip to content

Commit

Permalink
revert unnecessary transformer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yeze322 committed Feb 20, 2020
1 parent 6ea6b58 commit 988e3b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function transformForeach(
return {
foreachDetail: foreachDetailNode,
stepGroup: stepsNode,
loopBegin: new IndexedNode(`${jsonpath}.begin`, { $type: ObiTypes.LoopIndicator }),
loopEnd: new IndexedNode(`${jsonpath}.end`, { $type: ObiTypes.LoopIndicator }),
loopBegin: new IndexedNode(jsonpath, { $type: ObiTypes.LoopIndicator }),
loopEnd: new IndexedNode(jsonpath, { $type: ObiTypes.LoopIndicator }),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function transformIfCondtion(
...input,
$type: ObiTypes.ConditionNode,
}),
choice: new IndexedNode(`${jsonpath}.choice`, {
choice: new IndexedNode(`${jsonpath}`, {
$type: ObiTypes.ChoiceDiamond,
text: input.condition,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function transformSwitchCondition(
...input,
$type: ObiTypes.ConditionNode,
}),
choice: new IndexedNode(`${jsonpath}.choice`, {
choice: new IndexedNode(`${jsonpath}`, {
$type: ObiTypes.ChoiceDiamond,
text: condition,
}),
Expand Down

0 comments on commit 988e3b5

Please sign in to comment.