Commit 9a6061a
committed
fix wildcard handling
JList is initialized with 0 or 1 arguments. The original is this:
if (arguments.length === 1) {
sequence.push(arguments[0]);
}
If an argument is passed, it is added. The new code mimics this.
The second issue is in the wildard handling. In the list case, arrays
need to be flattended. The issue comes from the unnecessary handling of
maps. Like scalar types, those simply need to be added to the result1 parent 8b2e385 commit 9a6061a
File tree
3 files changed
+1
-10
lines changed- src
- main/java/com/dashjoin/jsonata
- test/java/com/dashjoin/jsonata
3 files changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | 726 | | |
730 | 727 | | |
731 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 82 | + | |
87 | 83 | | |
88 | 84 | | |
89 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
0 commit comments