lalcebo / json-schema

JSON Schema Collections
MIT License
16 stars 28 forks source link

Declare Map.ItemProcessor.ProcessorConfig's Mode and Execution as non-required #156

Closed marceliwac closed 1 year ago

marceliwac commented 1 year ago

Overview

References

How was this tested?

To reproduce, add the following state to a state machine:

Validate All:
  Type: Map
  InputPath: "$.detail"
  ItemProcessor:
    ProcessorConfig:
      Mode: INLINE
    StartAt: Validate
    States:
      Validate:
        Type: Task
        Resource: arn:aws:states:::lambda:invoke
        OutputPath: "$.Payload"
        Parameters:
          FunctionName: arn:aws:lambda:us-east-2:123456789012:function:ship-val:$LATEST
        End: true
  End: true
  ResultPath: "$.detail.shipped"
  ItemsPath: "$.shipped"

Removing ProcessorConfig, or adding ExecutionType within it fixes validation, but throws an error during stack deployment. Having just the ExecutionType results in an identical validation error.