diff --git a/src/__tests__/definitions/valid-parallel-parameters.json b/src/__tests__/definitions/valid-parallel-parameters.json new file mode 100644 index 0000000..ace90ff --- /dev/null +++ b/src/__tests__/definitions/valid-parallel-parameters.json @@ -0,0 +1,23 @@ +{ + "StartAt": "Parallel State", + "States": { + "Parallel State": { + "Type": "Parallel", + "Branches": [ + { + "StartAt": "Pass", + "States": { + "Pass": { + "Type": "Pass", + "End": true + } + } + } + ], + "Parameters": { + "stateName.$": "$$.State.Name" + }, + "End": true + } + } +} \ No newline at end of file diff --git a/src/schemas/parallel.json b/src/schemas/parallel.json index d772909..b0bfcca 100644 --- a/src/schemas/parallel.json +++ b/src/schemas/parallel.json @@ -7,6 +7,9 @@ "type": "string", "pattern": "^Parallel$" }, + "Parameters": { + "type": "object" + }, "Next": { "type": "string" },