Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statelint doesn't support all Map options #29

Closed
xentek opened this issue Oct 30, 2019 · 1 comment
Closed

statelint doesn't support all Map options #29

xentek opened this issue Oct 30, 2019 · 1 comment

Comments

@xentek
Copy link
Contributor

xentek commented Oct 30, 2019

For given input:

{
  "peas": ["a", "b", "c"],
  "queue": "example"
}

This state machine should be valid:

{
  "StartAt": "PeasAndQueues",
  "States": {
    "PeasAndQueues": {
      "Type": "Map",
      "End": true,
      "ItemsPath": "$.peas",
      "MaxConcurrency": 0,
      "Parameters": {
        "p.$": "$$.Map.Item.Value",
        "q.$": "$.queue"
      },
      "Iterator": {
        "StartAt": "DoWork",
        "States": {
          "DoWork": {
            "Type": "Task",
            "End": true,
            "Resource": "arn:aws:lambda:us-east-1:000000:function:do-work"
          }
        }
      }
    }
  }
}

Yet I get:

2 errors:
 Field "ItemsPath" not allowed in State Machine
 Field "MaxConcurrency" not allowed in State Machine

(error output shortened for clarity)

Happy to submit a patch, but wasn't sure if data/StateMachine.j2119 was generated or maintained by hand -- a cursory glance at the code seems to suggest this file is what needs to be changed to support ItemsPath and MaxConcurrency.

@zbintliff
Copy link

@melalawi can this be released please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants