-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathbasic.json
More file actions
64 lines (64 loc) · 1.25 KB
/
basic.json
File metadata and controls
64 lines (64 loc) · 1.25 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"empty_expression": [{
"expr": "",
"result": {
"kind": "Null",
"value": null
}
}],
"equal_simple": [{
"expr": "1 == 2",
"result": {
"kind": "Boolean",
"value": false
}
}],
"context_simple_access": [{
"expr": "simple",
"result": {
"kind": "String",
"value": "foo"
},
"contexts": {
"simple": "foo"
}
}],
"context_case-insensitive": [{
"expr": "SIMple.TEst",
"result": {
"kind": "Number",
"value": 123.0
},
"contexts": {
"simPLE": {
"teST": 123
}
}
}],
"context access with wildcard": [{
"expr": "toJson(input.*.foo)",
"result": {
"kind": "String",
"value": "[\n 32,\n 42,\n -10,\n 0,\n 2,\n 17\n]"
},
"contexts": {
"input": {
"test": { "foo": 32 },
"test2": { "foo": 42 },
"test3": { "foo": -10 },
"test4": { "foo": 0 },
"test5": { "foo": 2 },
"test6": { "foo": 17 }
}
}
}],
"unknown context": [
{
"expr": "nosuchcontext.foo",
"err": {
"kind": "parsing",
"value": "Unrecognized named-value: 'nosuchcontext'. Located at position 1 within expression: nosuchcontext.foo"
}
}
]
}