@@ -16,7 +16,8 @@ queries:
16
16
- id : array_index_last
17
17
selector : $[-1]
18
18
document : ["first", "second", "third"]
19
- status : error
19
+ result : " third"
20
+ status : pass
20
21
- id : array_index_out_of_bounds
21
22
selector : $[1]
22
23
document : ["one element"]
@@ -30,7 +31,8 @@ queries:
30
31
- id : array_index_slice_last_no_end
31
32
selector : $[-1:]
32
33
document : ["first", "second", "third"]
33
- status : error
34
+ result : " third"
35
+ status : fail
34
36
consensus : ["third"]
35
37
- id : array_index_slice_no_start_no_end
36
38
selector : $[:]
@@ -183,16 +185,18 @@ queries:
183
185
- id : recursive_on_nested_object
184
186
selector : $.store..price
185
187
document : {"store": {"book": [{"category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95}, {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99}, {"category": "fiction", "author": "Herman Melville", "title": "Moby Dick", "isbn": "0-553-21311-3", "price": 8.99}, {"category": "fiction", "author": "J. R. R. Tolkien", "title": "The Lord of the Rings", "isbn": "0-395-19395-8", "price": 22.99}], "bicycle": {"color": "red", "price": 19.95}}}
186
- status : error
187
- consensus : [8.95, 12.99, 8.99, 22.99, 19.95]
188
+ result : [8.95, 12.99, 8.99, 22.99, 19.95]
189
+ status : pass
188
190
- id : recursive_wildcard
189
191
selector : $..*
190
192
document : {"key": "value", "another key": {"complex": "string", "primitives": [0, 1]}}
191
- status : error
193
+ result : ["value", {"complex": "string", "primitives": [0, 1]}, "string", [0, 1], 0, 1]
194
+ status : pass
192
195
- id : recursive_wildcard_on_null_value_array
193
196
selector : $..*
194
197
document : [40, null, 42]
195
- status : error
198
+ result : [40, 42]
199
+ status : fail
196
200
consensus : [40, null, 42]
197
201
- id : recursive_wildcard_on_scalar
198
202
selector : $..*
@@ -207,9 +211,8 @@ queries:
207
211
- id : wildcard_bracket_notation_on_array
208
212
selector : $[*]
209
213
document : ["string", 42, {"key": "value"}, [0, 1]]
210
- result : ["string", 42, {"key": "value"}, 0, 1]
211
- status : fail
212
- consensus : ["string", 42, {"key": "value"}, [0, 1]]
214
+ result : ["string", 42, {"key": "value"}, [0, 1]]
215
+ status : pass
213
216
- id : wildcard_bracket_notation_on_null_value_array
214
217
selector : $[*]
215
218
document : [40, null, 42]
@@ -218,18 +221,15 @@ queries:
218
221
- id : wildcard_bracket_notation_on_object
219
222
selector : $[*]
220
223
document : {"some": "string", "int": 42, "object": {"key": "value"}, "array": [0, 1]}
221
- result : ["string", 42, {"key": "value"}, 0, 1]
222
- status : fail
223
- consensus : ["string", 42, {"key": "value"}, [0, 1]]
224
+ result : ["string", 42, {"key": "value"}, [0, 1]]
225
+ status : pass
224
226
- id : wildcard_dot_notation_on_array
225
227
selector : $.*
226
228
document : ["string", 42, {"key": "value"}, [0, 1]]
227
- result : ["string", 42, {"key": "value"}, 0, 1]
228
- status : fail
229
- consensus : ["string", 42, {"key": "value"}, [0, 1]]
229
+ result : ["string", 42, {"key": "value"}, [0, 1]]
230
+ status : pass
230
231
- id : wildcard_dot_notation_on_object
231
232
selector : $.*
232
233
document : {"some": "string", "int": 42, "object": {"key": "value"}, "array": [0, 1]}
233
- result : ["string", 42, {"key": "value"}, 0, 1]
234
- status : fail
235
- consensus : ["string", 42, {"key": "value"}, [0, 1]]
234
+ result : ["string", 42, {"key": "value"}, [0, 1]]
235
+ status : pass
0 commit comments