{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "required": [
        "markdown"
    ],
    "properties": {
        "markdown": {
            "type": "object",
            "description": "Tells how to obtain the Markdown-formatted text.",
            "required": [
                "parameter"
            ],
            "properties": {
                "parameter": {
                    "type": "string",
                    "description": "The place parameter for the flow definition to support anchors."
                },
                "resource": {
                    "type": "string",
                    "format": "topic",
                    "axRole": "inlet",
                    "description": "The resource topic under which Markdown-formatted text is expected or a URL which references to a file with Markdown-formatted text."
                },
                "attribute": {
                    "type": "string",
                    "description": "Path to the actual Markdown-formatted text"
                },
                "url": {
                    "type": "string",
                    "description": "The URL which refers to a Markdown-formatted text."
                }
            }
        },
        "messages": {
            "type": "object",
            "description": "Configuration of messages published via didEncounterError or didValidate events.",
            "properties": {
                "i18nFailedLoadingResource": {
                    "type": [
                        "object",
                        "string"
                    ],
                    "description": "The message to publish when a GET for a Markdown-formatted text source fails. [url] is replaced by the URL.",
                    "default": {
                        "en": "Could not load resource from \"[url]\"",
                        "de": "Die Ressource konnte nicht von \"[url]\" geladen werden."
                    }
                }
            }
        },
        "i18n": {
            "description": "Which locale to use for displaying this widget.",
            "type": "object",
            "properties": {
                "locale": {
                    "type": "string",
                    "format": "topic",
                    "axRole": "inlet",
                    "description": "The topic under which to expect the locale for this widget.",
                    "default": "default"
                }
            }
        }
    }
}