registration: Fix "config" schema validation
authorKunal Mehta <legoktm@member.fsf.org>
Mon, 25 Jul 2016 22:36:12 +0000 (15:36 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Mon, 25 Jul 2016 22:36:12 +0000 (15:36 -0700)
The "properties" field is only interpreted if the value is an object,
which was not being required. Add that missing type in, so
manifest_version 1 type config entries should fail.

Bug: T141289
Change-Id: Iffb084eb7a81a398a74370a1f9561198a88f5779

docs/extension.schema.json

index 9c8160d..f2406c8 100644 (file)
                        "description": "Configuration options for this extension",
                        "patternProperties": {
                                "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
+                                       "type": "object",
                                        "properties": {
                                                "value": {
                                                        "required": true