From: Kunal Mehta Date: Wed, 22 Jun 2016 21:57:38 +0000 (+0200) Subject: registration: Add schema validation ResourceLoaderWikiModule X-Git-Tag: 1.31.0-rc.0~6377^2~2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=155b6e0f1ddf85c3bac8e49d592cfb6d2b9856b4;p=lhc%2Fweb%2Fwiklou.git registration: Add schema validation ResourceLoaderWikiModule And improve the "groups" description for ResourceLoaderFileModule. Bug: T134213 Change-Id: I03ecc56d1af565ace556ba579a9a9c495334da9c --- diff --git a/docs/extension.schema.json b/docs/extension.schema.json index 1fccf17d28..c5dc10569b 100644 --- a/docs/extension.schema.json +++ b/docs/extension.schema.json @@ -415,7 +415,7 @@ }, "group": { "type": "string", - "description": "Group which this module should be loaded together with" + "description": "Group with which this module should be loaded" }, "position": { "type": "string", @@ -438,6 +438,48 @@ } } }, + { + "description": "A ResourceLoaderWikiModule definition", + "additionalProperties": false, + "properties": { + "class": { + "enum": ["ResourceLoaderWikiModule"] + }, + "group": { + "type": "string", + "description": "Group with which this module should be loaded" + }, + "position": { + "type": "string", + "description": "Position on the page to load this module at", + "enum": [ + "bottom", + "top" + ] + }, + "targets": { + "type": ["string", "array"], + "description": "ResourceLoader target the module can run on", + "items": { + "type": "string" + } + }, + "scripts": { + "type": "array", + "description": "A list of on-wiki pages containing JavaScript that should be loaded", + "items": { + "type": "string" + } + }, + "styles": { + "type": "array", + "description": "A list of on-wiki pages containing CSS that should be loaded", + "items": { + "type": "string" + } + } + } + }, { "description": "A ResourceLoaderImageModule definition", "additionalProperties": false,