]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - extensions/Gadgets/includes/content/schema.json
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / extensions / Gadgets / includes / content / schema.json
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                                 "hidden": {
24                                         "description": "Whether this gadget is hidden from preferences",
25                                         "type": "boolean",
26                                         "default": false
27                                 },
28                                 "skins": {
29                                         "description": "Skins supported by this gadget; empty or true if all skins are supported",
30                                         "type": [ "array", "boolean" ],
31                                         "items": {
32                                                 "type": "string"
33                                         }
34                                 },
35                                 "category": {
36                                         "description": "Key of the category this gadget belongs to",
37                                         "type": "string",
38                                         "default": ""
39                                 }
40                         }
41                 },
42                 "module": {
43                         "type": "object",
44                         "additionalProperties": false,
45                         "properties": {
46                                 "scripts": {
47                                         "type": "array",
48                                         "description": "List of JavaScript pages included in this gadget"
49                                 },
50                                 "styles": {
51                                         "type": "array",
52                                         "description": "List of CSS pages included in this gadget"
53                                 },
54                                 "dependencies": {
55                                         "type": "array",
56                                         "description": "ResourceLoader modules this gadget depends upon"
57                                 },
58                                 "messages": {
59                                         "type": "array",
60                                         "description": "Messages this gadget depends upon"
61                                 }
62                         }
63                 }
64         }
65 }