• 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          "syntax": {
13            "type": "array",
14            "description": "语法",
15            "items": {
16              "type": "object",
17              "properties": {
18                "name": {
19                  "type": "string",
20                  "description": "支持<length>、<color>、<percentage> 、<line-width>、<line-style>、<repeat-style>、<time>、<transform-list>等内置类型单个或多个(||分割)"
21                }
22              },
23              "required": ["name"]
24            }
25          },
26          "version": {
27            "type": "array",
28            "description": "该属性的当前的版本",
29            "items": {
30              "type": "object",
31              "properties": {
32                "name": {
33                  "type": "string",
34                  "description": "版本号例如:v3.0"
35                }
36              },
37              "required": ["name"]
38            }
39          },
40          "description": {
41            "type": "array",
42            "items": {
43              "type": "object",
44              "properties": {
45                "name": {
46                  "type": "string",
47                  "description": "属性的描述文档"
48                }
49              },
50              "required": ["name"]
51            }
52          },
53          "restrictions": {
54            "type": "array",
55            "description": "语法限制",
56            "items": {
57              "type": "object",
58              "properties": {
59                "name": {
60                  "type": "array",
61                  "description": "语法限制,单个或多个组合",
62                  "items": {
63                    "type": "string",
64                    "enum": [
65                      "enum",
66                      "length",
67                      "line-style",
68                      "color",
69                      "percentage",
70                      "image",
71                      "string",
72                      "repeat",
73                      "position",
74                      "identifier",
75                      "number",
76                      "time"
77                    ]
78                  }
79                }
80              },
81              "required": ["name"]
82            }
83          },
84          "values": {
85            "type": "array",
86            "description": "当restrictions字段存在enum时存在该字段,表示该属性对应的值的可选值",
87            "items": {
88              "type": "object",
89              "properties": {
90                "name": {
91                  "type": "string",
92                  "description": "可选值"
93                },
94                "description": {
95                  "type": "string"
96                }
97              },
98              "required": ["name"]
99            }
100          }
101        },
102        "required": ["name", "version", "description"]
103      }
104    },
105    "atDirectives": {
106      "type": "array",
107      "description": "指令列表",
108      "items": {
109        "type": "object",
110        "properties": {
111          "name": {
112            "type": "string",
113            "description": "指令名称"
114          },
115          "version": {
116            "type": "array",
117            "description": "版本",
118            "items": {
119              "type": "object",
120              "properties": {
121                "name": {
122                  "type": "string",
123                  "description": "版本号eg: v3.0"
124                }
125              },
126              "required": ["name"]
127            }
128          },
129          "description": {
130            "type": "array",
131            "description": "指令的描述",
132            "items": {
133              "type": "object",
134              "properties": {
135                "name": {
136                  "type": "string"
137                }
138              },
139              "required": ["name"]
140            }
141          }
142        }
143      }
144    },
145    "pseudoClasses": {
146      "type": "array",
147      "description": "伪类列表",
148      "items": {
149        "type": "object",
150        "properties": {
151          "name": {
152            "type": "string",
153            "description": "伪类名称"
154          },
155          "version": {
156            "type": "array",
157            "description": "版本",
158            "items": {
159              "type": "object",
160              "properties": {
161                "name": {
162                  "type": "string",
163                  "description": "版本号eg: v3.0"
164                }
165              },
166              "required": ["name"]
167            }
168          },
169          "description": {
170            "type": "array",
171            "description": "伪类的描述",
172            "items": {
173              "type": "object",
174              "properties": {
175                "name": {
176                  "type": "string"
177                }
178              },
179              "required": ["name"]
180            }
181          }
182        }
183      }
184    }
185  },
186  "required": ["properties", "atDirectives", "pseudoClasses"]
187}
188