registration: Version the extension.json schema
authorKunal Mehta <legoktm@gmail.com>
Wed, 20 May 2015 01:45:10 +0000 (18:45 -0700)
committerOri.livneh <ori@wikimedia.org>
Thu, 28 May 2015 22:20:59 +0000 (22:20 +0000)
commita1368a3d9bbeb331c8558e1159514eaccfab2352
tree98526629be2ab223fb0246f7873f1800e2dcb508
parentd7c73977729c018383f50344a5fbc2412eee299a
registration: Version the extension.json schema

Versioning the extension.json schema will allow us to make breaking changes
to the schema in a non-breaking manner.

Extensiosn and skins will set a 'manifest_version' value, stating which
version of the schema the file is written for. Processor::extractInfo() will
be  passed the version number, and can switch behavior depending upon it.

For backwards-compatability, a version number of 1 is assumed if none is set.
The validateRegistrationFile.php script will emit a warning if this is the
case.

Bug: T99344
Change-Id: I2086a1465ceaeedd1ccc6804fda2c304ad16ffa0
docs/extension.schema.json
includes/registration/ExtensionProcessor.php
includes/registration/ExtensionRegistry.php
includes/registration/Processor.php
maintenance/convertExtensionToRegistration.php
maintenance/validateRegistrationFile.php
tests/phpunit/includes/registration/ExtensionProcessorTest.php