aws_stepfunctions: JsonPath.arrayContains errors when checking for booleans #27722
Labels
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Using
JsonPath.arrayConains
throws an error when trying to check if an array contains a boolean value because the inner function for rendering expressions doesn't account for boolean values:Expected Behavior
Renders the intrinsic function as;
Current Behavior
Throws the error:
Reproduction Steps
Run anywhere in a Typescript CDK app:
Possible Solution
Update
renderInExpression
to be able to identify and output boolean values.Probably along the lines of adding:
Additional Information/Context
Could probably occur in other intrinsic functions. Any intrinsics that uses
renderInExpression
seems like it would suffer from this problem.CDK CLI Version
2.102.1 (build 8e4485b)
Framework Version
2.102.1
Node.js Version
v18.16.0
OS
Fedora 34 (Workstation Edition)
Language
TypeScript
Language Version
4.9.5
Other information
No response
The text was updated successfully, but these errors were encountered: