X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=docs%2Fextension.schema.v2.json;h=75a4f2c6fc64e4d920830ddb3792bca874b0bdd0;hb=78468c014717a0d2cc14d89ffd7c1120429194ba;hp=a5543d12a6a32f25b5eb514e40da5c1de9fe149c;hpb=b8bf745ca957de92f447ded545179663d344191f;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/extension.schema.v2.json b/docs/extension.schema.v2.json index a5543d12a6..75a4f2c6fc 100644 --- a/docs/extension.schema.v2.json +++ b/docs/extension.schema.v2.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/schema#", "description": "MediaWiki extension.json schema", "type": "object", + "additionalProperties": false, "properties": { "manifest_version": { "type": "integer", @@ -39,7 +40,7 @@ "url": { "type": "string", "description": "URL to the homepage for the extension.", - "format": "uri" + "format": "uri-reference" }, "description": { "type": "string", @@ -56,6 +57,7 @@ "requires": { "type": "object", "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", @@ -316,7 +318,7 @@ } }, { - "description": "An arbitrary ResourceLoaderModule definition", + "description": "An arbitrary ResourceLoaderModule definition by class", "properties": { "class": { "type": "string", @@ -324,6 +326,16 @@ } }, "required": ["class"] + }, + { + "description": "An arbitrary ResourceLoaderModule definition with instantiator", + "properties": { + "factory": { + "type": "string", + "description": "A static instantiator function for creating the ResourceLoaderModule object." + } + }, + "required": ["factory"] } ] } @@ -585,7 +597,7 @@ }, "JobClasses": { "type": "object", - "description": "Job types this extension implements (mapping of job type to class name)" + "description": "Job types this extension implements (mapping of job type to class name or factory function)" }, "LogTypes": { "type": "array", @@ -652,7 +664,8 @@ "description": "Available feeds objects" }, "SkinOOUIThemes": { - "type": "object" + "type": "object", + "description": "Map of skin names to OOjs UI themes to use. Same format as ResourceLoaderOOUIModule::$builtinSkinThemeMap." }, "PasswordPolicy": { "type": "object", @@ -706,6 +719,15 @@ "description": { "type": ["string", "array"], "description": "A description of the config setting, mostly for documentation/developers" + }, + "decriptionmsg": { + "type": "string", + "description": "The message key which should be used as a description for this configuration option in a user interface. If empty, description will be used." + }, + "public": { + "type": "boolean", + "default": false, + "description": "Whether this configuration option and its value is allowed to be revealed in public or not." } } } @@ -719,6 +741,20 @@ "type": "array", "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices" }, + "attributes": { + "description":"Registration information for other extensions", + "type": "object", + "patternProperties": { + ".*": { + "type": "object", + "patternProperties": { + ".*": { + "type": ["array", "object"] + } + } + } + } + }, "load_composer_autoloader": { "type": "boolean", "description": "Load the composer autoloader for this extension, if one is present"