UNPKG

3.92 kBJSONView Raw
1{
2 "definitions": {},
3 "$schema": "https://json-schema.org/draft-07/schema#",
4 "$id": "https://lineup.js.org/develop/schema.4.0.0.json",
5 "type": "object",
6 "title": "LineUp Dump Schema",
7 "properties": {
8 "uid": {
9 "type": "integer",
10 "title": "base for genrating new uids"
11 },
12 "selection": {
13 "type": "array",
14 "title": "list of selected data indices",
15 "items": {
16 "type": "number"
17 }
18 },
19 "aggregations": {
20 "type": "object",
21 "title": "key value of aggregation states",
22 "additionalProperties": true
23 },
24 "showTopN": {
25 "type": "integer",
26 "title": "set show top N value"
27 },
28 "rankings": {
29 "type": "array",
30 "title": "list of rankings",
31 "items": {
32 "type": "object",
33 "title": "one ranking",
34 "properties": {
35 "columns": {
36 "type": "array",
37 "title": "column dumps",
38 "items": {
39 "type": "object",
40 "title": "a column dump",
41 "required": [
42 "id",
43 "desc"
44 ],
45 "additionalProperties": true,
46 "properties": {
47 "id": {
48 "type": "string",
49 "title": "column id"
50 },
51 "desc": {
52 "title": "column desc",
53 "examples": [
54 "rank",
55 "string",
56 "number"
57 ]
58 },
59 "width": {
60 "type": "integer",
61 "title": "column width",
62 "examples": [
63 100
64 ]
65 },
66 "label": {
67 "type": "string",
68 "title": "column label"
69 },
70 "renderer": {
71 "type": "string",
72 "title": "column item renderer"
73 },
74 "groupRenderer": {
75 "type": "string",
76 "title": "column group renderer"
77 },
78 "summaryRenderer": {
79 "type": "string",
80 "title": "column summary renderer"
81 }
82 }
83 }
84 },
85 "sortCriteria": {
86 "type": "array",
87 "title": "list of columns the ranking is sorted by",
88 "items": {
89 "type": "object",
90 "title": "sort criteria",
91 "required": [
92 "sortBy",
93 "asc"
94 ],
95 "properties": {
96 "sortBy": {
97 "type": "string",
98 "title": "column id"
99 },
100 "asc": {
101 "type": "boolean"
102 }
103 }
104 }
105 },
106 "groupSortCriteria": {
107 "type": "array",
108 "title": "list of columns the ranking is group sorted by",
109 "items": {
110 "type": "object",
111 "title": "sort criteria",
112 "required": [
113 "sortBy",
114 "asc"
115 ],
116 "properties": {
117 "sortBy": {
118 "type": "string",
119 "title": "column id"
120 },
121 "asc": {
122 "type": "boolean"
123 }
124 }
125 }
126 },
127 "groupColumns": {
128 "type": "array",
129 "title": "list of columns the ranking is grouped by",
130 "items": {
131 "type": "string",
132 "title": "column id"
133 }
134 }
135 }
136 }
137 }
138 }
139}