ChristopheBougere / asl-validator

A simple Amazon States Language validator based on JSON schemas.
Apache License 2.0
106 stars 28 forks source link

Support the new JSONata expressions #161

Open massfords opened 2 hours ago

massfords commented 2 hours ago

Describe the bug There are new fields introduced to support JSONata data transformations. See this blog post: https://docs.aws.amazon.com/step-functions/latest/dg/transforming-data.html

To Reproduce

Use the state machine referenced from the blog post here: https://github.com/aws-samples/serverless-account-signup-service/blob/jsonata-variables/statemachine/application_service.asl.json

Expected behavior

We should accept this definition instead of reporting errors

Version: 3.9.0

Additional context This was announced as a new feature Nov 22, 2024. The initial fix is likely small changes in the schema files and some validators:

Additional work that could follow in separate issues:

massfords commented 2 hours ago

I'll have some time later this week to update the schemas. I'll update this issue with details/corrections after I read the spec more closely to understand the impact. I just saw this today and wanted to make some notes on it.