Skip to content

Commit f09d3a5

Browse files
authored
fix customData schema (#210)
1 parent 995bfea commit f09d3a5

File tree

1 file changed

+68
-41
lines changed

1 file changed

+68
-41
lines changed

docs/customData.schema.json

Lines changed: 68 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55
"title": "VS Code HTML Custom Data format",
66
"description": "Format for loading Custom Data in VS Code's HTML support",
77
"type": "object",
8-
"required": ["version"],
8+
"required": [
9+
"version"
10+
],
911
"definitions": {
1012
"references": {
1113
"type": "object",
12-
"required": ["name", "url"],
14+
"required": [
15+
"name",
16+
"url"
17+
],
1318
"properties": {
1419
"name": {
1520
"type": "string",
@@ -25,7 +30,10 @@
2530
},
2631
"markupDescription": {
2732
"type": "object",
28-
"required": ["kind", "value"],
33+
"required": [
34+
"kind",
35+
"value"
36+
],
2937
"properties": {
3038
"kind": {
3139
"type": "string",
@@ -53,7 +61,9 @@
5361
"type": "array",
5462
"items": {
5563
"type": "object",
56-
"required": ["name"],
64+
"required": [
65+
"name"
66+
],
5767
"defaultSnippets": [
5868
{
5969
"body": {
@@ -74,15 +84,19 @@
7484
{
7585
"type": "string"
7686
},
77-
{ "$ref": "#/definitions/markupDescription" }
87+
{
88+
"$ref": "#/definitions/markupDescription"
89+
}
7890
]
7991
},
8092
"attributes": {
8193
"type": "array",
8294
"description": "A list of possible attributes for the tag",
8395
"items": {
8496
"type": "object",
85-
"required": ["name"],
97+
"required": [
98+
"name"
99+
],
86100
"defaultSnippets": [
87101
{
88102
"body": {
@@ -103,7 +117,9 @@
103117
{
104118
"type": "string"
105119
},
106-
{ "$ref": "#/definitions/markupDescription" }
120+
{
121+
"$ref": "#/definitions/markupDescription"
122+
}
107123
]
108124
},
109125
"valueSet": {
@@ -115,7 +131,9 @@
115131
"description": "A list of possible values for the attribute",
116132
"items": {
117133
"type": "object",
118-
"required": ["name"],
134+
"required": [
135+
"name"
136+
],
119137
"defaultSnippets": [
120138
{
121139
"body": {
@@ -135,7 +153,9 @@
135153
{
136154
"type": "string"
137155
},
138-
{ "$ref": "#/definitions/markupDescription" }
156+
{
157+
"$ref": "#/definitions/markupDescription"
158+
}
139159
]
140160
},
141161
"references": {
@@ -181,7 +201,11 @@
181201
"status": {
182202
"type": "string",
183203
"description": "Baseline status",
184-
"enum": ["high", "low", "false"]
204+
"enum": [
205+
"high",
206+
"low",
207+
"false"
208+
]
185209
},
186210
"baseline_low_date": {
187211
"type": "string",
@@ -196,41 +220,44 @@
196220
"patternErrorMessage": "Date must be in the format of `YYYY-MM-DD`"
197221
}
198222
}
223+
}
199224
}
200-
}
201-
},
202-
"globalAttributes": {
203-
"description": "Custom HTML global attributes",
204-
"type": "array",
205-
"items": {
206-
"$ref": "#/properties/tags/items/properties/attributes/items"
207-
}
208-
},
209-
"valueSets": {
210-
"description": "A set of attribute value. When an attribute refers to an attribute set, its value completion will use value from that set",
211-
"type": "array",
212-
"items": {
213-
"type": "object",
214-
"required": ["name"],
215-
"defaultSnippets": [
216-
{
217-
"body": {
218-
"name": "$1",
219-
"description": "",
220-
"values": []
225+
},
226+
"globalAttributes": {
227+
"description": "Custom HTML global attributes",
228+
"type": "array",
229+
"items": {
230+
"$ref": "#/properties/tags/items/properties/attributes/items"
231+
}
232+
},
233+
"valueSets": {
234+
"description": "A set of attribute value. When an attribute refers to an attribute set, its value completion will use value from that set",
235+
"type": "array",
236+
"items": {
237+
"type": "object",
238+
"required": [
239+
"name"
240+
],
241+
"defaultSnippets": [
242+
{
243+
"body": {
244+
"name": "$1",
245+
"description": "",
246+
"values": []
247+
}
248+
}
249+
],
250+
"properties": {
251+
"name": {
252+
"type": "string",
253+
"description": "Name of attribute value in value set"
254+
},
255+
"values": {
256+
"$ref": "#/properties/tags/items/properties/attributes/items/properties/values"
221257
}
222-
}
223-
],
224-
"properties": {
225-
"name": {
226-
"type": "string",
227-
"description": "Name of attribute value in value set"
228-
},
229-
"values": {
230-
"$ref": "#/properties/tags/items/properties/attributes/items/properties/values"
231258
}
232259
}
233260
}
234261
}
235262
}
236-
}
263+
}

0 commit comments

Comments
 (0)