registration: Validate AutoloadNamespaces keys have trailing \
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 20 May 2018 19:13:05 +0000 (12:13 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 20 May 2018 19:13:05 +0000 (12:13 -0700)
commitbf9bc2ae49d56fa25e2d310543505c8b40040b7b
tree883e057aa4da5e807309b7c8d526d497a17516ec
parent21c56e7d04532479e0de1630811a7d8b409f3812
registration: Validate AutoloadNamespaces keys have trailing \

The PSR-4 autoloader requires "AutoloadNamespaces" keys to have a
trailing \ (\\ in JSON), so add a validation check for that.

Unfortunately the validation error isn't great, since it checks to see
if the property matches patternProperties, and when it doesn't, it
claims the property isn't defined since additionalProperties is false.
But it's still better than not failing when they are missing.

Bug: T189136
Change-Id: If01bd06cdd767fb704a8ff85cdf1c143e53fa4ca
docs/extension.schema.v1.json
docs/extension.schema.v2.json