Skip to content

Commit 6264ce5

Browse files
committed
Add JSON schema for extension control
1 parent 2b68d7c commit 6264ce5

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed

extension-control/schema.json

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"malicious": {
6+
"type": "array",
7+
"items": {
8+
"type": "string"
9+
}
10+
},
11+
"migrateToPreRelease": {
12+
"type": "object",
13+
"additionalProperties": {
14+
"type": "object",
15+
"properties": {
16+
"id": {
17+
"type": "string"
18+
},
19+
"displayName": {
20+
"type": "string"
21+
},
22+
"migrateStorage": {
23+
"type": "boolean"
24+
},
25+
"engine": {
26+
"type": "string"
27+
}
28+
},
29+
"required": ["id", "displayName"],
30+
"additionalProperties": false
31+
}
32+
},
33+
"deprecated": {
34+
"type": "object",
35+
"additionalProperties": {
36+
"oneOf": [
37+
{
38+
"type": "boolean"
39+
},
40+
{
41+
"type": "object",
42+
"properties": {
43+
"disallowInstall": {
44+
"type": "boolean"
45+
},
46+
"extension": {
47+
"type": "object",
48+
"properties": {
49+
"id": {
50+
"type": "string"
51+
},
52+
"displayName": {
53+
"type": "string"
54+
}
55+
},
56+
"required": ["id", "displayName"],
57+
"additionalProperties": false
58+
},
59+
"settings": {
60+
"type": "array",
61+
"items": {
62+
"type": "string"
63+
}
64+
},
65+
"additionalInfo": {
66+
"type": "string"
67+
}
68+
},
69+
"additionalProperties": false
70+
}
71+
]
72+
}
73+
},
74+
"search": {
75+
"type": "array",
76+
"items": {
77+
"type": "object",
78+
"properties": {
79+
"query": {
80+
"type": "string"
81+
},
82+
"preferredResults": {
83+
"type": "array",
84+
"items": {
85+
"type": "string"
86+
}
87+
}
88+
},
89+
"additionalProperties": false
90+
}
91+
},
92+
"extensionsEnabledWithPreRelease": {
93+
"type": "array",
94+
"items": {
95+
"type": "string"
96+
}
97+
}
98+
},
99+
"required": ["malicious"],
100+
"additionalProperties": false
101+
}

0 commit comments

Comments
 (0)