-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
spec.json
47 lines (47 loc) · 1.24 KB
/
spec.json
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
[
{
// first operation is shift
"operation": "shift",
"spec": {
"rating": {
"primary": {
"value": "Rating",
"max": "RatingRange"
},
"*": {
"value": "SecondaryRatings.&1.Value",
"max": "SecondaryRatings.&1.Range",
"$": "SecondaryRatings.&.Id"
}
}
}
},
{
// second operation is to default some values
"operation": "default",
"spec": {
"~z": "zz",
"~a": "aa",
"~id": "id",
"zz": "zz",
"~deleteme": "deleteme"
}
},
{
// third operation is to remove something
"operation": "remove",
"spec": {
"~deleteme": ""
}
},
{
"operation": "modify-overwrite-beta",
"spec": {
"b": "^contextB"
}
},
{
// last operation is to sort the JSON
"operation": "sort"
}
]