From 2cbd34dc55d5892e4ae6cd3b26ba214658857975 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Mon, 8 Jan 2018 16:05:05 -0800 Subject: [PATCH] Follow-up 8a7fb8577: For deprecated RL modules, allow strings So that more than just PHP code and MediaWiki core can use it, but also JSON-based static extension registrations. :-) Change-Id: If22fccbb43c5b05db2a666d61ae8864ee9815e7d --- docs/extension.schema.v1.json | 4 ++-- docs/extension.schema.v2.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/extension.schema.v1.json b/docs/extension.schema.v1.json index ddf82e8d9e..0763e7de63 100644 --- a/docs/extension.schema.v1.json +++ b/docs/extension.schema.v1.json @@ -210,8 +210,8 @@ "description": "Group which this module should be loaded together with" }, "deprecated": { - "type": ["object", "boolean"], - "description": "Whether the module is deprecated and usage is discouraged. Either a boolean or an object with key message can be used to customise deprecation message." + "type": ["object", "string", "boolean"], + "description": "Whether the module is deprecated and usage is discouraged. Either a boolean, or a string or an object with key message can be used to customise deprecation message." }, "position": { "type": "string", diff --git a/docs/extension.schema.v2.json b/docs/extension.schema.v2.json index 0bdf97d41e..51f9417d30 100644 --- a/docs/extension.schema.v2.json +++ b/docs/extension.schema.v2.json @@ -211,8 +211,8 @@ "description": "Group with which this module should be loaded" }, "deprecated": { - "type": ["object", "boolean"], - "description": "Whether the module is deprecated and usage is discouraged. Either a boolean or an object with key message can be used to customise deprecation message." + "type": ["object", "string", "boolean"], + "description": "Whether the module is deprecated and usage is discouraged. Either a boolean, or a string or an object with key message can be used to customise deprecation message." }, "position": { "type": "string", -- 2.20.1