Skip to content

Commit

Permalink
Backport: fix varargs (i.e. <n+:n>) signature validation (#319)
Browse files Browse the repository at this point in the history
Using <n+:n> signature, validate will return the first arg n times.
As we're based on this impl the fix should be backported

Original fix here:
dashjoin/jsonata-java@3849b71

Test case:
dashjoin/jsonata-java@abf12e9
  • Loading branch information
uw4 authored Sep 19, 2024
1 parent fa18172 commit be1e36b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/api/jsonata4java/Signature.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ ArrayNode validate(String functionName, ExprListContext args, ExpressionsVisitor
validatedArgs.add(arg);
argIndex++;
} else {
arg = expressionVisitor.visit(args.expr(argIndex));
validatedArgs.add(arg);
argIndex++;
}
Expand Down

0 comments on commit be1e36b

Please sign in to comment.