Skip to content

Commit 78020c8

Browse files
authored
[VS Code] Add schemas for common files (microsoft#163)
* [VS Code] Add schemas for common files - settings.json (paconn settings file) - apiProperties.json - apiDefinition.swagger.json The schema for apiDefinition.swagger.json files is modified from the one found at http://schemastore.org/json/. It includes many 'x-ms-' vendor extensions. * [apiDefinition.swagger.schema.json] Copy from http://schemastore.org/json/
1 parent d14724b commit 78020c8

4 files changed

+3085
-12
lines changed

.vscode/settings.json

+49-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,53 @@
11
{
2+
"files.associations": {
3+
"*.schema.json": "jsonc"
4+
},
5+
"editor.insertSpaces": true,
6+
"[json]": {
27
"editor.insertSpaces": true,
3-
"[json]": {
4-
"editor.detectIndentation": false,
5-
"editor.tabSize": 2,
6-
"files.trimTrailingWhitespace": true
8+
"editor.detectIndentation": false,
9+
"editor.tabSize": 2,
10+
"files.trimTrailingWhitespace": true,
11+
"editor.quickSuggestions": {
12+
"strings": true
713
},
8-
"json.schemas": [
9-
{
10-
"fileMatch": [
11-
"/apiDefinition.swagger.json"
12-
],
13-
"url": "http://json.schemastore.org/swagger-2.0"
14-
}
15-
]
14+
"editor.suggest.insertMode": "replace"
15+
},
16+
"[jsonc]": {
17+
"editor.insertSpaces": true,
18+
"editor.detectIndentation": false,
19+
"editor.tabSize": 2,
20+
"files.trimTrailingWhitespace": true,
21+
"editor.quickSuggestions": {
22+
"strings": true
23+
},
24+
"editor.suggest.insertMode": "replace"
25+
},
26+
"json.schemas": [
27+
{
28+
"fileMatch": [
29+
"/apiDefinition*.swagger.json"
30+
],
31+
"url": "./schemas/apiDefinition.swagger.schema.json"
32+
},
33+
{
34+
"fileMatch": [
35+
"/*.swagger.json"
36+
],
37+
"url": "http://json.schemastore.org/swagger-2.0"
38+
},
39+
{
40+
"fileMatch": [
41+
"/certified-connectors/**/settings.json",
42+
"/custom-connectors/**/settings.json"
43+
],
44+
"url": "./schemas/paconn-settings.schema.json"
45+
},
46+
{
47+
"fileMatch": [
48+
"/apiProperties.json",
49+
],
50+
"url": "./schemas/paconn-apiProperties.schema.json"
51+
}
52+
]
1653
}

0 commit comments

Comments
 (0)