aboutsummaryrefslogtreecommitdiffstats
path: root/docs/extension.schema.v2.json
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2022-07-27 00:31:50 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2022-07-27 00:43:02 +0200
commitfefb27b03758614e1560a05a5fa59bb52230f4e6 (patch)
tree6a5702706c3cc612157c5f3ca46d1b084ba21179 /docs/extension.schema.v2.json
parentc41a5a4d93195902115984f9c72ec7566449370c (diff)
downloadmediawikicore-fefb27b03758614e1560a05a5fa59bb52230f4e6.tar.gz
mediawikicore-fefb27b03758614e1560a05a5fa59bb52230f4e6.zip
build: Run eslint for /docs/ and make pass
The doc folder contains (committed) json files with schema definition for json files That should be linted as well to spot syntax errors easier Change-Id: I20ff7abf6b98d2247ee52e2d2b43af88c062f779
Diffstat (limited to 'docs/extension.schema.v2.json')
-rw-r--r--docs/extension.schema.v2.json76
1 files changed, 38 insertions, 38 deletions
diff --git a/docs/extension.schema.v2.json b/docs/extension.schema.v2.json
index 3d2ba3b60fca..07fe36f33924 100644
--- a/docs/extension.schema.v2.json
+++ b/docs/extension.schema.v2.json
@@ -91,7 +91,7 @@
"^ext-": {
"type": "string",
"description": "Required PHP extension.",
- "enum": ["*"]
+ "enum": [ "*" ]
}
}
},
@@ -129,7 +129,7 @@
"^ext-": {
"type": "string",
"description": "Optional PHP extension.",
- "enum": ["*"]
+ "enum": [ "*" ]
}
}
},
@@ -171,7 +171,7 @@
"^ext-": {
"type": "string",
"description": "Required PHP extension.",
- "enum": ["*"]
+ "enum": [ "*" ]
}
}
},
@@ -232,7 +232,7 @@
"description": "Path to a file containing a JavaScript \"skip function\", if desired."
},
"scripts": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Scripts to always include (array of file paths)",
"items": {
"type": "string"
@@ -269,21 +269,21 @@
}
},
"debugScripts": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Scripts to include in debug contexts",
"items": {
"type": "string"
}
},
"dependencies": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Modules which must be loaded before this module",
"items": {
"type": "string"
}
},
"styles": {
- "type": ["string", "array", "object"],
+ "type": [ "string", "array", "object" ],
"description": "Styles to always load",
"items": {
"type": "string"
@@ -305,7 +305,7 @@
}
},
"messages": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Messages to always load",
"items": {
"type": "string"
@@ -316,7 +316,7 @@
"description": "Group with which this module should be loaded"
},
"deprecated": {
- "type": ["object", "string", "boolean"],
+ "type": [ "object", "string", "boolean" ],
"description": "Whether the module is deprecated and usage is discouraged. Either a boolean, or a string or an object with key message can be used to customise deprecation message."
},
"position": {
@@ -328,14 +328,14 @@
]
},
"templates": {
- "type": ["object", "array"],
+ "type": [ "object", "array" ],
"description": "Templates to be loaded for client-side usage",
"items": {
"type": "string"
}
},
"targets": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "ResourceLoader target the module can run on",
"items": {
"type": "string"
@@ -346,10 +346,10 @@
"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": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Package files that can be require()d",
"items": {
- "type": ["string", "object"]
+ "type": [ "string", "object" ]
}
},
"es6": {
@@ -378,7 +378,7 @@
]
},
"targets": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "ResourceLoader target the module can run on",
"items": {
"type": "string"
@@ -456,7 +456,7 @@
"pattern": "^(?!ResourceLoader(File|Image|Wiki)Module).*$"
}
},
- "required": ["class"]
+ "required": [ "class" ]
},
{
"description": "An arbitrary ResourceLoader Module definition with instantiator",
@@ -466,7 +466,7 @@
"description": "A static instantiator function for creating the ResourceLoader Module object."
}
},
- "required": ["factory"]
+ "required": [ "factory" ]
}
]
}
@@ -502,42 +502,42 @@
"description": "Prefix for URLs to files in $options, relative to $wgStylePath"
},
"scripts": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Scripts to include (array of file paths)",
"items": {
"type": "string"
}
},
"packageFiles": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Package files that can be require()d",
"items": {
- "type": ["string", "object"]
+ "type": [ "string", "object" ]
}
},
"dependencies": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Modules which must be loaded before this module",
"items": {
"type": "string"
}
},
"styles": {
- "type": ["string", "array", "object"],
+ "type": [ "string", "array", "object" ],
"description": "Styles to load",
"items": {
"type": "string"
}
},
"templates": {
- "type": ["object", "array"],
+ "type": [ "object", "array" ],
"description": "Templates to be loaded for client-side usage",
"items": {
"type": "string"
}
},
"messages": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Messages to load",
"items": {
"type": "string"
@@ -647,7 +647,7 @@
"type": "string"
},
"protection": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "Userright(s) required to edit in this namespace"
},
"capitallinkoverride": {
@@ -670,7 +670,7 @@
"default": true
}
},
- "required": ["id", "constant", "name"]
+ "required": [ "id", "constant", "name" ]
}
},
"TrackingCategories": {
@@ -915,7 +915,7 @@
"type": "object",
"properties": {
"factory": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "A factory function to be called to create the handler for this hook"
},
"class": {
@@ -949,7 +949,7 @@
},
"component": {
"type": "string",
- "description" : "The component to which the deprecated version relates. If omitted, the extension name will be used."
+ "description": "The component to which the deprecated version relates. If omitted, the extension name will be used."
},
"silent": {
"type": "boolean",
@@ -1024,7 +1024,7 @@
},
"ValidSkinNames": {
"type": "object",
- "description": "Mapping of skin canonical names to PHP class name using the Object Factory specification. Or historically, the human readable name of the skin."
+ "description": "Mapping of skin canonical names to PHP class name using the Object Factory specification. Or historically, the human readable name of the skin."
},
"FeedClasses": {
"type": "object",
@@ -1137,7 +1137,7 @@
"default": false
},
"description": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "A description of the config setting, mostly for documentation/developers"
},
"descriptionmsg": {
@@ -1191,7 +1191,7 @@
"description": "The path template. This should start with an initial slash, designating the root of the REST API. Path parameters are enclosed in braces, for example /endpoint/{param}."
},
"factory": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "A factory function to be called to create the handler for this route"
},
"class": {
@@ -1223,7 +1223,7 @@
"description": "Object factory specification for a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule",
"properties": {
"factory": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "A factory function to be called to create an ExtensionModule. This should be omitted if a class is specified."
}
},
@@ -1290,7 +1290,7 @@
"description": "Additional Parsoid processing configuration for this extension tag"
}
},
- "required": ["name"]
+ "required": [ "name" ]
}
}
}
@@ -1299,14 +1299,14 @@
}
},
"TempUserSerialProviders": {
- "type" : "object",
+ "type": "object",
"description": "Map of temporary user serial provider type name to ObjectFactory spec",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"factory": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "A factory function"
},
"class": {
@@ -1326,14 +1326,14 @@
}
},
"TempUserSerialMappings": {
- "type" : "object",
+ "type": "object",
"description": "Map of temporary user serial map type name to ObjectFactory spec",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"factory": {
- "type": ["string", "array"],
+ "type": [ "string", "array" ],
"description": "A factory function"
},
"class": {
@@ -1353,14 +1353,14 @@
}
},
"attributes": {
- "description":"Registration information for other extensions",
+ "description": "Registration information for other extensions",
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"patternProperties": {
".*": {
- "type": ["array", "object"]
+ "type": [ "array", "object" ]
}
}
}