-
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: Nested arrays are not serialized correctly #26045
Labels
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
Comments
markmansur
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Jun 19, 2023
github-actions
bot
added
the
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
label
Jun 19, 2023
Thanks for creating another report for this - we don't have issues configured to close automatically anymore after just inactivity |
peterwoodworth
added
p1
effort/small
Small work item – less than a day of effort
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Jun 19, 2023
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Jun 20, 2023
mergify bot
pushed a commit
that referenced
this issue
Jun 27, 2023
`FieldUtils.renderObject` was not serializing nested arrays correctly. For example: ``` {"myNestedArray":[[[123,123],[456,456]]]} ``` Was serialized to: ``` {"myNestedArray":[{"0":[123,123],"1":[456,456]}]} ``` This fix should solve the problem. Closes #26045. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
lukey-aleios
pushed a commit
to lukey-aleios/aws-cdk
that referenced
this issue
Jun 30, 2023
…6055) `FieldUtils.renderObject` was not serializing nested arrays correctly. For example: ``` {"myNestedArray":[[[123,123],[456,456]]]} ``` Was serialized to: ``` {"myNestedArray":[{"0":[123,123],"1":[456,456]}]} ``` This fix should solve the problem. Closes aws#26045. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
lukey-aleios
pushed a commit
to lukey-aleios/aws-cdk
that referenced
this issue
Jun 30, 2023
…6055) `FieldUtils.renderObject` was not serializing nested arrays correctly. For example: ``` {"myNestedArray":[[[123,123],[456,456]]]} ``` Was serialized to: ``` {"myNestedArray":[{"0":[123,123],"1":[456,456]}]} ``` This fix should solve the problem. Closes aws#26045. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This was referenced Jul 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
Describe the bug
If a StepFunction definition contains a nested array, the nested array is serialized as an object where the keys are the array indices.
This looks like an issue with the
FieldUtils.renderObject
method.Duplicate of #14599
Expected Behavior
I would expect the following to be logged to the console
Current Behavior
Current behavior treats the nested array as an object and adds indices
{"myNestedArray":[{"0":[123,123],"1":[456,456]}]}
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.84.0
Framework Version
No response
Node.js Version
18
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: