-
Notifications
You must be signed in to change notification settings - Fork 1
/
meta.schema.json
81 lines (81 loc) · 2.28 KB
/
meta.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"$schema": "http://json-schema.org/draft-04/schema",
"definitions": {
"nonEmptyString": {
"type": "string",
"minLength": 1
},
"multiString": {
"anyOf": [
{ "$ref": "#/definitions/nonEmptyString" },
{
"type": "array",
"items": { "$ref": "#/definitions/nonEmptyString" },
"uniqueItems": true
}
]
}
},
"type": "object",
"properties": {
"name": { "$ref": "#/definitions/nonEmptyString" },
"description": { "type": "string" },
"namespace": { "$ref": "#/definitions/nonEmptyString" },
"version": { "$ref": "#/definitions/nonEmptyString" },
"downloadURL": { "$ref": "#/definitions/nonEmptyString" },
"updateURL": { "$ref": "#/definitions/nonEmptyString" },
"icon": { "$ref": "#/definitions/nonEmptyString" },
"include": { "$ref": "#/definitions/multiString" },
"exclude": { "$ref": "#/definitions/multiString" },
"match": { "$ref": "#/definitions/multiString" },
"require": { "$ref": "#/definitions/multiString" },
"resource": { "$ref": "#/definitions/multiString" },
"grant": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"enum": [
"unsafeWindow",
"GM_getValue",
"GM_setValue",
"GM_listValues",
"GM_deleteValue",
"GM_getResourceText",
"GM_getResourceURL",
"GM_addStyle",
"GM_log",
"GM_openInTab",
"GM_registerMenuCommand",
"GM_setClipboard",
"GM_xmlhttpRequest"
]
},
"uniqueItems": true
},
{
"type": "string",
"enum": [ "none" ]
}
],
"default": "none"
},
"run-at": {
"type": "string",
"enum": [ "document-end", "document-start", "document-idle" ],
"default": "document-end"
},
"noframes": {
"type": "boolean",
"default": false
}
},
"additionalProperties": {
"anyOf": [
{ "$ref": "#/definitions/multiString" },
{ "type": "boolean" }
]
},
"required": ["name", "namespace", "version"]
}