Skip to content

Commit 62b3d54

Browse files
authored
Fix index increment in Signature validation
Due to the fixed index (index = 0), always the first capturing group is selected. This was creating a problem when the signature had different types parameters.
1 parent cf79ce4 commit 62b3d54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/dashjoin/jsonata/utils/Signature.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ public Object validate(Object _args, Object context) {
391391
}
392392
}
393393
}
394+
index++;
394395
}
395396
return validatedArgs;
396397
}

0 commit comments

Comments
 (0)