Repository navigation
Conversation
In js array may be object with key as index some another fix: - remove generic in string method. replace with toString - applyInner check not null before use in matcher - check ? when arg type is operator by toString.equals (? is char in value) - 2 test for each partial expression
| lhs = new HashMap(); | ||
| for (int i = 0; i < tempLhs.size(); i++) { | ||
| ((HashMap) lhs).put(i, tempLhs.get(i)); | ||
| } |
There was a problem hiding this comment.
maybe better:
var lhsNewMap = new HashMap();
var lhsOldList = (List)lhs;
for (int i = 0; i < lhsOldList.size(); i++) {
lhsNewMap.put(i, tempLhs.get(i));
}
lhs = lhsNewMap;
uw4
left a comment
There was a problem hiding this comment.
Thanks + good catch!
We're reviewing this behavior of $each with list as input -
we want to clarify this with the original Jsonata maintainers, might be as well be a glitch in the original impl
|
find some another bug caused by this fix. @uw4 @aeberhart any updates about for this bug? memory pill for me: json: and expression not fork after this fix and not coverage by tests |
|
I've fix the example-bug above. It's not the best solution, but I haven't come up with anything else yet. I've also added a test from my post with verification. |
Tests contributed by @sergeevik in the earlier PRs, adapted to the existing API. All pass with the partial application changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks a lot @sergeevik for reporting #79 and for this PR! The issue is now fixed on main, following the jsonata-js approach discussed in #79: partially applied native functions no longer re-validate their signature (#132), and |
In js array may be object with key as index
some another fix: