sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

Validation missing out on refname in foreach>actions

Open brlala opened this issue 2 years ago • 0 comments

What happened: Validation passed What you expected to happen: Validation Fail How to reproduce it: use this yaml for validation

id: Test
version: "1.0"
specVersion: "0.8"
name: Test
description: Test
functions:
  - name: Test
states:
  - name: TestingForEach
    type: foreach
    inputCollection: "${ .archives }"
    iterationParam: archive
    outputCollection: "${ .output}"
    actions:
      - functionRef:
          refName: DoesNotExist
    end:
      terminate: true

Anything else we need to know?: for type operation, the functionRef will be checked against the list of functions provided at the top of the file however the validation is missing if the type is foreach

Environment:

  • Specification version used: v0.8

brlala avatar Sep 07 '22 09:09 brlala