From b1aa84076171b4870f10396715d2ddd608ab9d0e Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 31 Jul 2015 23:01:59 -0700 Subject: [PATCH] registration: Fix "namespaces" schema to match code The "namespaces" property is supposed to be an array of objects, not an object. Document the properties of the individual objects, and mark the actually required ones as required. Change-Id: Ie3cee3e720b962073a1ff098659faa9f11d44fe3 --- docs/extension.schema.json | 64 ++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/docs/extension.schema.json b/docs/extension.schema.json index c9f629c4ac..8e6cafdb62 100644 --- a/docs/extension.schema.json +++ b/docs/extension.schema.json @@ -438,40 +438,44 @@ "description": "Registry of factory functions to create Config objects" }, "namespaces": { - "type": "object", + "type": "array", "description": "Method to add extra namespaces", - "properties": { - "id": { - "type": "integer" - }, - "constant": { - "type": "string" - }, - "name": { - "type": "string" - }, - "gender": { - "type": "object", - "properties": { - "male": { - "type": "string" - }, - "female": { - "type": "string" + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "constant": { + "type": "string" + }, + "name": { + "type": "string" + }, + "gender": { + "type": "object", + "properties": { + "male": { + "type": "string" + }, + "female": { + "type": "string" + } } + }, + "subpages": { + "type": "boolean", + "default": false + }, + "content": { + "type": "boolean", + "default": false + }, + "defaultcontentmodel": { + "type": "string" } }, - "subpages": { - "type": "boolean", - "default": false - }, - "content": { - "type": "boolean", - "default": false - }, - "defaultcontentmodel": { - "type": "string" - } + "required": ["id", "constant", "name"] } }, "TrackingCategories": { -- 2.20.1