• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "title": "JSON schema for pages.json",
3  "$schema": "http://json-schema.org/draft-07/schema#",
4  "type": "object",
5  "additionalProperties": true,
6  "oneOf": [
7    {
8      "required": [
9        "distroFilter"
10      ]
11    },
12    {
13      "required": [
14        "distributionFilter"
15      ]
16    }
17  ],
18  "propertyNames": {
19    "enum": [
20      "distroFilter",
21      "distributionFilter"
22    ]
23  },
24  "properties": {
25    "distroFilter": {
26      "description": "Indicates the global configuration of an distroFilter.Make precise matching and use in the cloud distribution of th application market.",
27      "type": "object",
28      "deprecationMessage": "Deprecated since api 9, use distributionFilter instead.",
29      "propertyNames": {
30        "enum": [
31          "apiVersion",
32          "screenShape",
33          "screenWindow",
34          "screenDensity",
35          "countryCode"
36        ]
37      },
38      "properties": {
39        "apiVersion": {
40          "description": "Indicates the supported apiVersion range.",
41          "type": "object",
42          "deprecationMessage": "Deprecated since api 9",
43          "required": [
44            "policy",
45            "value"
46          ],
47          "propertyNames": {
48            "enum": [
49              "policy",
50              "value"
51            ]
52          },
53          "properties": {
54            "policy": {
55              "description": "Indicates the rule of black and white list for the subtag.",
56              "type": "string",
57              "enum": [
58                "include",
59                "exclude"
60              ]
61            },
62            "value": {
63              "description": "Indicates the value range of the subtag.",
64              "type": "array",
65              "items": {
66                "type": "integer",
67                "minimum": 3
68              },
69              "uniqueItems": true
70            }
71          }
72        },
73        "screenShape": {
74          "description": "Indicates the shape of the screen, only supports for lightWearable devices, other devices are not recommended.",
75          "type": "object",
76          "required": [
77            "policy",
78            "value"
79          ],
80          "propertyNames": {
81            "enum": [
82              "policy",
83              "value"
84            ]
85          },
86          "properties": {
87            "policy": {
88              "description": "Indicates the rule of black and white list for the subtag.",
89              "type": "string",
90              "enum": [
91                "include",
92                "exclude"
93              ]
94            },
95            "value": {
96              "description": "Indicates the value range of the subtag.",
97              "type": "array",
98              "items": {
99                "type": "string",
100                "enum": [
101                  "circle",
102                  "rect"
103                ]
104              },
105              "uniqueItems": true
106            }
107          }
108        },
109        "screenWindow": {
110          "description": "Indicates the windows's resolution in runtime",
111          "type": "object",
112          "required": [
113            "policy",
114            "value"
115          ],
116          "propertyNames": {
117            "enum": [
118              "policy",
119              "value"
120            ]
121          },
122          "properties": {
123            "policy": {
124              "description": "Indicates the rule of black and white list for the subtag",
125              "type": "string",
126              "enum": [
127                "include"
128              ]
129            },
130            "value": {
131              "description": "Indicates the value range of the subtag",
132              "type": "array",
133              "items": {
134                "type": "string",
135                "pattern": "^([1-9][0-9]*)\\*([1-9][0-9]*)$"
136              },
137              "uniqueItems": true
138            }
139          }
140        },
141        "screenDensity": {
142          "description": "This label indicates the pixel density of the screen (dpi: Dots Per Inch). This field is optional. If this field is configured, the value must be valid. The tag value is a string array.",
143          "type": "object",
144          "required": [
145            "policy",
146            "value"
147          ],
148          "propertyNames": {
149            "enum": [
150              "policy",
151              "value"
152            ]
153          },
154          "properties": {
155            "policy": {
156              "description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
157              "type": "string",
158              "enum": [
159                "include",
160                "exclude"
161              ]
162            },
163            "value": {
164              "description": "Indicates the value range of the sublabel.",
165              "type": "array",
166              "items": {
167                "type": "string",
168                "enum": [
169                  "sdpi",
170                  "mdpi",
171                  "ldpi",
172                  "xldpi",
173                  "xxldpi",
174                  "xxxldpi"
175                ]
176              },
177              "uniqueItems": true
178            }
179          }
180        },
181        "countryCode": {
182          "description": "This label indicates the country code to be distributed to the application. The specific value is subject to the ISO-3166 -1 standard. Multiple country and region enumeration definitions are supported. This field is optional. If this field is configured, the value must be valid. The tag value is a string array. The substring indicates the supported country or region and consists of two uppercase letters.",
183          "type": "object",
184          "required": [
185            "policy",
186            "value"
187          ],
188          "propertyNames": {
189            "enum": [
190              "policy",
191              "value"
192            ]
193          },
194          "properties": {
195            "policy": {
196              "description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
197              "type": "string",
198              "enum": [
199                "include",
200                "exclude"
201              ]
202            },
203            "value": {
204              "description": "Indicates the value range of the sublabel.",
205              "type": "array",
206              "items": {
207                "type": "string"
208              },
209              "uniqueItems": true
210            }
211          }
212        }
213      }
214    },
215    "distributionFilter": {
216      "description": "Indicates the global configuration of an distribution filter.Make precise matching and use in the cloud distribution of th application market.",
217      "type": "object",
218      "propertyNames": {
219        "enum": [
220          "screenShape",
221          "screenWindow",
222          "screenDensity",
223          "countryCode"
224        ]
225      },
226      "properties": {
227        "screenShape": {
228          "description": "Indicates the shape of the screen, only supports for lightWearable devices, other devices are not recommended.",
229          "type": "object",
230          "required": [
231            "policy",
232            "value"
233          ],
234          "propertyNames": {
235            "enum": [
236              "policy",
237              "value"
238            ]
239          },
240          "properties": {
241            "policy": {
242              "description": "Indicates the rule of black and white list for the subtag.",
243              "type": "string",
244              "enum": [
245                "include",
246                "exclude"
247              ]
248            },
249            "value": {
250              "description": "Indicates the value range of the subtag.",
251              "type": "array",
252              "items": {
253                "type": "string",
254                "enum": [
255                  "circle",
256                  "rect"
257                ]
258              },
259              "uniqueItems": true
260            }
261          }
262        },
263        "screenWindow": {
264          "description": "Indicates the windows's resolution in runtime",
265          "type": "object",
266          "required": [
267            "policy",
268            "value"
269          ],
270          "propertyNames": {
271            "enum": [
272              "policy",
273              "value"
274            ]
275          },
276          "properties": {
277            "policy": {
278              "description": "Indicates the rule of black and white list for the subtag",
279              "type": "string",
280              "enum": [
281                "include"
282              ]
283            },
284            "value": {
285              "description": "Indicates the value range of the subtag",
286              "type": "array",
287              "items": {
288                "type": "string",
289                "pattern": "^([1-9][0-9]*)\\*([1-9][0-9]*)$"
290              },
291              "uniqueItems": true
292            }
293          }
294        },
295        "screenDensity": {
296          "description": "This label indicates the pixel density of the screen (dpi: Dots Per Inch). This field is optional. If this field is configured, the value must be valid. The tag value is a string array.",
297          "type": "object",
298          "required": [
299            "policy",
300            "value"
301          ],
302          "propertyNames": {
303            "enum": [
304              "policy",
305              "value"
306            ]
307          },
308          "properties": {
309            "policy": {
310              "description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
311              "type": "string",
312              "enum": [
313                "include",
314                "exclude"
315              ]
316            },
317            "value": {
318              "description": "Indicates the value range of the sublabel.",
319              "type": "array",
320              "items": {
321                "type": "string",
322                "enum": [
323                  "sdpi",
324                  "mdpi",
325                  "ldpi",
326                  "xldpi",
327                  "xxldpi",
328                  "xxxldpi"
329                ]
330              },
331              "uniqueItems": true
332            }
333          }
334        },
335        "countryCode": {
336          "description": "This label indicates the country code to be distributed to the application. The specific value is subject to the ISO-3166 -1 standard. Multiple country and region enumeration definitions are supported. This field is optional. If this field is configured, the value must be valid. The tag value is a string array. The substring indicates the supported country or region and consists of two uppercase letters.",
337          "type": "object",
338          "required": [
339            "policy",
340            "value"
341          ],
342          "propertyNames": {
343            "enum": [
344              "policy",
345              "value"
346            ]
347          },
348          "properties": {
349            "policy": {
350              "description": "The policy tag indicates the list rule of the value of the sublabel. Either exclude or include can be used.",
351              "type": "string",
352              "enum": [
353                "include",
354                "exclude"
355              ]
356            },
357            "value": {
358              "description": "Indicates the value range of the sublabel.",
359              "type": "array",
360              "items": {
361                "type": "string"
362              },
363              "uniqueItems": true
364            }
365          }
366        }
367      }
368    }
369  }
370}