From: James D. Forrester Date: Tue, 9 Jan 2018 00:05:05 +0000 (-0800) Subject: Follow-up 8a7fb8577: For deprecated RL modules, allow strings X-Git-Tag: 1.31.0-rc.0~964 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/%22%24ccApp/ecrire/?a=commitdiff_plain;h=2cbd34dc55d5892e4ae6cd3b26ba214658857975;p=lhc%2Fweb%2Fwiklou.git 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 --- 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",