From 0872063d71e45c89874356b9a487d5ed72b47794 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Mon, 30 Jan 2017 18:51:16 +0100 Subject: [PATCH] registration: Allow properties in "requires" from v2 v2 of the schema allows extensions and skins to be definied under "requires". This is also used by some extensions in extension.json for v1. It works, so allow the same properties in v1 as in v2. Change-Id: I9b5f1986cadbd714d6f3460ac3e1db3bf7aae65d --- docs/extension.schema.v1.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/extension.schema.v1.json b/docs/extension.schema.v1.json index 421ea5c732..3d6eda9ad9 100644 --- a/docs/extension.schema.v1.json +++ b/docs/extension.schema.v1.json @@ -55,11 +55,20 @@ }, "requires": { "type": "object", - "description": "Indicates what versions of MediaWiki core are required. This syntax may be extended in the future, for example to check dependencies between other extensions.", + "description": "Indicates what versions of MediaWiki core or extensions are required. This syntax may be extended in the future, for example to check dependencies between other services.", + "additionalProperties": false, "properties": { "MediaWiki": { "type": "string", "description": "Version constraint string against MediaWiki core." + }, + "extensions": { + "type": "object", + "description": "Set of version constraint strings against specific extensions." + }, + "skins": { + "type": "object", + "description": "Set of version constraint strings against specific skins." } } }, -- 2.20.1