aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPhilipp Spitzer <philipp@spitzer.priv.at>2023-08-01 20:14:52 +0200
committerPhilipp Spitzer <philipp@spitzer.priv.at>2023-08-05 14:54:13 +0200
commit407f679bd5c432a828177bd732ce4e0658918df0 (patch)
tree1b64922c946f4a2de52ea1bb26bd9afde8aa8b69 /docs
parent071dcdb64695ba72091468d71decb97163d1bc45 (diff)
downloadmediawikicore-407f679bd5c432a828177bd732ce4e0658918df0.tar.gz
mediawikicore-407f679bd5c432a828177bd732ce4e0658918df0.zip
doc: Make extension.schema.v2.json a valid JSON schema.
The following validation errors have been fixed: * The "required" validation keyword must be an array. * Remove trailing commas * Remove improper use of "$ref". Change-Id: I3d01ab5467d1cf496d144781ef57a221b1476347
Diffstat (limited to 'docs')
-rw-r--r--docs/extension.schema.v2.json24
1 files changed, 11 insertions, 13 deletions
diff --git a/docs/extension.schema.v2.json b/docs/extension.schema.v2.json
index 77d08c342132..debcdf5ccdb3 100644
--- a/docs/extension.schema.v2.json
+++ b/docs/extension.schema.v2.json
@@ -10,11 +10,11 @@
},
{
"type": "object",
+ "required": [ "name" ],
"properties": {
"name": {
"type": "string",
- "description": "The name of the file",
- "required": true
+ "description": "The name of the file"
},
"type": {
"type": "string",
@@ -79,16 +79,18 @@
"description": "Arbitrary notes, ignored by the parser."
}
},
+ "required": [
+ "manifest_version",
+ "name"
+ ],
"properties": {
"manifest_version": {
"type": "integer",
- "description": "Version of the extension.json schema the extension.json file is in.",
- "required": true
+ "description": "Version of the extension.json schema the extension.json file is in."
},
"name": {
"type": "string",
- "description": "The extension's canonical name.",
- "required": true
+ "description": "The extension's canonical name."
},
"namemsg": {
"type": "string",
@@ -349,9 +351,7 @@
"debugScripts": {
"type": [ "string", "array" ],
"description": "Scripts to include in debug contexts",
- "items": {
- "type": { "$ref": "#/definitions/resourceLoaderFileInfo" }
- }
+ "items": { "$ref": "#/definitions/resourceLoaderFileInfo" }
},
"dependencies": {
"type": [ "string", "array" ],
@@ -426,9 +426,7 @@
"packageFiles": {
"type": [ "string", "array" ],
"description": "Package files that can be require()d",
- "items": {
- "type": { "$ref": "#/definitions/resourceLoaderFileInfo" }
- }
+ "items": { "$ref": "#/definitions/resourceLoaderFileInfo" }
},
"es6": {
"type": "boolean",
@@ -1320,9 +1318,9 @@
"^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
"type": "object",
"additionalProperties": false,
+ "required": [ "value" ],
"properties": {
"value": {
- "required": true
},
"merge_strategy": {
"type": "string",