-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(aws-stepfunctions): JsonPath doest not accept strings starting with $[ #22471
Labels
Comments
marciocadev
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 12, 2022
github-actions
bot
added
the
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
label
Oct 12, 2022
4 tasks
TheRealAmazonKendra
added
p1
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 13, 2022
mergify bot
pushed a commit
that referenced
this issue
Oct 18, 2022
…with `$[` (#22472) `JsonPath.listAt` doest not accept strings starting with `$[`. When going through a parallel task, the result is an array and to work with it, it needs to be referenced through strings starting with `$[` This problem particularly affects cases where we want to work with String Sets in DynamoDB where the `DynamoAttributeValue.fromStringSet` function expects an array via the `JsonPath.listAt` function Closes #22471 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
mrgrain
pushed a commit
to mrgrain/aws-cdk
that referenced
this issue
Oct 24, 2022
…with `$[` (aws#22472) `JsonPath.listAt` doest not accept strings starting with `$[`. When going through a parallel task, the result is an array and to work with it, it needs to be referenced through strings starting with `$[` This problem particularly affects cases where we want to work with String Sets in DynamoDB where the `DynamoAttributeValue.fromStringSet` function expects an array via the `JsonPath.listAt` function Closes aws#22471 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
When going through a parallel task, the result is an array and to work with it, it needs to be referenced through strings starting with
$[
Expected Behavior
Make the JsonPath.listAt function able to process strings starting with
$[
Current Behavior
When trying to process a task with the
JsonPath.listAt
function after a parallel task we get the following errorReproduction Steps
This error can be seen when trying to insert a string set into DynamoDB where the initial input went through a parallel task
Possible Solution
add the possibility for the
JsonPath.listAt
function to process strings starting with$[
Additional Information/Context
No response
CDK CLI Version
2.45.0
Framework Version
No response
Node.js Version
v18.10.0
OS
Linux
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: