-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpseudo_root_identifier.json
More file actions
28 lines (28 loc) · 829 Bytes
/
pseudo_root_identifier.json
File metadata and controls
28 lines (28 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"tests": [
{
"name": "conditionally select root value",
"selector": "^[?@.some.thing > 7]",
"document": { "some": { "thing": 42 } },
"result": [{ "some": { "thing": 42 } }],
"result_paths": ["^[0]"],
"tags": ["extra"]
},
{
"name": "embedded pseudo root query",
"selector": "^[?@.some.thing > value(^.*.num)]",
"document": { "some": { "thing": 42 }, "num": 7 },
"result": [{ "some": { "thing": 42 }, "num": 7 }],
"result_paths": ["^[0]"],
"tags": ["extra"]
},
{
"name": "embedded root query",
"selector": "^[?@.some.thing > value($.num)]",
"document": { "some": { "thing": 42 }, "num": 7 },
"result": [{ "some": { "thing": 42 }, "num": 7 }],
"result_paths": ["^[0]"],
"tags": ["extra"]
}
]
}