Skip to content

Commit afc0f81

Browse files
committed
Fix broken manifest schema not working with VSCode
1 parent f530275 commit afc0f81

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

lib/buildtools/src/build/manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function getBundleManifest(manifestFile: string, tabCheck?: boolean
2424
}
2525

2626
const data = JSON.parse(rawManifest) as BundleManifest;
27-
validate(data, manifestSchema.schema, { throwError: true });
27+
validate(data, manifestSchema, { throwError: true });
2828

2929
// Make sure that all the tabs specified exist
3030
if (tabCheck && data.tabs) {
Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
{
2-
"schema": {
3-
"type": "object",
4-
"properties": {
5-
"tabs": {
6-
"description": "Tabs that will be loaded with this bundle",
7-
"type": "array",
8-
"items": {
9-
"type": "string"
10-
}
11-
},
12-
"version": {
13-
"type": "string",
14-
"description": "Version of your bundle"
15-
},
16-
"requires": {
17-
"enum": [1, 2, 3, 4],
18-
"description": "Minimum Source version required to run this bundle"
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"tabs": {
6+
"description": "Tabs that will be loaded with this bundle",
7+
"type": "array",
8+
"items": {
9+
"type": "string"
1910
}
2011
},
21-
"additionalProperties": false
22-
}
23-
}
12+
"version": {
13+
"type": "string",
14+
"description": "Version of your bundle"
15+
},
16+
"requires": {
17+
"enum": [1, 2, 3, 4],
18+
"description": "Minimum Source version required to run this bundle"
19+
}
20+
},
21+
"additionalProperties": false
22+
}

0 commit comments

Comments
 (0)