Skip to content

Commit

Permalink
Fix varargs (i.e. <n+>) signature validation. #48
Browse files Browse the repository at this point in the history
Was only working correct for arrays <a+> signatures
  • Loading branch information
uw4 committed Sep 18, 2024
1 parent 84aeff0 commit 3849b71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/dashjoin/jsonata/utils/Signature.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ public Object validate(Object _args, Object context) {
validatedArgs.add(arg);
argIndex++;
} else {
arg = argIndex<args.size() ? args.get(argIndex) : null;
validatedArgs.add(arg);
argIndex++;
}
Expand Down

0 comments on commit 3849b71

Please sign in to comment.