| 1 | { |
| 2 | "$schema": "http://json-schema.org/schema#", |
| 3 | "description": "MediaWiki extension.json schema", |
| 4 | "definitions": { |
| 5 | "resourceLoaderFileInfo": { |
| 6 | "oneOf": [ |
| 7 | { |
| 8 | "type": "string", |
| 9 | "description": "The name of the file" |
| 10 | }, |
| 11 | { |
| 12 | "type": "object", |
| 13 | "required": [ "name" ], |
| 14 | "properties": { |
| 15 | "name": { |
| 16 | "type": "string", |
| 17 | "description": "The name of the file" |
| 18 | }, |
| 19 | "type": { |
| 20 | "type": "string", |
| 21 | "description": "The type of the file. The default is to detect it from the extension", |
| 22 | "enum": [ "script", "script-vue", "data", "text" ] |
| 23 | }, |
| 24 | "main": { |
| 25 | "type": "boolean", |
| 26 | "description": "Used to indicate the main script in a package" |
| 27 | }, |
| 28 | "content": { |
| 29 | "type": "string", |
| 30 | "description": "The content to use for the file" |
| 31 | }, |
| 32 | "file": { |
| 33 | "type": "string", |
| 34 | "description": "The relative path to the file" |
| 35 | }, |
| 36 | "callback": { |
| 37 | "type": [ "string", "array" ], |
| 38 | "description": "A PHP method to call for the file contents" |
| 39 | }, |
| 40 | "callbackParam": { |
| 41 | "description": "A value to be passed as the third parameter to the callback and versionCallback" |
| 42 | }, |
| 43 | "versionCallback": { |
| 44 | "type": [ "string", "array" ], |
| 45 | "description": "A PHP method which will return either a FilePath or the definition summary for the file" |
| 46 | }, |
| 47 | "config": { |
| 48 | "type": "array", |
| 49 | "description": "An array of config variable names to be delivered as a JSON data file", |
| 50 | "items": { |
| 51 | "type": "string" |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | ] |
| 57 | } |
| 58 | }, |
| 59 | "type": "object", |
| 60 | "required": [ |
| 61 | "manifest_version", |
| 62 | "name" |
| 63 | ], |
| 64 | "properties": { |
| 65 | "manifest_version": { |
| 66 | "type": "integer", |
| 67 | "description": "Version of the extension.json schema the extension.json file is in." |
| 68 | }, |
| 69 | "name": { |
| 70 | "type": "string", |
| 71 | "description": "The extension's canonical name." |
| 72 | }, |
| 73 | "namemsg": { |
| 74 | "type": "string", |
| 75 | "description": "i18n message key of the extension's name." |
| 76 | }, |
| 77 | "type": { |
| 78 | "type": "string", |
| 79 | "description": "The extension's type.", |
| 80 | "examples": [ |
| 81 | "api", |
| 82 | "antispam", |
| 83 | "editor", |
| 84 | "media", |
| 85 | "parserhook", |
| 86 | "semantic", |
| 87 | "skin", |
| 88 | "specialpage", |
| 89 | "variable", |
| 90 | "wikibase", |
| 91 | "other" |
| 92 | ], |
| 93 | "default": "other" |
| 94 | }, |
| 95 | "author": { |
| 96 | "type": [ |
| 97 | "string", |
| 98 | "array" |
| 99 | ], |
| 100 | "description": "Extension's authors.", |
| 101 | "items": { |
| 102 | "type": "string" |
| 103 | } |
| 104 | }, |
| 105 | "version": { |
| 106 | "type": "string", |
| 107 | "description": "The version of this release of the extension." |
| 108 | }, |
| 109 | "url": { |
| 110 | "type": "string", |
| 111 | "description": "URL to the homepage for the extension.", |
| 112 | "format": "uri-reference" |
| 113 | }, |
| 114 | "description": { |
| 115 | "type": "string", |
| 116 | "description": "Raw description of the extension." |
| 117 | }, |
| 118 | "descriptionmsg": { |
| 119 | "type": "string", |
| 120 | "description": "Message key for a i18n message describing the extension." |
| 121 | }, |
| 122 | "license-name": { |
| 123 | "type": "string", |
| 124 | "description": "SPDX identifier for the license under which the extension is released." |
| 125 | }, |
| 126 | "requires": { |
| 127 | "type": "object", |
| 128 | "description": "Indicates what versions of PHP, MediaWiki core, extensions or skins are required. This syntax may be extended in the future, for example to check dependencies between other services.", |
| 129 | "additionalProperties": false, |
| 130 | "properties": { |
| 131 | "MediaWiki": { |
| 132 | "type": "string", |
| 133 | "description": "Version constraint string against MediaWiki core." |
| 134 | }, |
| 135 | "platform": { |
| 136 | "type": "object", |
| 137 | "description": "Indicates version constraints against platform services.", |
| 138 | "additionalProperties": false, |
| 139 | "properties": { |
| 140 | "php": { |
| 141 | "type": "string", |
| 142 | "description": "Version constraint string against PHP." |
| 143 | }, |
| 144 | "ability-shell": { |
| 145 | "type": "boolean", |
| 146 | "default": false, |
| 147 | "description": "Whether this extension requires shell access." |
| 148 | } |
| 149 | }, |
| 150 | "patternProperties": { |
| 151 | "^ext-": { |
| 152 | "type": "string", |
| 153 | "description": "Required PHP extension.", |
| 154 | "enum": [ "*" ] |
| 155 | } |
| 156 | } |
| 157 | }, |
| 158 | "extensions": { |
| 159 | "type": "object", |
| 160 | "description": "Set of version constraint strings against specific extensions." |
| 161 | }, |
| 162 | "skins": { |
| 163 | "type": "object", |
| 164 | "description": "Set of version constraint strings against specific skins." |
| 165 | } |
| 166 | } |
| 167 | }, |
| 168 | "suggests": { |
| 169 | "type": "object", |
| 170 | "description": "Indicates what versions of PHP and MediaWiki extensions or skins are optional suggestions. This syntax may be extended in the future, for example to check dependencies between other services.", |
| 171 | "additionalProperties": false, |
| 172 | "properties": { |
| 173 | "platform": { |
| 174 | "type": "object", |
| 175 | "description": "Indicates optional version constraints against platform services.", |
| 176 | "additionalProperties": false, |
| 177 | "properties": { |
| 178 | "php": { |
| 179 | "type": "string", |
| 180 | "description": "Optional version constraint string against PHP." |
| 181 | }, |
| 182 | "ability-shell": { |
| 183 | "type": "boolean", |
| 184 | "default": false, |
| 185 | "description": "Whether this extension requires shell access." |
| 186 | } |
| 187 | }, |
| 188 | "patternProperties": { |
| 189 | "^ext-": { |
| 190 | "type": "string", |
| 191 | "description": "Optional PHP extension.", |
| 192 | "enum": [ "*" ] |
| 193 | } |
| 194 | } |
| 195 | }, |
| 196 | "extensions": { |
| 197 | "type": "object", |
| 198 | "description": "Set of optional version constraint strings against specific extensions." |
| 199 | }, |
| 200 | "skins": { |
| 201 | "type": "object", |
| 202 | "description": "Set of optional version constraint strings against specific skins." |
| 203 | } |
| 204 | } |
| 205 | }, |
| 206 | "dev-requires": { |
| 207 | "type": "object", |
| 208 | "description": "Indicates what dependencies are required for development purposes such as running tests. This syntax may be extended in the future.", |
| 209 | "additionalProperties": false, |
| 210 | "properties": { |
| 211 | "MediaWiki": { |
| 212 | "type": "string", |
| 213 | "description": "Version constraint string against MediaWiki core." |
| 214 | }, |
| 215 | "platform": { |
| 216 | "type": "object", |
| 217 | "description": "Indicates version constraints against platform services.", |
| 218 | "additionalProperties": false, |
| 219 | "properties": { |
| 220 | "php": { |
| 221 | "type": "string", |
| 222 | "description": "Version constraint string against PHP." |
| 223 | }, |
| 224 | "ability-shell": { |
| 225 | "type": "boolean", |
| 226 | "default": false, |
| 227 | "description": "Whether this extension requires shell access." |
| 228 | } |
| 229 | }, |
| 230 | "patternProperties": { |
| 231 | "^ext-": { |
| 232 | "type": "string", |
| 233 | "description": "Required PHP extension.", |
| 234 | "enum": [ "*" ] |
| 235 | } |
| 236 | } |
| 237 | }, |
| 238 | "extensions": { |
| 239 | "type": "object", |
| 240 | "description": "Set of version constraint strings against specific extensions." |
| 241 | }, |
| 242 | "skins": { |
| 243 | "type": "object", |
| 244 | "description": "Set of version constraint strings against specific skins." |
| 245 | } |
| 246 | } |
| 247 | }, |
| 248 | "ResourceFileModulePaths": { |
| 249 | "type": "object", |
| 250 | "description": "Default paths to use for all ResourceLoader file modules", |
| 251 | "additionalProperties": false, |
| 252 | "properties": { |
| 253 | "localBasePath": { |
| 254 | "type": "string", |
| 255 | "description": "Base path to prepend to all local paths, relative to current directory" |
| 256 | }, |
| 257 | "remoteExtPath": { |
| 258 | "type": "string", |
| 259 | "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath" |
| 260 | }, |
| 261 | "remoteSkinPath": { |
| 262 | "type": "string", |
| 263 | "description": "Base path to prepend to all remote paths, relative to $wgStylePath" |
| 264 | } |
| 265 | } |
| 266 | }, |
| 267 | "ResourceModules": { |
| 268 | "type": "object", |
| 269 | "description": "ResourceLoader modules to register", |
| 270 | "patternProperties": { |
| 271 | "^[a-zA-Z0-9-\\.]+$": { |
| 272 | "type": "object", |
| 273 | "anyOf": [ |
| 274 | { |
| 275 | "description": "A FileModule definition", |
| 276 | "additionalProperties": false, |
| 277 | "properties": { |
| 278 | "localBasePath": { |
| 279 | "type": "string", |
| 280 | "description": "Base path to prepend to all local paths in $options. Defaults to $IP" |
| 281 | }, |
| 282 | "remoteBasePath": { |
| 283 | "type": "string", |
| 284 | "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath" |
| 285 | }, |
| 286 | "remoteExtPath": { |
| 287 | "type": "string", |
| 288 | "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath" |
| 289 | }, |
| 290 | "skipFunction": { |
| 291 | "type": "string", |
| 292 | "description": "Path to a file containing a JavaScript \"skip function\", if desired." |
| 293 | }, |
| 294 | "scripts": { |
| 295 | "type": [ "string", "array" ], |
| 296 | "description": "Scripts to always include. Array of file paths or package file objects.", |
| 297 | "items": { "$ref": "#/definitions/resourceLoaderFileInfo" } |
| 298 | }, |
| 299 | "languageScripts": { |
| 300 | "type": "object", |
| 301 | "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))", |
| 302 | "patternProperties": { |
| 303 | "^[a-zA-Z0-9-]{2,}$": { |
| 304 | "type": [ |
| 305 | "string", |
| 306 | "array" |
| 307 | ], |
| 308 | "items": { "$ref": "#/definitions/resourceLoaderFileInfo" } |
| 309 | } |
| 310 | } |
| 311 | }, |
| 312 | "skinScripts": { |
| 313 | "type": "object", |
| 314 | "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)", |
| 315 | "patternProperties": { |
| 316 | ".+": { |
| 317 | "type": [ |
| 318 | "string", |
| 319 | "array" |
| 320 | ], |
| 321 | "items": { "$ref": "#/definitions/resourceLoaderFileInfo" } |
| 322 | } |
| 323 | } |
| 324 | }, |
| 325 | "debugScripts": { |
| 326 | "type": [ "string", "array" ], |
| 327 | "description": "Scripts to include in debug contexts", |
| 328 | "items": { |
| 329 | "$ref": "#/definitions/resourceLoaderFileInfo" |
| 330 | } |
| 331 | }, |
| 332 | "dependencies": { |
| 333 | "type": [ "string", "array" ], |
| 334 | "description": "Modules which must be loaded before this module", |
| 335 | "items": { |
| 336 | "type": "string" |
| 337 | } |
| 338 | }, |
| 339 | "styles": { |
| 340 | "type": [ "string", "array", "object" ], |
| 341 | "description": "Styles to always load", |
| 342 | "items": { |
| 343 | "type": "string" |
| 344 | } |
| 345 | }, |
| 346 | "skinStyles": { |
| 347 | "type": "object", |
| 348 | "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))", |
| 349 | "patternProperties": { |
| 350 | ".+": { |
| 351 | "type": [ |
| 352 | "string", |
| 353 | "array" |
| 354 | ], |
| 355 | "items": { |
| 356 | "type": "string" |
| 357 | } |
| 358 | } |
| 359 | } |
| 360 | }, |
| 361 | "messages": { |
| 362 | "type": [ "string", "array" ], |
| 363 | "description": "Messages to always load", |
| 364 | "items": { |
| 365 | "type": "string" |
| 366 | } |
| 367 | }, |
| 368 | "group": { |
| 369 | "type": "string", |
| 370 | "description": "Group with which this module should be loaded" |
| 371 | }, |
| 372 | "deprecated": { |
| 373 | "type": [ "object", "string", "boolean" ], |
| 374 | "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." |
| 375 | }, |
| 376 | "position": { |
| 377 | "type": "string", |
| 378 | "description": "Position on the page to load this module at (unused since MediaWiki 1.29)", |
| 379 | "enum": [ |
| 380 | "bottom", |
| 381 | "top" |
| 382 | ] |
| 383 | }, |
| 384 | "templates": { |
| 385 | "type": [ "object", "array" ], |
| 386 | "description": "Templates to be loaded for client-side usage" |
| 387 | }, |
| 388 | "targets": { |
| 389 | "type": [ "string", "array" ], |
| 390 | "description": "ResourceLoader target the module can run on (unused since MediaWiki 1.42)", |
| 391 | "items": { |
| 392 | "type": "string" |
| 393 | } |
| 394 | }, |
| 395 | "noflip": { |
| 396 | "type": "boolean", |
| 397 | "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." |
| 398 | }, |
| 399 | "packageFiles": { |
| 400 | "type": [ "string", "array" ], |
| 401 | "description": "Package files that can be require()d", |
| 402 | "items": { |
| 403 | "$ref": "#/definitions/resourceLoaderFileInfo" |
| 404 | } |
| 405 | }, |
| 406 | "es6": { |
| 407 | "type": "boolean", |
| 408 | "description": "Deprecated flag as to whether this module requires an ES6-capable browser; ignored since MediaWiki 1.41. Default is true." |
| 409 | }, |
| 410 | "skipStructureTest": { |
| 411 | "type": "boolean", |
| 412 | "description": "Whether to skip ResourcesTest::testRespond()" |
| 413 | } |
| 414 | } |
| 415 | }, |
| 416 | { |
| 417 | "description": "A WikiModule definition", |
| 418 | "additionalProperties": false, |
| 419 | "properties": { |
| 420 | "class": { |
| 421 | "type": "string" |
| 422 | }, |
| 423 | "group": { |
| 424 | "type": "string", |
| 425 | "description": "Group with which this module should be loaded" |
| 426 | }, |
| 427 | "position": { |
| 428 | "type": "string", |
| 429 | "description": "Position on the page to load this module at (unused since MediaWiki 1.29)", |
| 430 | "enum": [ |
| 431 | "bottom", |
| 432 | "top" |
| 433 | ] |
| 434 | }, |
| 435 | "targets": { |
| 436 | "type": [ "string", "array" ], |
| 437 | "description": "ResourceLoader target the module can run on (unused since MediaWiki 1.42)", |
| 438 | "items": { |
| 439 | "type": "string" |
| 440 | } |
| 441 | }, |
| 442 | "scripts": { |
| 443 | "type": "array", |
| 444 | "description": "A list of on-wiki pages containing JavaScript that should be loaded", |
| 445 | "items": { |
| 446 | "type": "string" |
| 447 | } |
| 448 | }, |
| 449 | "styles": { |
| 450 | "type": "array", |
| 451 | "description": "A list of on-wiki pages containing CSS that should be loaded", |
| 452 | "items": { |
| 453 | "type": "string" |
| 454 | } |
| 455 | } |
| 456 | } |
| 457 | }, |
| 458 | { |
| 459 | "description": "An ImageModule definition", |
| 460 | "additionalProperties": false, |
| 461 | "properties": { |
| 462 | "class": { |
| 463 | "type": "string" |
| 464 | }, |
| 465 | "localBasePath": { |
| 466 | "type": "string", |
| 467 | "description": "Base path to prepend to all local paths. Defaults to $IP" |
| 468 | }, |
| 469 | "defaultColor": { |
| 470 | "type": "string" |
| 471 | }, |
| 472 | "data": { |
| 473 | "type": "string" |
| 474 | }, |
| 475 | "prefix": { |
| 476 | "type": "string" |
| 477 | }, |
| 478 | "selector": { |
| 479 | "type": "string" |
| 480 | }, |
| 481 | "selectorWithoutVariant": { |
| 482 | "type": "string" |
| 483 | }, |
| 484 | "selectorWithVariant": { |
| 485 | "type": "string" |
| 486 | }, |
| 487 | "useDataURI": { |
| 488 | "type": "boolean" |
| 489 | }, |
| 490 | "variants": { |
| 491 | "type": "object" |
| 492 | }, |
| 493 | "images": { |
| 494 | "type": "object" |
| 495 | }, |
| 496 | "position": { |
| 497 | "type": "string", |
| 498 | "description": "Position on the page to load this module at (unused since MediaWiki 1.29)", |
| 499 | "enum": [ |
| 500 | "top", |
| 501 | "bottom" |
| 502 | ] |
| 503 | } |
| 504 | } |
| 505 | }, |
| 506 | { |
| 507 | "description": "An arbitrary ResourceLoader Module definition by class", |
| 508 | "properties": { |
| 509 | "class": { |
| 510 | "type": "string", |
| 511 | "pattern": "^(?!ResourceLoader(File|Image|Wiki)Module).*$" |
| 512 | } |
| 513 | }, |
| 514 | "required": [ "class" ] |
| 515 | } |
| 516 | ] |
| 517 | } |
| 518 | } |
| 519 | }, |
| 520 | "ResourceModuleSkinStyles": { |
| 521 | "type": "object", |
| 522 | "description": "ResourceLoader modules for custom skin styles" |
| 523 | }, |
| 524 | "ResourceLoaderSources": { |
| 525 | "type": "object", |
| 526 | "description": "ResourceLoader sources to register" |
| 527 | }, |
| 528 | "SkinLessImportPaths": { |
| 529 | "type": "object", |
| 530 | "description": "Path to the skin-specific LESS import directory, keyed by skin name. Can be used to define skin-specific LESS variables." |
| 531 | }, |
| 532 | "QUnitTestModule": { |
| 533 | "type": "object", |
| 534 | "description": "A ResourceLoader FileModule definition registered only when wgEnableJavaScriptTest is true.", |
| 535 | "additionalProperties": false, |
| 536 | "properties": { |
| 537 | "localBasePath": { |
| 538 | "type": "string", |
| 539 | "description": "Prefix for local paths to files in $options, relative to extension directory" |
| 540 | }, |
| 541 | "remoteExtPath": { |
| 542 | "type": "string", |
| 543 | "description": "Prefix for URLs to files in $options, relative to $wgExtensionAssetsPath" |
| 544 | }, |
| 545 | "remoteSkinPath": { |
| 546 | "type": "string", |
| 547 | "description": "Prefix for URLs to files in $options, relative to $wgStylePath" |
| 548 | }, |
| 549 | "scripts": { |
| 550 | "type": [ "string", "array" ], |
| 551 | "description": "Scripts to include (array of file paths)", |
| 552 | "items": { |
| 553 | "type": "string" |
| 554 | } |
| 555 | }, |
| 556 | "packageFiles": { |
| 557 | "type": [ "string", "array" ], |
| 558 | "description": "Package files that can be require()d", |
| 559 | "items": { |
| 560 | "type": [ "string", "object" ] |
| 561 | } |
| 562 | }, |
| 563 | "dependencies": { |
| 564 | "type": [ "string", "array" ], |
| 565 | "description": "Modules which must be loaded before this module", |
| 566 | "items": { |
| 567 | "type": "string" |
| 568 | } |
| 569 | }, |
| 570 | "styles": { |
| 571 | "type": [ "string", "array", "object" ], |
| 572 | "description": "Styles to load", |
| 573 | "items": { |
| 574 | "type": "string" |
| 575 | } |
| 576 | }, |
| 577 | "templates": { |
| 578 | "type": [ "object", "array" ], |
| 579 | "description": "Templates to be loaded for client-side usage", |
| 580 | "items": { |
| 581 | "type": "string" |
| 582 | } |
| 583 | }, |
| 584 | "messages": { |
| 585 | "type": [ "string", "array" ], |
| 586 | "description": "Messages to load", |
| 587 | "items": { |
| 588 | "type": "string" |
| 589 | } |
| 590 | } |
| 591 | } |
| 592 | }, |
| 593 | "MessagePosterModule": { |
| 594 | "type": "object", |
| 595 | "description": "Additional JavaScript files and modules that will register content models with mw.messagePoster.factory.", |
| 596 | "additionalProperties": false, |
| 597 | "properties": { |
| 598 | "localBasePath": { |
| 599 | "type": "string", |
| 600 | "description": "Prefix for local paths to files in $options, relative to extension directory" |
| 601 | }, |
| 602 | "scripts": { |
| 603 | "type": "array", |
| 604 | "description": "Scripts to include as array of file paths", |
| 605 | "items": { |
| 606 | "type": "string" |
| 607 | } |
| 608 | }, |
| 609 | "dependencies": { |
| 610 | "type": "array", |
| 611 | "description": "Modules which must load before these files", |
| 612 | "items": { |
| 613 | "type": "string" |
| 614 | } |
| 615 | } |
| 616 | } |
| 617 | }, |
| 618 | "ConfigRegistry": { |
| 619 | "type": "object", |
| 620 | "description": "Registry of factory functions to create Config objects" |
| 621 | }, |
| 622 | "SessionProviders": { |
| 623 | "type": "object", |
| 624 | "description": "Session providers" |
| 625 | }, |
| 626 | "AuthManagerAutoConfig": { |
| 627 | "type": "object", |
| 628 | "description": "AuthManager auto-configuration", |
| 629 | "additionalProperties": false, |
| 630 | "properties": { |
| 631 | "preauth": { |
| 632 | "type": "object", |
| 633 | "description": "Pre-authentication providers" |
| 634 | }, |
| 635 | "primaryauth": { |
| 636 | "type": "object", |
| 637 | "description": "Primary authentication providers" |
| 638 | }, |
| 639 | "secondaryauth": { |
| 640 | "type": "object", |
| 641 | "description": "Secondary authentication providers" |
| 642 | } |
| 643 | } |
| 644 | }, |
| 645 | "CentralIdLookupProviders": { |
| 646 | "type": "object", |
| 647 | "description": "Central ID lookup providers" |
| 648 | }, |
| 649 | "namespaces": { |
| 650 | "type": "array", |
| 651 | "description": "Method to add extra namespaces", |
| 652 | "items": { |
| 653 | "type": "object", |
| 654 | "properties": { |
| 655 | "id": { |
| 656 | "type": "integer" |
| 657 | }, |
| 658 | "constant": { |
| 659 | "type": "string" |
| 660 | }, |
| 661 | "name": { |
| 662 | "type": "string" |
| 663 | }, |
| 664 | "gender": { |
| 665 | "type": "object", |
| 666 | "properties": { |
| 667 | "male": { |
| 668 | "type": "string" |
| 669 | }, |
| 670 | "female": { |
| 671 | "type": "string" |
| 672 | } |
| 673 | } |
| 674 | }, |
| 675 | "subpages": { |
| 676 | "type": "boolean", |
| 677 | "default": false |
| 678 | }, |
| 679 | "content": { |
| 680 | "type": "boolean", |
| 681 | "default": false |
| 682 | }, |
| 683 | "defaultcontentmodel": { |
| 684 | "type": "string" |
| 685 | }, |
| 686 | "protection": { |
| 687 | "type": [ "string", "array" ], |
| 688 | "description": "Userright(s) required to edit in this namespace" |
| 689 | }, |
| 690 | "capitallinkoverride": { |
| 691 | "type": "boolean", |
| 692 | "description": "Set $wgCapitalLinks on a per-namespace basis" |
| 693 | }, |
| 694 | "conditional": { |
| 695 | "type": "boolean", |
| 696 | "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)", |
| 697 | "default": false |
| 698 | }, |
| 699 | "movable": { |
| 700 | "type": "boolean", |
| 701 | "description": "Whether it is possible to move pages in this namespace", |
| 702 | "default": true |
| 703 | }, |
| 704 | "includable": { |
| 705 | "type": "boolean", |
| 706 | "description": "Whether it is possible to include/transclude pages in this namespace", |
| 707 | "default": true |
| 708 | } |
| 709 | }, |
| 710 | "required": [ "id", "constant", "name" ] |
| 711 | } |
| 712 | }, |
| 713 | "TrackingCategories": { |
| 714 | "type": "array", |
| 715 | "description": "Tracking category message keys", |
| 716 | "items": { |
| 717 | "type": "string" |
| 718 | } |
| 719 | }, |
| 720 | "DefaultUserOptions": { |
| 721 | "type": "object", |
| 722 | "description": "Default values of user options" |
| 723 | }, |
| 724 | "ConditionalUserOptions": { |
| 725 | "type": "object", |
| 726 | "description": "Conditional defaults of user options" |
| 727 | }, |
| 728 | "HiddenPrefs": { |
| 729 | "type": "array", |
| 730 | "description": "Preferences users cannot set", |
| 731 | "items": { |
| 732 | "type": "string" |
| 733 | } |
| 734 | }, |
| 735 | "GroupPermissions": { |
| 736 | "type": "object", |
| 737 | "description": "Default permissions to give to user groups", |
| 738 | "patternProperties": { |
| 739 | "^[a-z]+$": { |
| 740 | "type": "object", |
| 741 | "patternProperties": { |
| 742 | "^[a-z]+$": { |
| 743 | "type": "boolean" |
| 744 | } |
| 745 | } |
| 746 | } |
| 747 | } |
| 748 | }, |
| 749 | "PrivilegedGroups": { |
| 750 | "type": "array", |
| 751 | "description": "User groups that should be considered privileged", |
| 752 | "items": { |
| 753 | "type": "string" |
| 754 | } |
| 755 | }, |
| 756 | "RevokePermissions": { |
| 757 | "type": "object", |
| 758 | "description": "Default permissions to revoke from user groups", |
| 759 | "patternProperties": { |
| 760 | "^[a-z]+$": { |
| 761 | "type": "object", |
| 762 | "patternProperties": { |
| 763 | "^[a-z]+$": { |
| 764 | "type": "boolean" |
| 765 | } |
| 766 | } |
| 767 | } |
| 768 | } |
| 769 | }, |
| 770 | "GrantPermissions": { |
| 771 | "type": "object", |
| 772 | "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'", |
| 773 | "patternProperties": { |
| 774 | "^[a-z]+$": { |
| 775 | "type": "object", |
| 776 | "patternProperties": { |
| 777 | "^[a-z]+$": { |
| 778 | "type": "boolean" |
| 779 | } |
| 780 | } |
| 781 | } |
| 782 | } |
| 783 | }, |
| 784 | "GrantPermissionGroups": { |
| 785 | "type": "object", |
| 786 | "description": "Map of grants to their UI grouping", |
| 787 | "patternProperties": { |
| 788 | "^[a-z]+$": { |
| 789 | "type": "string" |
| 790 | } |
| 791 | } |
| 792 | }, |
| 793 | "GrantRiskGroups": { |
| 794 | "type": "object", |
| 795 | "description": "Map of grants to their risk category", |
| 796 | "patternProperties": { |
| 797 | "^[a-z]+$": { |
| 798 | "type": "string" |
| 799 | } |
| 800 | } |
| 801 | }, |
| 802 | "ImplicitGroups": { |
| 803 | "type": "array", |
| 804 | "description": "Implicit groups" |
| 805 | }, |
| 806 | "GroupsAddToSelf": { |
| 807 | "type": "object", |
| 808 | "description": "Groups a user can add to themselves" |
| 809 | }, |
| 810 | "GroupsRemoveFromSelf": { |
| 811 | "type": "object", |
| 812 | "description": "Groups a user can remove from themselves" |
| 813 | }, |
| 814 | "AddGroups": { |
| 815 | "type": "object", |
| 816 | "description": "Groups a user can add to users" |
| 817 | }, |
| 818 | "RemoveGroups": { |
| 819 | "type": "object", |
| 820 | "description": "Groups a user can remove from users" |
| 821 | }, |
| 822 | "AvailableRights": { |
| 823 | "type": "array", |
| 824 | "description": "User rights added by the extension", |
| 825 | "items": { |
| 826 | "type": "string" |
| 827 | } |
| 828 | }, |
| 829 | "ContentHandlers": { |
| 830 | "type": "object", |
| 831 | "description": "Mapping of model ID to class name or an ObjectFactory specification.", |
| 832 | "patternProperties": { |
| 833 | "^[A-Za-z]+$": { |
| 834 | "oneOf": [ |
| 835 | { |
| 836 | "type": "string", |
| 837 | "description": "Class name of the ContentHandler." |
| 838 | }, |
| 839 | { |
| 840 | "type": "object", |
| 841 | "description": "ObjectFactory specification of the ContentHandler." |
| 842 | } |
| 843 | ] |
| 844 | } |
| 845 | } |
| 846 | }, |
| 847 | "RateLimits": { |
| 848 | "type": "object", |
| 849 | "description": "Rate limits" |
| 850 | }, |
| 851 | "RecentChangesFlags": { |
| 852 | "type": "object", |
| 853 | "description": "Flags (letter symbols) shown on RecentChanges pages" |
| 854 | }, |
| 855 | "MediaHandlers": { |
| 856 | "type": "object", |
| 857 | "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name." |
| 858 | }, |
| 859 | "ExtensionFunctions": { |
| 860 | "type": [ |
| 861 | "array", |
| 862 | "string" |
| 863 | ], |
| 864 | "description": "Function to call after setup has finished", |
| 865 | "items": { |
| 866 | "type": "string" |
| 867 | } |
| 868 | }, |
| 869 | "ExtensionMessagesFiles": { |
| 870 | "type": "object", |
| 871 | "description": "File paths containing PHP internationalization data" |
| 872 | }, |
| 873 | "RestModuleFiles": { |
| 874 | "type": "array", |
| 875 | "description": "Paths of REST API module files" |
| 876 | }, |
| 877 | "MessagesDirs": { |
| 878 | "type": "object", |
| 879 | "description": "Directory paths containing JSON internationalization data" |
| 880 | }, |
| 881 | "TranslationAliasesDirs": { |
| 882 | "type": "object", |
| 883 | "description": "Message directories containing JSON files for localisation of special page aliases" |
| 884 | }, |
| 885 | "ExtensionEntryPointListFiles": { |
| 886 | "type": "object" |
| 887 | }, |
| 888 | "SpecialPages": { |
| 889 | "type": "object", |
| 890 | "description": "SpecialPages implemented in this extension (mapping of page name to class name or to ObjectFactory spec, or factory callback)" |
| 891 | }, |
| 892 | "AutoloadNamespaces": { |
| 893 | "type": "object", |
| 894 | "description": "Mapping of PSR-4 compliant namespace to directory for autoloading", |
| 895 | "patternProperties": { |
| 896 | "^[A-Za-z0-9\\\\]+\\\\$": { |
| 897 | "type": "string" |
| 898 | } |
| 899 | }, |
| 900 | "additionalProperties": false |
| 901 | }, |
| 902 | "AutoloadClasses": { |
| 903 | "type": "object" |
| 904 | }, |
| 905 | "TestAutoloadNamespaces": { |
| 906 | "type": "object", |
| 907 | "description": "Mapping of PSR-4 compliant namespace to directory for autoloading to be used in tests", |
| 908 | "patternProperties": { |
| 909 | "^[A-Za-z0-9\\\\]+\\\\$": { |
| 910 | "type": "string" |
| 911 | } |
| 912 | }, |
| 913 | "additionalProperties": false |
| 914 | }, |
| 915 | "TestAutoloadClasses": { |
| 916 | "type": "object" |
| 917 | }, |
| 918 | "Hooks": { |
| 919 | "type": "object", |
| 920 | "description": "Hooks this extension uses (mapping of hook name to callback)", |
| 921 | "additionalProperties": { |
| 922 | "oneOf": [ |
| 923 | { |
| 924 | "type": "string", |
| 925 | "description": "A global function name, static function name, or the name of a property in HookHandlers" |
| 926 | }, |
| 927 | { |
| 928 | "type": "object", |
| 929 | "description": "A handler specification", |
| 930 | "properties": { |
| 931 | "handler": { |
| 932 | "type": "string", |
| 933 | "description": "The name of a property in HookHandlers" |
| 934 | }, |
| 935 | "deprecated": { |
| 936 | "type": "boolean", |
| 937 | "description": "The deprecation acknowledgement flag for the handler. If this is true, calls will be filtered if the relevant hook is deprecated." |
| 938 | } |
| 939 | }, |
| 940 | "required": [ |
| 941 | "handler" |
| 942 | ] |
| 943 | }, |
| 944 | { |
| 945 | "type": "array", |
| 946 | "description": "An ordered array of handlers", |
| 947 | "items": { |
| 948 | "oneOf": [ |
| 949 | { |
| 950 | "type": "string", |
| 951 | "description": "A global function name, static function name, or the name of a property in HookHandlers" |
| 952 | }, |
| 953 | { |
| 954 | "type": "object", |
| 955 | "description": "A handler specification", |
| 956 | "properties": { |
| 957 | "handler": { |
| 958 | "type": "string", |
| 959 | "description": "The name of a property in HookHandlers" |
| 960 | }, |
| 961 | "deprecated": { |
| 962 | "type": "boolean", |
| 963 | "description": "The deprecation acknowledgement flag for the handler. If this is true, calls will be filtered if the relevant hook is deprecated." |
| 964 | } |
| 965 | }, |
| 966 | "required": [ |
| 967 | "handler" |
| 968 | ] |
| 969 | } |
| 970 | ] |
| 971 | } |
| 972 | } |
| 973 | ] |
| 974 | } |
| 975 | }, |
| 976 | "HookHandlers": { |
| 977 | "type": "object", |
| 978 | "description": "ObjectFactory specifications for new-style hook handlers", |
| 979 | "additionalProperties": { |
| 980 | "type": "object", |
| 981 | "properties": { |
| 982 | "factory": { |
| 983 | "type": [ "string", "array" ], |
| 984 | "description": "A factory function to be called to create the handler for this hook" |
| 985 | }, |
| 986 | "class": { |
| 987 | "type": "string", |
| 988 | "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified." |
| 989 | }, |
| 990 | "args": { |
| 991 | "type": "array", |
| 992 | "description": "The arguments passed to the handler constructor or factory" |
| 993 | }, |
| 994 | "services": { |
| 995 | "type": "array", |
| 996 | "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'." |
| 997 | }, |
| 998 | "optional_services": { |
| 999 | "type": "array", |
| 1000 | "description": "If supplied and non-empty, the named services are requested from the service container and appended after 'services' if the services are available; null is passed if the services are not available." |
| 1001 | } |
| 1002 | } |
| 1003 | } |
| 1004 | }, |
| 1005 | "DeprecatedHooks": { |
| 1006 | "type": "object", |
| 1007 | "description": "Hooks which are defined and deprecated by the extension", |
| 1008 | "additionalProperties": { |
| 1009 | "type": "object", |
| 1010 | "properties": { |
| 1011 | "deprecatedVersion": { |
| 1012 | "type": "string", |
| 1013 | "description": "The version in which the hook was deprecated" |
| 1014 | }, |
| 1015 | "component": { |
| 1016 | "type": "string", |
| 1017 | "description": "The component to which the deprecated version relates. If omitted, the extension name will be used." |
| 1018 | }, |
| 1019 | "silent": { |
| 1020 | "type": "boolean", |
| 1021 | "description": "If true, no warning is raised when the hook is called or when a handler is declared. However, call filtering is still activated." |
| 1022 | } |
| 1023 | }, |
| 1024 | "required": [ |
| 1025 | "deprecatedVersion" |
| 1026 | ] |
| 1027 | } |
| 1028 | }, |
| 1029 | "JobClasses": { |
| 1030 | "type": "object", |
| 1031 | "description": "Job types this extension implements (mapping of job type to class name or factory function)" |
| 1032 | }, |
| 1033 | "LogTypes": { |
| 1034 | "type": "array", |
| 1035 | "description": "List of new log types this extension uses" |
| 1036 | }, |
| 1037 | "LogRestrictions": { |
| 1038 | "type": "object" |
| 1039 | }, |
| 1040 | "FilterLogTypes": { |
| 1041 | "type": "object" |
| 1042 | }, |
| 1043 | "ActionFilteredLogs": { |
| 1044 | "type": "object", |
| 1045 | "description": "List of log types which can be filtered by log actions", |
| 1046 | "patternProperties": { |
| 1047 | "^[a-z-]+$": { |
| 1048 | "type": "object", |
| 1049 | "patternProperties": { |
| 1050 | "^[a-z-]+$": { |
| 1051 | "type": "array", |
| 1052 | "items": { |
| 1053 | "type": "string" |
| 1054 | } |
| 1055 | } |
| 1056 | } |
| 1057 | } |
| 1058 | } |
| 1059 | }, |
| 1060 | "LogNames": { |
| 1061 | "type": "object" |
| 1062 | }, |
| 1063 | "LogHeaders": { |
| 1064 | "type": "object" |
| 1065 | }, |
| 1066 | "LogActions": { |
| 1067 | "type": "object" |
| 1068 | }, |
| 1069 | "LogActionsHandlers": { |
| 1070 | "type": "object" |
| 1071 | }, |
| 1072 | "Actions": { |
| 1073 | "type": "object" |
| 1074 | }, |
| 1075 | "APIModules": { |
| 1076 | "type": "object" |
| 1077 | }, |
| 1078 | "APIFormatModules": { |
| 1079 | "type": "object" |
| 1080 | }, |
| 1081 | "APIMetaModules": { |
| 1082 | "type": "object" |
| 1083 | }, |
| 1084 | "APIPropModules": { |
| 1085 | "type": "object" |
| 1086 | }, |
| 1087 | "APIListModules": { |
| 1088 | "type": "object" |
| 1089 | }, |
| 1090 | "ValidSkinNames": { |
| 1091 | "type": "object", |
| 1092 | "description": "Mapping of skin canonical names to PHP class name using the Object Factory specification. Or historically, the human readable name of the skin." |
| 1093 | }, |
| 1094 | "FeedClasses": { |
| 1095 | "type": "object", |
| 1096 | "description": "Available feeds objects" |
| 1097 | }, |
| 1098 | "SkinOOUIThemes": { |
| 1099 | "type": "object", |
| 1100 | "description": "Map of skin names to OOUI themes to use. Same format as MediaWiki\\ResourceLoader\\OOUIModule::$builtinSkinThemeMap." |
| 1101 | }, |
| 1102 | "OOUIThemePaths": { |
| 1103 | "type": "object", |
| 1104 | "description": "Map of custom OOUI theme names to paths to load them from. Same format as MediaWiki\\ResourceLoader\\OOUIModule::$builtinThemePaths.", |
| 1105 | "patternProperties": { |
| 1106 | "^[A-Za-z]+$": { |
| 1107 | "type": "object", |
| 1108 | "additionalProperties": false, |
| 1109 | "properties": { |
| 1110 | "scripts": { |
| 1111 | "type": "string", |
| 1112 | "description": "Path to script file." |
| 1113 | }, |
| 1114 | "styles": { |
| 1115 | "type": "string", |
| 1116 | "description": "Path to style files. '{module}' will be replaced with the module's name." |
| 1117 | }, |
| 1118 | "images": { |
| 1119 | "type": "string", |
| 1120 | "description": "Path to image definition files. '{module}' will be replaced with the module's name. If the files don't exist, default theme's images will be used instead." |
| 1121 | } |
| 1122 | } |
| 1123 | } |
| 1124 | } |
| 1125 | }, |
| 1126 | "SkinCodexThemes": { |
| 1127 | "type": "object", |
| 1128 | "description": "Name of the Codex theme to use for each skin, keyed by skin name. Skins not specified here default to the wikimedia-ui theme." |
| 1129 | }, |
| 1130 | "PasswordPolicy": { |
| 1131 | "type": "object", |
| 1132 | "description": "Password policies" |
| 1133 | }, |
| 1134 | "FileExtensions": { |
| 1135 | "type": "array", |
| 1136 | "description": "Preferred file extensions for uploading", |
| 1137 | "items": { |
| 1138 | "type": "string" |
| 1139 | } |
| 1140 | }, |
| 1141 | "RawHtmlMessages": { |
| 1142 | "type": "array", |
| 1143 | "description": "Messages which are rendered as raw HTML", |
| 1144 | "items": { |
| 1145 | "type": "string" |
| 1146 | } |
| 1147 | }, |
| 1148 | "LateJSConfigVarNames": { |
| 1149 | "type": "array", |
| 1150 | "description": "Names of JS config vars (as used in MakeGlobalVariablesScript hook or in ParserOutput::setJsConfigVar) that may be set from the end of the HTML body instead of the HTML head, to improve page load time. In JavaScript, these variables should be accessed via mw.hook('wikipage.content').", |
| 1151 | "items": { |
| 1152 | "type": "string" |
| 1153 | } |
| 1154 | }, |
| 1155 | "DatabaseVirtualDomains": { |
| 1156 | "type": "array", |
| 1157 | "description": "Names of virtual domains that are used to get a db connection.", |
| 1158 | "items": { |
| 1159 | "type": "string" |
| 1160 | } |
| 1161 | }, |
| 1162 | "ReauthenticateTime": { |
| 1163 | "type": "object", |
| 1164 | "patternProperties": { |
| 1165 | ".*": { |
| 1166 | "type": "integer" |
| 1167 | } |
| 1168 | } |
| 1169 | }, |
| 1170 | "callback": { |
| 1171 | "type": [ |
| 1172 | "array", |
| 1173 | "string" |
| 1174 | ], |
| 1175 | "description": "A function to be called right after MediaWiki processes this file" |
| 1176 | }, |
| 1177 | "config": { |
| 1178 | "type": "object", |
| 1179 | "description": "Configuration options for this extension", |
| 1180 | "properties": { |
| 1181 | "_prefix": { |
| 1182 | "type": "string", |
| 1183 | "default": "wg", |
| 1184 | "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS" |
| 1185 | } |
| 1186 | }, |
| 1187 | "patternProperties": { |
| 1188 | "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": { |
| 1189 | "properties": { |
| 1190 | "_merge_strategy": { |
| 1191 | "type": "string", |
| 1192 | "enum": [ |
| 1193 | "array_replace_recursive", |
| 1194 | "array_plus_2d", |
| 1195 | "array_plus", |
| 1196 | "array_merge", |
| 1197 | "provide_default" |
| 1198 | ], |
| 1199 | "default": "array_merge" |
| 1200 | } |
| 1201 | } |
| 1202 | } |
| 1203 | } |
| 1204 | }, |
| 1205 | "SearchMappings": { |
| 1206 | "type": "object", |
| 1207 | "description": "Mapping of search canonical names (used in $wgSearchType and $wgSearchTypeAlternatives) using the Object Factory specification" |
| 1208 | }, |
| 1209 | "ServiceWiringFiles": { |
| 1210 | "type": "array", |
| 1211 | "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices" |
| 1212 | }, |
| 1213 | "RestRoutes": { |
| 1214 | "type": "array", |
| 1215 | "description": "List of route specifications to be added to the REST API", |
| 1216 | "items": { |
| 1217 | "type": "object", |
| 1218 | "properties": { |
| 1219 | "method": { |
| 1220 | "oneOf": [ |
| 1221 | { |
| 1222 | "type": "string", |
| 1223 | "description": "The HTTP method name" |
| 1224 | }, |
| 1225 | { |
| 1226 | "type": "array", |
| 1227 | "items": { |
| 1228 | "type": "string", |
| 1229 | "description": "An acceptable HTTP method name" |
| 1230 | } |
| 1231 | } |
| 1232 | ] |
| 1233 | }, |
| 1234 | "path": { |
| 1235 | "type": "string", |
| 1236 | "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}." |
| 1237 | }, |
| 1238 | "factory": { |
| 1239 | "type": [ "string", "array" ], |
| 1240 | "description": "A factory function to be called to create the handler for this route" |
| 1241 | }, |
| 1242 | "class": { |
| 1243 | "type": "string", |
| 1244 | "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified." |
| 1245 | }, |
| 1246 | "args": { |
| 1247 | "type": "array", |
| 1248 | "description": "The arguments passed to the handler constructor or factory" |
| 1249 | }, |
| 1250 | "services": { |
| 1251 | "type": "array", |
| 1252 | "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'." |
| 1253 | } |
| 1254 | } |
| 1255 | } |
| 1256 | }, |
| 1257 | "ParsoidModules": { |
| 1258 | "type": "array", |
| 1259 | "description": "List of extension modules to be registered with the Parsoid wikitext parser", |
| 1260 | "items": { |
| 1261 | "oneOf": [ |
| 1262 | { |
| 1263 | "type": "string", |
| 1264 | "description": "The fully-qualified name of a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule" |
| 1265 | }, |
| 1266 | { |
| 1267 | "type": "object", |
| 1268 | "description": "Object factory specification for a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule", |
| 1269 | "properties": { |
| 1270 | "factory": { |
| 1271 | "type": [ "string", "array" ], |
| 1272 | "description": "A factory function to be called to create an ExtensionModule. This should be omitted if a class is specified." |
| 1273 | } |
| 1274 | }, |
| 1275 | "required": [ "factory" ] |
| 1276 | }, |
| 1277 | { |
| 1278 | "type": "object", |
| 1279 | "description": "Object factory specification for a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule", |
| 1280 | "properties": { |
| 1281 | "class": { |
| 1282 | "type": "string", |
| 1283 | "description": "The fully-qualified class name of a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule. This should be omitted if a factory is specified." |
| 1284 | } |
| 1285 | }, |
| 1286 | "required": [ "class" ] |
| 1287 | }, |
| 1288 | { |
| 1289 | "type": "object", |
| 1290 | "description": "A Parsoid extension module configuration array", |
| 1291 | "properties": { |
| 1292 | "class": { |
| 1293 | "type": "null", |
| 1294 | "description": "This property must not be present in a configuration array" |
| 1295 | }, |
| 1296 | "factory": { |
| 1297 | "type": "null", |
| 1298 | "description": "This property must not be present in a configuration array" |
| 1299 | }, |
| 1300 | "domProcessors": { |
| 1301 | "type": "array", |
| 1302 | "items": { |
| 1303 | "description": "Object factory specification of a class implementing Wikimedia\\Parsoid\\Ext\\DOMProcessor" |
| 1304 | } |
| 1305 | }, |
| 1306 | "styles": { |
| 1307 | "type": "array", |
| 1308 | "items": { |
| 1309 | "type": "string", |
| 1310 | "description": "Additional ResourceLoader styles to include" |
| 1311 | } |
| 1312 | }, |
| 1313 | "annotations": { |
| 1314 | "type": "array", |
| 1315 | "items": { |
| 1316 | "type": "string", |
| 1317 | "description": "The name of an annotation tag" |
| 1318 | } |
| 1319 | }, |
| 1320 | "tags": { |
| 1321 | "type": "array", |
| 1322 | "items": { |
| 1323 | "type": "object", |
| 1324 | "description": "An extension tag", |
| 1325 | "properties": { |
| 1326 | "name": { |
| 1327 | "type": "string", |
| 1328 | "description": "The name of the extension tag" |
| 1329 | }, |
| 1330 | "handler": { |
| 1331 | "description": "An object factory specification of a class extending Wikimedia\\Parsoid\\Ext\\ExtensionTagHandler" |
| 1332 | }, |
| 1333 | "options": { |
| 1334 | "type": "object", |
| 1335 | "description": "Additional Parsoid processing configuration for this extension tag" |
| 1336 | } |
| 1337 | }, |
| 1338 | "required": [ "name" ] |
| 1339 | } |
| 1340 | } |
| 1341 | } |
| 1342 | } |
| 1343 | ] |
| 1344 | } |
| 1345 | }, |
| 1346 | "TempUserSerialProviders": { |
| 1347 | "type": "object", |
| 1348 | "description": "Map of temporary user serial provider type name to ObjectFactory spec", |
| 1349 | "patternProperties": { |
| 1350 | ".*": { |
| 1351 | "type": "object", |
| 1352 | "properties": { |
| 1353 | "factory": { |
| 1354 | "type": [ "string", "array" ], |
| 1355 | "description": "A factory function" |
| 1356 | }, |
| 1357 | "class": { |
| 1358 | "type": "string", |
| 1359 | "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified." |
| 1360 | }, |
| 1361 | "args": { |
| 1362 | "type": "array", |
| 1363 | "description": "The arguments passed to the constructor or factory" |
| 1364 | }, |
| 1365 | "services": { |
| 1366 | "type": "array", |
| 1367 | "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'." |
| 1368 | } |
| 1369 | } |
| 1370 | } |
| 1371 | } |
| 1372 | }, |
| 1373 | "TempUserSerialMappings": { |
| 1374 | "type": "object", |
| 1375 | "description": "Map of temporary user serial map type name to ObjectFactory spec", |
| 1376 | "patternProperties": { |
| 1377 | ".*": { |
| 1378 | "type": "object", |
| 1379 | "properties": { |
| 1380 | "factory": { |
| 1381 | "type": [ "string", "array" ], |
| 1382 | "description": "A factory function" |
| 1383 | }, |
| 1384 | "class": { |
| 1385 | "type": "string", |
| 1386 | "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified." |
| 1387 | }, |
| 1388 | "args": { |
| 1389 | "type": "array", |
| 1390 | "description": "The arguments passed to the constructor or factory" |
| 1391 | }, |
| 1392 | "services": { |
| 1393 | "type": "array", |
| 1394 | "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'." |
| 1395 | } |
| 1396 | } |
| 1397 | } |
| 1398 | } |
| 1399 | }, |
| 1400 | "UserOptionsStoreProviders": { |
| 1401 | "type": "object", |
| 1402 | "description": "Map of user options store providers (specs for ObjectFactory, indexed by provider name). The class should implement the UserOptionsStore interface.", |
| 1403 | "patternProperties": { |
| 1404 | ".*": { |
| 1405 | "type": "object", |
| 1406 | "properties": { |
| 1407 | "factory": { |
| 1408 | "type": [ "string", "array" ], |
| 1409 | "description": "A factory function" |
| 1410 | }, |
| 1411 | "class": { |
| 1412 | "type": "string", |
| 1413 | "description": "The fully-qualified class name of the store. This should be omitted if a factory is specified." |
| 1414 | }, |
| 1415 | "args": { |
| 1416 | "type": "array", |
| 1417 | "description": "The arguments passed to the constructor or factory" |
| 1418 | }, |
| 1419 | "services": { |
| 1420 | "type": "array", |
| 1421 | "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'." |
| 1422 | } |
| 1423 | } |
| 1424 | } |
| 1425 | } |
| 1426 | }, |
| 1427 | "UserRegistrationProviders": { |
| 1428 | "type": "object", |
| 1429 | "description": "Map of user registration timestamp providers (specs for ObjectFactory, indexed by provider name)", |
| 1430 | "patternProperties": { |
| 1431 | ".*": { |
| 1432 | "type": "object", |
| 1433 | "properties": { |
| 1434 | "class": { |
| 1435 | "type": "string", |
| 1436 | "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified." |
| 1437 | }, |
| 1438 | "args": { |
| 1439 | "type": "array", |
| 1440 | "description": "The arguments passed to the constructor or factory" |
| 1441 | }, |
| 1442 | "services": { |
| 1443 | "type": "array", |
| 1444 | "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'." |
| 1445 | } |
| 1446 | } |
| 1447 | } |
| 1448 | } |
| 1449 | }, |
| 1450 | "ForeignResourcesDir": { |
| 1451 | "type": "string", |
| 1452 | "description": "The directory holding the foreign-resources.yaml file, relative to the extension root. See https://www.mediawiki.org/wiki/Foreign_resources" |
| 1453 | }, |
| 1454 | "load_composer_autoloader": { |
| 1455 | "type": "boolean", |
| 1456 | "description": "Load the composer autoloader for this extension, if one is present" |
| 1457 | } |
| 1458 | } |
| 1459 | } |