Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Navigation schema

More actions
JSON schema for structured navigations
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"definitions": {
		"valid-wiki-title": {
			"$id": "#valid-wiki-title",
			"type": "string",
			"pattern": ".*"
		},
		"valid-nav-header": {
			"type": "object",
			"required": [
				"label"
			],
			"properties": {
				"page": {
					"$ref": "#/definitions/valid-wiki-title"
				},
				"label": {
					"anyOf": [
						{
							"type": "string"
						}
					]
				}
			}
		},
		"content-item": {
			"$id": "#content-item",
			"type": "array",
			"items": {
				"anyOf": [
					{
						"$ref": "#/definitions/valid-wiki-title"
					},
					{
						"type": "array",
						"minItems": 2,
						"maxItems": 2
					}
				]
			},
			"uniqueItems": true,
			"minItems": 1
		}
	},
	"type": "object",
	"required": [
		"config",
		"groups"
	],
	"additionalProperties": false,
	"properties": {
		"config": {
			"type": "object",
			"additionalProperties": false,
			"properties": {
				"title": {
					"$ref": "#/definitions/valid-nav-header"
				},
				"title-2": {
					"$ref": "#/definitions/valid-nav-header"
				}
			},
			"required": [
				"title"
			]
		},
		"groups": {
			"type": "array",
			"minProperties": 1,
			"items": {
				"type": "object",
				"additionalProperties": false,
				"required": [
					"title",
					"content"
				],
				"properties": {
					"title": {
						"$ref": "#/definitions/valid-nav-header"
					},
					"content": {
						"$ref": "#/definitions/content-item"
					}
				}
			}
		}
	}
}