jenkins-bot has submitted this change and it was merged. Change subject: registration: Add schema validation ResourceLoaderWikiModule ......................................................................
registration: Add schema validation ResourceLoaderWikiModule
And improve the "groups" description for ResourceLoaderFileModule.
Bug: T134213
Change-Id: I03ecc56d1af565ace556ba579a9a9c495334da9c
---
M docs/extension.schema.json
1 file changed, 43 insertions(+), 1 deletion(-)
Approvals:
Jforrester: Looks good to me, approved
jenkins-bot: Verified
diff --git a/docs/extension.schema.json b/docs/extension.schema.json
index 1fccf17..c5dc105 100644
--- a/docs/extension.schema.json
+++ b/docs/extension.schema.json
@@ -415,7 +415,7 @@
},
"group": {
"type":
"string",
-
"description": "Group which this module should be loaded together with"
+
"description": "Group with which this module should be loaded"
},
"position": {
"type":
"string",
@@ -439,6 +439,48 @@
}
},
{
+ "description": "A
ResourceLoaderWikiModule definition",
+ "additionalProperties":
false,
+ "properties": {
+ "class": {
+ "enum":
["ResourceLoaderWikiModule"]
+ },
+ "group": {
+ "type":
"string",
+
"description": "Group with which this module should be loaded"
+ },
+ "position": {
+ "type":
"string",
+
"description": "Position on the page to load this module at",
+ "enum":
[
+
"bottom",
+
"top"
+ ]
+ },
+ "targets": {
+ "type":
["string", "array"],
+
"description": "ResourceLoader target the module can run on",
+
"items": {
+
"type": "string"
+ }
+ },
+ "scripts": {
+ "type":
"array",
+
"description": "A list of on-wiki pages containing JavaScript that should be
loaded",
+
"items": {
+
"type": "string"
+ }
+ },
+ "styles": {
+ "type":
"array",
+
"description": "A list of on-wiki pages containing CSS that should be loaded",
+
"items": {
+
"type": "string"
+ }
+ }
+ }
+ },
+ {
"description": "A
ResourceLoaderImageModule definition",
"additionalProperties":
false,
"properties": {
--
To view, visit https://gerrit.wikimedia.org/r/295646
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I03ecc56d1af565ace556ba579a9a9c495334da9c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
