|
1 | 1 | { |
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", |
3 | 4 | "definitions": { |
4 | 5 | "text": { |
5 | 6 | "required": ["text"], |
|
31 | 32 | "description": "The id of the symbol from the template.json." |
32 | 33 | }, |
33 | 34 | "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" |
40 | 37 | }, |
41 | 38 | "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" |
48 | 41 | } |
49 | 42 | } |
50 | 43 | }, |
51 | 44 | "symbolInfo": { |
| 45 | + "$ref": "#/definitions/overrideInfo", |
52 | 46 | "type": "object", |
53 | | - "allOf": [ |
54 | | - { |
55 | | - "$ref": "#/definitions/overrideInfo" |
56 | | - } |
57 | | - ], |
58 | 47 | "properties": { |
59 | 48 | "isVisible": { |
60 | 49 | "type": "boolean", |
|
69 | 58 | "description": "Overrides the default value specified for the " |
70 | 59 | }, |
71 | 60 | "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" |
78 | 63 | }, |
79 | 64 | "persistenceScopeName": { |
80 | 65 | "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 | 69 | "description": "Specifies the name and description overrides for individual choice parameters", |
85 | 70 | "type": "array", |
86 | 71 | "items": { |
87 | | - "allOf": [ |
88 | | - { |
89 | | - "$ref": "#/definitions/overrideInfo" |
90 | | - } |
91 | | - ] |
| 72 | + "$ref": "#/definitions/overrideInfo" |
92 | 73 | } |
93 | 74 | } |
94 | 75 | } |
|
125 | 106 | "id": { |
126 | 107 | "description": "The host identifier.", |
127 | 108 | "type": "string", |
128 | | - "enum": ["vs"] |
| 109 | + "const": "vs" |
129 | 110 | }, |
130 | 111 | "version": { |
131 | 112 | "description": "A version range specifying the unsupported host versions. This uses the nuget package format." |
|
144 | 125 | "hostId": { |
145 | 126 | "description": "The host id that the component applies to", |
146 | 127 | "type": "string", |
147 | | - "enum": ["vs"] |
| 128 | + "const": "vs" |
148 | 129 | }, |
149 | 130 | "componentType": { |
150 | 131 | "type": "string", |
|
156 | 137 | } |
157 | 138 | } |
158 | 139 | }, |
159 | | - "id": "https://json.schemastore.org/ide.host.json", |
160 | 140 | "properties": { |
161 | 141 | "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" |
168 | 144 | }, |
169 | 145 | "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" |
176 | 148 | }, |
177 | 149 | "order": { |
178 | 150 | "description": "The order of the template as shown in the New Project dialog", |
|
196 | 168 | "type": "boolean" |
197 | 169 | }, |
198 | 170 | "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" |
205 | 173 | }, |
206 | 174 | "defaultPersistenceScopeName": { |
207 | 175 | "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 | 179 | "description": "Controls display characteristics of symbols declared in template.json", |
212 | 180 | "type": "array", |
213 | 181 | "items": { |
214 | | - "allOf": [ |
215 | | - { |
216 | | - "$ref": "#/definitions/symbolInfo" |
217 | | - } |
218 | | - ] |
| 182 | + "$ref": "#/definitions/symbolInfo" |
219 | 183 | } |
220 | 184 | }, |
221 | 185 | "tags": { |
222 | 186 | "description": "Modifigy the project and platform tags displayed in the IDE", |
223 | 187 | "type": "array", |
224 | 188 | "items": { |
225 | | - "allOf": [ |
226 | | - { |
227 | | - "$ref": "#/definitions/tags" |
228 | | - } |
229 | | - ] |
| 189 | + "$ref": "#/definitions/tags" |
230 | 190 | } |
231 | 191 | }, |
232 | 192 | "unsupportedHosts": { |
233 | 193 | "description": "Unsupported Hosts. This can be used to suppress the template from being displayed in the new project dialog in Visual Studio.", |
234 | 194 | "type": "array", |
235 | 195 | "items": { |
236 | | - "allOf": [ |
237 | | - { |
238 | | - "$ref": "#/definitions/unsupportedHost" |
239 | | - } |
240 | | - ] |
| 196 | + "$ref": "#/definitions/unsupportedHost" |
241 | 197 | } |
242 | 198 | }, |
243 | 199 | "requiredComponents": { |
244 | 200 | "description": "Required components in order to display this template.", |
245 | 201 | "type": "array", |
246 | 202 | "items": { |
247 | | - "allOf": [ |
248 | | - { |
249 | | - "$ref": "#/definitions/requiredComponent" |
250 | | - } |
251 | | - ] |
| 203 | + "$ref": "#/definitions/requiredComponent" |
252 | 204 | } |
253 | 205 | } |
254 | 206 | }, |
|
0 commit comments