From: Kunal Mehta Date: Sat, 1 Aug 2015 06:01:59 +0000 (-0700) Subject: registration: Fix "namespaces" schema to match code X-Git-Tag: 1.31.0-rc.0~10557 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=b1aa84076171b4870f10396715d2ddd608ab9d0e;p=lhc%2Fweb%2Fwiklou.git 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 --- 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": {