|
MediaWiki master
|
Validate abstract schema json files against their JSON schema. More...
Public Member Functions | |
| __construct () | |
| 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 (AbstractSchemaTest).
The files are normally read by the generateSchemaSql.php and generateSchemaSqlChange.php maintenance scripts.
Definition at line 30 of file AbstractSchemaValidator.php.
| MediaWiki\DB\AbstractSchemaValidator::__construct | ( | ) |
| AbstractSchemaValidationError |
Definition at line 32 of file AbstractSchemaValidator.php.
| MediaWiki\DB\AbstractSchemaValidator::validate | ( | string | $path | ) |
| string | $path | file to validate |
| AbstractSchemaValidationError | on any failure |
Definition at line 51 of file AbstractSchemaValidator.php.