Skip to content

Commit 142dde5

Browse files
authored
Migrated vs-2017.3.host.json to draft-07 (#6003)
Signed-off-by: Vessel9817 <151808241+Vessel9817@users.noreply.github.com>
1 parent 68cda3a commit 142dde5

2 files changed

Lines changed: 25 additions & 77 deletions

File tree

src/schemas/json/ide.host.json

Lines changed: 22 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/ide.host.json",
34
"definitions": {
45
"text": {
56
"required": ["text"],
@@ -31,30 +32,18 @@
3132
"description": "The id of the symbol from the template.json."
3233
},
3334
"name": {
34-
"description": "Overrides the name specified in the template.json",
35-
"allOf": [
36-
{
37-
"$ref": "#/definitions/text"
38-
}
39-
]
35+
"$ref": "#/definitions/text",
36+
"description": "Overrides the name specified in the template.json"
4037
},
4138
"description": {
42-
"description": "Overrides the name specified in the template.json",
43-
"allOf": [
44-
{
45-
"$ref": "#/definitions/text"
46-
}
47-
]
39+
"$ref": "#/definitions/text",
40+
"description": "Overrides the name specified in the template.json"
4841
}
4942
}
5043
},
5144
"symbolInfo": {
45+
"$ref": "#/definitions/overrideInfo",
5246
"type": "object",
53-
"allOf": [
54-
{
55-
"$ref": "#/definitions/overrideInfo"
56-
}
57-
],
5847
"properties": {
5948
"isVisible": {
6049
"type": "boolean",
@@ -69,12 +58,8 @@
6958
"description": "Overrides the default value specified for the "
7059
},
7160
"persistenceScope": {
72-
"description": "Determines if the user entered value should be persisted and used the next time a template is selected. Default value is the value specified by defaultSymbolVisibility Used starting in Visual Studio 2022 17.3",
73-
"allOf": [
74-
{
75-
"$ref": "#/definitions/persistenceScope"
76-
}
77-
]
61+
"$ref": "#/definitions/persistenceScope",
62+
"description": "Determines if the user entered value should be persisted and used the next time a template is selected. Default value is the value specified by defaultSymbolVisibility Used starting in Visual Studio 2022 17.3"
7863
},
7964
"persistenceScopeName": {
8065
"description": "Specifies the scope name of the persisted template option. To avoid conflicts with other templates, treat this like a namespace. Used starting in Visual Studio 2022 17.3",
@@ -84,11 +69,7 @@
8469
"description": "Specifies the name and description overrides for individual choice parameters",
8570
"type": "array",
8671
"items": {
87-
"allOf": [
88-
{
89-
"$ref": "#/definitions/overrideInfo"
90-
}
91-
]
72+
"$ref": "#/definitions/overrideInfo"
9273
}
9374
}
9475
}
@@ -125,7 +106,7 @@
125106
"id": {
126107
"description": "The host identifier.",
127108
"type": "string",
128-
"enum": ["vs"]
109+
"const": "vs"
129110
},
130111
"version": {
131112
"description": "A version range specifying the unsupported host versions. This uses the nuget package format."
@@ -144,7 +125,7 @@
144125
"hostId": {
145126
"description": "The host id that the component applies to",
146127
"type": "string",
147-
"enum": ["vs"]
128+
"const": "vs"
148129
},
149130
"componentType": {
150131
"type": "string",
@@ -156,23 +137,14 @@
156137
}
157138
}
158139
},
159-
"id": "https://json.schemastore.org/ide.host.json",
160140
"properties": {
161141
"name": {
162-
"description": "Name of the template",
163-
"allOf": [
164-
{
165-
"$ref": "#/definitions/text"
166-
}
167-
]
142+
"$ref": "#/definitions/text",
143+
"description": "Name of the template"
168144
},
169145
"description": {
170-
"description": "Description of the template",
171-
"allOf": [
172-
{
173-
"$ref": "#/definitions/text"
174-
}
175-
]
146+
"$ref": "#/definitions/text",
147+
"description": "Description of the template"
176148
},
177149
"order": {
178150
"description": "The order of the template as shown in the New Project dialog",
@@ -196,12 +168,8 @@
196168
"type": "boolean"
197169
},
198170
"defaultPersistenceScope": {
199-
"description": "The default value for a symbolInfo if not explicitly specified. Determines if the user entered value should be persisted and used the next time a template is selected. Used starting in Visual Studio 2022 17.3",
200-
"allOf": [
201-
{
202-
"$ref": "#/definitions/persistenceScope"
203-
}
204-
]
171+
"$ref": "#/definitions/persistenceScope",
172+
"description": "The default value for a symbolInfo if not explicitly specified. Determines if the user entered value should be persisted and used the next time a template is selected. Used starting in Visual Studio 2022 17.3"
205173
},
206174
"defaultPersistenceScopeName": {
207175
"description": "The default value for a symbolInfo if not explicitly specified. Specifies the scope name of the persisted template option. To avoid conflicts with other templates, treat this like a namespace. Used starting in Visual Studio 2022 17.3",
@@ -211,44 +179,28 @@
211179
"description": "Controls display characteristics of symbols declared in template.json",
212180
"type": "array",
213181
"items": {
214-
"allOf": [
215-
{
216-
"$ref": "#/definitions/symbolInfo"
217-
}
218-
]
182+
"$ref": "#/definitions/symbolInfo"
219183
}
220184
},
221185
"tags": {
222186
"description": "Modifigy the project and platform tags displayed in the IDE",
223187
"type": "array",
224188
"items": {
225-
"allOf": [
226-
{
227-
"$ref": "#/definitions/tags"
228-
}
229-
]
189+
"$ref": "#/definitions/tags"
230190
}
231191
},
232192
"unsupportedHosts": {
233193
"description": "Unsupported Hosts. This can be used to suppress the template from being displayed in the new project dialog in Visual Studio.",
234194
"type": "array",
235195
"items": {
236-
"allOf": [
237-
{
238-
"$ref": "#/definitions/unsupportedHost"
239-
}
240-
]
196+
"$ref": "#/definitions/unsupportedHost"
241197
}
242198
},
243199
"requiredComponents": {
244200
"description": "Required components in order to display this template.",
245201
"type": "array",
246202
"items": {
247-
"allOf": [
248-
{
249-
"$ref": "#/definitions/requiredComponent"
250-
}
251-
]
203+
"$ref": "#/definitions/requiredComponent"
252204
}
253205
}
254206
},
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"allOf": [
4-
{
5-
"$ref": "ide.host.json"
6-
}
7-
],
8-
"id": "https://json.schemastore.org/vs-2017.3.host.json",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/vs-2017.3.host.json",
4+
"$ref": "ide.host.json",
95
"title": "JSON schema for IDE template host files"
106
}

0 commit comments

Comments
 (0)