From: Kunal Mehta Date: Fri, 29 May 2015 00:31:16 +0000 (-0700) Subject: registration: Fix types of ResourceModules properties X-Git-Tag: 1.31.0-rc.0~11265 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=19989936856ef6323c6e3bf53a41956f6279a1e5;p=lhc%2Fweb%2Fwiklou.git registration: Fix types of ResourceModules properties styles and scripts can both be strings, and that is treated as if that was the first value in the array. style can be used as an object, the filename is the key, and value can be an object that states what media type the stylesheet is for. An example of this can be seen in the MonoBook skin. Change-Id: If7d3a220cdccbb1ce096d776592535fe5782a954 --- diff --git a/docs/extension.schema.json b/docs/extension.schema.json index 34cfe2c836..a2ff64e256 100644 --- a/docs/extension.schema.json +++ b/docs/extension.schema.json @@ -324,7 +324,7 @@ "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath" }, "scripts": { - "type": "array", + "type": ["string", "array"], "description": "Scripts to always include (array of file paths)", "items": { "type": "string" @@ -382,7 +382,7 @@ } }, "styles": { - "type": "array", + "type": ["string", "array", "object"], "description": "Styles to always load", "items": { "type": "string"