Warnings will be emitted whenever validation is checked or unit tests are
run.
Bug: T192154
Change-Id: Ib968f696890667841d850ef5562e05989cb4f431
},
"ParserTestFiles": {
"type": "array",
- "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
+ "description": "DEPRECATED: Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
},
"ServiceWiringFiles": {
"type": "array",
},
"ParserTestFiles": {
"type": "array",
- "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
+ "description": "DEPRECATED: Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
},
"ServiceWiringFiles": {
"type": "array",
}
}
+ // Deprecated stuff
+ if ( isset( $data->ParserTestFiles ) ) {
+ // phpcs:ignore Generic.Files.LineLength.TooLong
+ $extraErrors[] = '[ParserTestFiles] DEPRECATED: see <https://www.mediawiki.org/wiki/Manual:Extension.json/Schema#ParserTestFiles>';
+ }
+
$validator = new Validator;
$validator->check( $data, (object)[ '$ref' => 'file://' . $schemaPath ] );
if ( $validator->isValid() && !$extraErrors ) {