-
Component Upgrade
-
Resolution: Done
-
Major
-
1.17.0.Final
-
None
-
False
-
False
-
-
2022 Week 08-10 (from Feb 21)
As part of the implementation process of SWF we have accumulated several ways of evaluating expressions that are not 100% aligned with the spec.
We are supporting this
"subtractionOperation": { "leftElement": "$.fahrenheit", "rightElement": "$.subtractValue"}
Which should be
"subtractionOperation": { "leftElement": "${$.fahrenheit}", "rightElement": "${$.subtractValue}"}
If using jq, it would be
"subtractionOperation": { "leftElement": "${.fahrenheit}", "rightElement": "${.subtractValue}"}
or, since JQ support expressions containing json object (JSONPath does not support it) , it can be also expressed this way
"subtractionOperation": "${{ leftElement: .fahrenheit, rightElement: .subtractValue}}"
In other words, we should not assume that argument of open api parameter (or any action call) is an expression, unless properly indicated
Also, we are going to remove support for this
"multiplicationOperation": "{ \\\"leftElement\\\": \\\"$.subtraction.difference\\\", \\\"rightElement\\\": \\\"$.multiplyValue\\\" }"