dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix instances of preg_quote() without second parameter
[lhc/web/wiklou.git]
/
docs
/
extension.schema.json
diff --git
a/docs/extension.schema.json
b/docs/extension.schema.json
index
3b75b72
..
d7d9e47
100644
(file)
--- a/
docs/extension.schema.json
+++ b/
docs/extension.schema.json
@@
-3,6
+3,11
@@
"description": "MediaWiki extension.json schema",
"type": "object",
"properties": {
"description": "MediaWiki extension.json schema",
"type": "object",
"properties": {
+ "manifest_version": {
+ "type": "integer",
+ "description": "Version of the extension.json schema the extension.json file is in.",
+ "required": true
+ },
"name": {
"type": "string",
"description": "The extension's canonical name.",
"name": {
"type": "string",
"description": "The extension's canonical name.",
@@
-15,19
+20,7
@@
"type": {
"type": "string",
"description": "The extension's type, as an index to $wgExtensionCredits.",
"type": {
"type": "string",
"description": "The extension's type, as an index to $wgExtensionCredits.",
- "default": "other",
- "enum": [
- "api",
- "antispam",
- "datavalues",
- "media",
- "parserhook",
- "semantic",
- "skin",
- "specialpage",
- "variable",
- "other"
- ]
+ "default": "other"
},
"author": {
"type": [
},
"author": {
"type": [
@@
-37,8
+30,7
@@
"description": "Extension's authors.",
"items": {
"type": "string"
"description": "Extension's authors.",
"items": {
"type": "string"
- },
- "additionalItems": false
+ }
},
"version": {
"type": "string",
},
"version": {
"type": "string",
@@
-297,12
+289,12
@@
}
}
},
}
}
},
- "Resource
Loader
Modules": {
+ "ResourceModules": {
"type": "object",
"description": "ResourceLoader modules to register",
"additionalProperties": false,
"patternProperties": {
"type": "object",
"description": "ResourceLoader modules to register",
"additionalProperties": false,
"patternProperties": {
- "^[a-zA-Z0-9\\.]+$": {
+ "^[a-zA-Z0-9
-
\\.]+$": {
"type": "object",
"description": "A single ResourceLoader module descriptor",
"properties": {
"type": "object",
"description": "A single ResourceLoader module descriptor",
"properties": {
@@
-319,7
+311,7
@@
"description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
},
"scripts": {
"description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
},
"scripts": {
- "type":
"array"
,
+ "type":
["string", "array"]
,
"description": "Scripts to always include (array of file paths)",
"items": {
"type": "string"
"description": "Scripts to always include (array of file paths)",
"items": {
"type": "string"
@@
-356,28
+348,28
@@
}
},
"debugScripts": {
}
},
"debugScripts": {
- "type":
"array"
,
+ "type":
["string", "array"]
,
"description": "Scripts to include in debug contexts",
"items": {
"type": "string"
}
},
"loaderScripts": {
"description": "Scripts to include in debug contexts",
"items": {
"type": "string"
}
},
"loaderScripts": {
- "type":
"array"
,
+ "type":
["string", "array"]
,
"description": "Scripts to include in the startup module",
"items": {
"type": "string"
}
},
"dependencies": {
"description": "Scripts to include in the startup module",
"items": {
"type": "string"
}
},
"dependencies": {
- "type":
"array"
,
+ "type":
["string", "array"]
,
"description": "Modules which must be loaded before this module",
"items": {
"type": "string"
}
},
"styles": {
"description": "Modules which must be loaded before this module",
"items": {
"type": "string"
}
},
"styles": {
- "type":
"array"
,
+ "type":
["string", "array", "object"]
,
"description": "Styles to always load",
"items": {
"type": "string"
"description": "Styles to always load",
"items": {
"type": "string"
@@
-399,7
+391,7
@@
}
},
"messages": {
}
},
"messages": {
- "type":
"array"
,
+ "type":
["string", "array"]
,
"description": "Messages to always load",
"items": {
"type": "string"
"description": "Messages to always load",
"items": {
"type": "string"
@@
-618,6
+610,9
@@
"ValidSkinNames": {
"type": "object"
},
"ValidSkinNames": {
"type": "object"
},
+ "SkinOOUIThemes": {
+ "type": "object"
+ },
"callback": {
"type": [
"array",
"callback": {
"type": [
"array",