Page MenuHomePhabricator

Create a json schema file for the abstract schema file "tables.json" (DBAL)
Closed, ResolvedPublic

Description

The file tables.json (T191231: RFC: Abstract schemas and schema changes) is not validated by a schema file to spot typos of declaration in it.

It would be nice to create a json schema and validate the json against that schema definition when running maintenance/generateSchemaSql.php.

It would also be nice to validate the change files when running maintenance/generateSchemaChangeSql.php

mediawiki/core is already validating extension.json with the library JsonSchema, which could be used here as well.

Event Timeline

Change 761930 had a related patch set uploaded (by Mainframe98; author: Mainframe98):

[mediawiki/core@master] Add validation for abstract schema

https://gerrit.wikimedia.org/r/761930

Change 761930 merged by jenkins-bot:

[mediawiki/core@master] Add validation for abstract schema

https://gerrit.wikimedia.org/r/761930