registration: Fix 'ResourceLoaderWikiModule' schema validation
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 23 Feb 2019 01:17:05 +0000 (17:17 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 23 Feb 2019 01:17:05 +0000 (17:17 -0800)
commit0a8a4fe75e78fa9c98759156c81ab8df414c19c7
tree1d252feeb17bd29c5fed8242774722bb55d989f4
parent291fcff08e1b773f530e4df40bc6a9f40f35aa47
registration: Fix 'ResourceLoaderWikiModule' schema validation

There is a full schema for ResourceModules when the
class: ResourceLoaderWikiModule is used. Except it doesn't actually work,
since it it fails validating against that schema, it will continue to check
the other anyOf schemas, find the arbitrary class one, and pass that one.

Blacklisting ResourceLoaderWikiModule from the arbitrary class schema means
that it has to pass the specified schema for it, or fail validation.

I verified that all extensions and skins in Gerrit pass validation with this
patch.

Change-Id: Icb862088c0ca1f89ed5a57a4286dd9049d213021
docs/extension.schema.v1.json
docs/extension.schema.v2.json