You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I perform a fairly trivial transformation that contains a loop operation over a previous transformed result then it always results in a null evaluation.
As you can see from the actual output, aliasedItems correctly references the value from a previous transformation by looking in the transformed, however when I use the same selector for the loop enumeration summary then it always looks inside of the root (input) object, which of course does not contain the transformed property and never inside the previous transformation, hence the result is always null.
The text was updated successfully, but these errors were encountered:
Indeed it's a bug, but I've found one more problem.
The filteredItems in transformer returns an object, not an array, so even if LookInTransformed evaluation mode was working inside loops, it would try to loop over object properties, thus trying to add name property more than once, which would result in an error.
I've managed to correct this, but the transformer would have to be like this:
{
"filteredItems": [ "#valueof($.topLevelItems[?(@.selectable == true)])" ],
"summary": {
"#loop($.filteredItems)": {
"name": "#currentvalueatpath($.name)"
}
},
"aliasedItems": "#valueof($..filteredItems)"//only one dot here would work as well
}
Whenever I perform a fairly trivial transformation that contains a loop operation over a previous transformed result then it always results in a null evaluation.
Input
Transformer
Actual Output
Expected Output
As you can see from the actual output,
aliasedItems
correctly references the value from a previous transformation by looking in the transformed, however when I use the same selector for the loop enumerationsummary
then it always looks inside of the root (input) object, which of course does not contain the transformed property and never inside the previous transformation, hence the result is always null.The text was updated successfully, but these errors were encountered: