X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fextension.schema.v2.json;h=42b34b7d2a9442b4fff21475e3342ef77a7f722b;hb=85535ae5fc744edb6e976540f711ad02a264282d;hp=1936cdcb529b57c443df7461b72a6c3d6f87db57;hpb=341bd5d6e91067ac230379bd6b157b4a6f53c23c;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/extension.schema.v2.json b/docs/extension.schema.v2.json index 1936cdcb52..42b34b7d2a 100644 --- a/docs/extension.schema.v2.json +++ b/docs/extension.schema.v2.json @@ -77,13 +77,18 @@ "php": { "type": "string", "description": "Version constraint string against PHP." + }, + "ability-shell": { + "type": "boolean", + "default": false, + "description": "Whether this extension requires shell access." } }, "patternProperties": { "^ext-": { "type": "string", "description": "Required PHP extension.", - "const": "*" + "enum": ["*"] } } }, @@ -260,6 +265,10 @@ "noflip": { "type": "boolean", "description": "Whether to skip CSSJanus LTR-to-RTL flipping for this module. Recommended for styles imported from libraries that already properly handle their RTL styles. Default is false, meaning CSSJanus will be applied on RTL-mode output." + }, + "packageFiles": { + "type": ["object", "array"], + "description": "Package files that can be require()d" } } }, @@ -352,7 +361,7 @@ "properties": { "class": { "type": "string", - "pattern": "^((?!ResourceLoader(File|Image)Module).)*$" + "pattern": "^(?!ResourceLoader(File|Image|Wiki)Module).*$" } }, "required": ["class"] @@ -379,6 +388,53 @@ "type": "object", "description": "ResourceLoader sources to register" }, + "QUnitTestModule": { + "type": "object", + "description": "A ResourceLoaderFileModule definition registered only when wgEnableJavaScriptTest is true.", + "additionalProperties": false, + "properties": { + "localBasePath": { + "type": "string", + "description": "Prefix for local paths to files in $options, relative to extenion directory" + }, + "remoteExtPath": { + "type": "string", + "description": "Prefix for URLs to files in $options, relative to $wgExtensionAssetsPath" + }, + "remoteSkinPath": { + "type": "string", + "description": "Prefix for URLs to files in $options, relative to $wgStylePath" + }, + "scripts": { + "type": ["string", "array"], + "description": "Scripts to include (array of file paths)", + "items": { + "type": "string" + } + }, + "dependencies": { + "type": ["string", "array"], + "description": "Modules which must be loaded before this module", + "items": { + "type": "string" + } + }, + "styles": { + "type": ["string", "array", "object"], + "description": "Styles to load", + "items": { + "type": "string" + } + }, + "messages": { + "type": ["string", "array"], + "description": "Messages to load", + "items": { + "type": "string" + } + } + } + }, "ConfigRegistry": { "type": "object", "description": "Registry of factory functions to create Config objects"