From 19989936856ef6323c6e3bf53a41956f6279a1e5 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 28 May 2015 17:31:16 -0700 Subject: [PATCH] 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 --- docs/extension.schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.20.1