Skip to content

Commit

Permalink
Merge pull request #63 from Fernly-Park/master
Browse files Browse the repository at this point in the history
Add ResultSelector in map and parallel state
  • Loading branch information
ChristopheBougere authored Dec 10, 2020
2 parents a9587f3 + 29f2278 commit cf47986
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/__tests__/definitions/valid-map-resultSelector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"StartAt": "Map State",
"States": {
"Map State": {
"Type": "Map",
"MaxConcurrency": 0,
"ResultSelector": {
"output.$": "$"
},
"Iterator": {
"StartAt": "Pass State",
"States": {
"Pass State": {
"Type": "Pass",
"End": true
}
}
},
"End": true
}
}
}
23 changes: 23 additions & 0 deletions src/__tests__/definitions/valid-parameters-resultSelector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"StartAt": "Parallel State",
"States": {
"Parallel State": {
"Type": "Parallel",
"ResultSelector": {
"output.$": "$"
},
"Branches": [
{
"StartAt": "State",
"States": {
"State": {
"Type": "Pass",
"End": true
}
}
}
],
"End": true
}
}
}
3 changes: 3 additions & 0 deletions src/schemas/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"Parameters": {
"type": "object"
},
"ResultSelector": {
"type": "object"
},
"Retry": {
"type": "array",
"items": {
Expand Down
3 changes: 3 additions & 0 deletions src/schemas/parallel.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"Parameters": {
"type": "object"
},
"ResultSelector": {
"type": "object"
},
"Next": {
"type": "string"
},
Expand Down

0 comments on commit cf47986

Please sign in to comment.