MediaWiki master
|
Validate abstract schema json files against their JSON schema. More...
Public Member Functions | |
callable(string) | __construct (callable $missingDepCallback) |
checkDependencies () | |
validate (string $path) | |
Validate abstract schema json files against their JSON schema.
This is used for static validation from the command-line via generateSchemaSql.php, generateSchemaChangeSql, and the PHPUnit structure test suite (AbstractSchemaValidationTest).
The files are normally read by the generateSchemaSql.php and generateSchemaSqlChange.php maintenance scripts.
Definition at line 44 of file AbstractSchemaValidator.php.
callable(string) MediaWiki\DB\AbstractSchemaValidator::__construct | ( | callable | $missingDepCallback | ) |
callable(string):void | $missingDepCallback |
Definition at line 53 of file AbstractSchemaValidator.php.
MediaWiki\DB\AbstractSchemaValidator::checkDependencies | ( | ) |
Definition at line 61 of file AbstractSchemaValidator.php.
MediaWiki\DB\AbstractSchemaValidator::validate | ( | string | $path | ) |
string | $path | file to validate |
AbstractSchemaValidationError | on any failure |
Definition at line 84 of file AbstractSchemaValidator.php.