Debian Codegraph @

extensions/Gadgets/GadgetDefinition.schema.json

raw symbols SCIP
1 {
2 "$schema": "http://json-schema.org/schema#",
3 "description": "Gadget definition schema",
4 "type": "object",
5 "additionalProperties": false,
6 "properties": {
7 "settings": {
8 "type": "object",
9 "additionalProperties": false,
10 "properties": {
11 "rights": {
12 "description": "The rights required to be able to enable/load this gadget",
13 "type": "array",
14 "items": {
15 "type": "string"
16 }
17 },
18 "default": {
19 "description": "Whether this gadget is enabled by default",
20 "type": "boolean",
21 "default": false
22 },
23 "package": {
24 "description": "Whether this is gadget a packaged ResourceLoader module",
25 "type": "boolean",
26 "default": false
27 },
28 "hidden": {
29 "description": "Whether this gadget is hidden from preferences",
30 "type": "boolean",
31 "default": false
32 },
33 "skins": {
34 "description": "Skins supported by this gadget; empty if all skins are supported",
35 "type": "array",
36 "items": {
37 "type": "string"
38 }
39 },
40 "actions": {
41 "description": "Page actions on which to load the gadget",
42 "type": "array",
43 "items": {
44 "type": "string"
45 }
46 },
47 "namespaces": {
48 "description": "Page namespaces in which to load the gadget",
49 "type": "array",
50 "items": {
51 "type": "number"
52 }
53 },
54 "categories": {
55 "description": "Categories in which to load the gadget",
56 "type": "array",
57 "items": {
58 "type": "string"
59 }
60 },
61 "contentModels": {
62 "description": "Content models on which the gadget is supported",
63 "type": "array",
64 "items": {
65 "type": "string"
66 }
67 },
68 "category": {
69 "description": "Key of the category this gadget belongs to",
70 "type": "string",
71 "default": ""
72 },
73 "supportsUrlLoad": {
74 "description": "Whether this gadget supports ?withgadget query parameter",
75 "type": "boolean",
76 "default": false
77 },
78 "requiresES6": {
79 "description": "Whether this gadget requires ES6",
80 "type": "boolean",
81 "default": false
82 }
83 }
84 },
85 "module": {
86 "type": "object",
87 "additionalProperties": false,
88 "properties": {
89 "pages": {
90 "type": "array",
91 "description": "List of JS/CSS/JSON pages included in this gadget"
92 },
93 "dependencies": {
94 "type": "array",
95 "description": "ResourceLoader modules this gadget depends upon"
96 },
97 "messages": {
98 "type": "array",
99 "description": "Messages this gadget depends upon"
100 }
101 }
102 }
103 }
104 }