• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "object",
3  "properties": {
4    "properties": {
5      "type": "array",
6      "items": {
7        "type": "object",
8        "properties": {
9          "name": {
10            "type": "string"
11          },
12          "supportedDevices": {
13            "type": "array",
14            "description": "本字段非必填,如果为空,表示该属性支持所有的设备类型",
15            "items": {
16              "type": "string",
17              "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
18            }
19          },
20          "syntax": {
21            "type": "array",
22            "description": "语法",
23            "items": {
24              "type": "object",
25              "properties": {
26                "name": {
27                  "type": "string",
28                  "description": "支持<length>、<color>、<percentage> 、<line-width>、<line-style>、<repeat-style>、<time>、<transform-list>等内置类型单个或多个(||分割)"
29                },
30                "supportedDevices": {
31                  "type": "array",
32                  "description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
33                  "items": {
34                    "type": "string",
35                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
36                  }
37                }
38              },
39              "required": ["name"]
40            }
41          },
42          "version": {
43            "type": "array",
44            "description": "该属性的当前的版本",
45            "items": {
46              "type": "object",
47              "properties": {
48                "name": {
49                  "type": "string",
50                  "description": "版本号例如:v3.0"
51                },
52                "supportedDevices": {
53                  "type": "array",
54                  "description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
55                  "items": {
56                    "type": "string",
57                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
58                  }
59                }
60              },
61              "required": ["name"]
62            }
63          },
64          "description": {
65            "type": "array",
66            "items": {
67              "type": "object",
68              "properties": {
69                "name": {
70                  "type": "string",
71                  "description": "属性的描述文档"
72                },
73                "supportedDevices": {
74                  "type": "array",
75                  "description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
76                  "items": {
77                    "type": "string",
78                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
79                  }
80                }
81              },
82              "required": ["name"]
83            }
84          },
85          "restrictions": {
86            "type": "array",
87            "description": "语法限制",
88            "items": {
89              "type": "object",
90              "properties": {
91                "name": {
92                  "type": "array",
93                  "description": "语法限制,单个或多个组合",
94                  "items": {
95                    "type": "string",
96                    "enum": [
97                      "enum",
98                      "length",
99                      "line-style",
100                      "color",
101                      "percentage",
102                      "image",
103                      "string",
104                      "repeat",
105                      "position",
106                      "identifier",
107                      "number",
108                      "time"
109                    ]
110                  }
111                },
112                "supportedDevices": {
113                  "type": "array",
114                  "description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
115                  "items": {
116                    "type": "string",
117                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
118                  }
119                }
120              },
121              "required": ["name"]
122            }
123          },
124          "values": {
125            "type": "array",
126            "description": "当restrictions字段存在enum时存在该字段,表示该属性对应的值的可选值",
127            "items": {
128              "type": "object",
129              "properties": {
130                "name": {
131                  "type": "string",
132                  "description": "可选值"
133                },
134                "supportedDevices": {
135                  "type": "array",
136                  "description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
137                  "items": {
138                    "type": "string",
139                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
140                  }
141                },
142                "description": {
143                  "type": "string"
144                }
145              },
146              "required": ["name"]
147            }
148          }
149        },
150        "required": ["name", "version", "description"]
151      }
152    },
153    "atDirectives": {
154      "type": "array",
155      "description": "指令列表",
156      "items": {
157        "type": "object",
158        "properties": {
159          "name": {
160            "type": "string",
161            "description": "指令名称"
162          },
163          "supportedDevices": {
164            "type": "array",
165            "description": "本字段非必填,如果为空,表示该属性支持所有的设备类型",
166            "items": {
167              "type": "string",
168              "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
169            }
170          },
171          "version": {
172            "type": "array",
173            "description": "版本",
174            "items": {
175              "type": "object",
176              "properties": {
177                "name": {
178                  "type": "string",
179                  "description": "版本号eg: v3.0"
180                },
181                "supportedDevices": {
182                  "type": "array",
183                  "description": "本字段非必填,如果为空,表示该属性继承指令支持的设备类型",
184                  "items": {
185                    "type": "string",
186                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
187                  }
188                }
189              },
190              "required": ["name"]
191            }
192          },
193          "description": {
194            "type": "array",
195            "description": "指令的描述",
196            "items": {
197              "type": "object",
198              "properties": {
199                "name": {
200                  "type": "string"
201                },
202                "supportedDevices": {
203                  "type": "array",
204                  "description": "本字段非必填,如果为空,表示该属性继承指令支持的设备类型",
205                  "items": {
206                    "type": "string",
207                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
208                  }
209                }
210              },
211              "required": ["name"]
212            }
213          }
214        }
215      }
216    },
217    "pseudoClasses": {
218      "type": "array",
219      "description": "伪类列表",
220      "items": {
221        "type": "object",
222        "properties": {
223          "name": {
224            "type": "string",
225            "description": "伪类名称"
226          },
227          "supportedDevices": {
228            "type": "array",
229            "description": "本字段非必填,如果为空,表示该伪类支持所有的设备类型",
230            "items": {
231              "type": "string",
232              "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
233            }
234          },
235          "version": {
236            "type": "array",
237            "description": "版本",
238            "items": {
239              "type": "object",
240              "properties": {
241                "name": {
242                  "type": "string",
243                  "description": "版本号eg: v3.0"
244                },
245                "supportedDevices": {
246                  "type": "array",
247                  "description": "本字段非必填,如果为空,表示该伪类继承指令支持的设备类型",
248                  "items": {
249                    "type": "string",
250                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
251                  }
252                }
253              },
254              "required": ["name"]
255            }
256          },
257          "description": {
258            "type": "array",
259            "description": "伪类的描述",
260            "items": {
261              "type": "object",
262              "properties": {
263                "name": {
264                  "type": "string"
265                },
266                "supportedDevices": {
267                  "type": "array",
268                  "description": "本字段非必填,如果为空,表示该伪类继承指令支持的设备类型",
269                  "items": {
270                    "type": "string",
271                    "enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
272                  }
273                }
274              },
275              "required": ["name"]
276            }
277          }
278        }
279      }
280    }
281  },
282  "required": ["properties", "atDirectives", "pseudoClasses"]
283}
284