{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "required": [
        "data"
    ],
    "properties": {
        "title": {
            "type": "object",
            "properties": {
                "htmlLabel": {
                    "type": "string",
                    "description": "List selection title"
                }
            }
        },
        "data": {
            "type": "object",
            "required": [
                "resource",
                "items"
            ],
            "properties": {
                "resource": {
                    "type": "string",
                    "format": "topic",
                    "axRole": "outlet",
                    "description": "ID of resource to publish."
                },
                "items": {
                    "type": "array",
                    "description": "An array of data sets of which a user can choose one to be published.",
                    "minItems": 1,
                    "items": {
                        "type": "object",
                        "required": [
                            "title",
                            "location"
                        ],
                        "properties": {
                            "title": {
                                "type": "string",
                                "description": "Title of the data set."
                            },
                            "description": {
                                "type": "string",
                                "description": "Short description of the data set that is displayed below the title."
                            },
                            "location": {
                                "type": "string",
                                "description": "URL to load the resource from when the submit button is pressed."
                            }
                        }
                    }
                }
            }
        },
        "messages": {
            "type": "object",
            "description": "Configuration of messages published via didEncounterError or didValidate events.",
            "properties": {
                "i18nFailedLoadingResource": {
                    "type": [
                        "object",
                        "string"
                    ],
                    "description": "didEncounterError message to publish when a GET for a resource fails. [resource] is replaced by the actual name of the resource.",
                    "default": "Could not load resource \"[resource]\""
                }
            }
        }
    }
}