{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "categories": {
            "type": "object",
            "required": [
                "resource"
            ],
            "description": "A resource with repositories grouped in categories",
            "properties": {
                "resource": {
                    "type": "string",
                    "format": "topic",
                    "axRole": "inlet",
                    "description": "Name of the data resource with categories."
                }
            }
        },
        "repository": {
            "type": "object",
            "required": [
                "action"
            ],
            "description": "Request the changelogs in markdown of all releases of a repository",
            "properties": {
                "action": {
                    "type": "string",
                    "format": "topic",
                    "axRole": "outlet",
                    "description": "Name of the action to request all data of a repository"
                }
            }
        },
        "expandAll": {
            "type": "object",
            "description": "Expand all categories and show all changelogs",
            "properties": {
                "enabled": {
                    "type": "boolean",
                    "description": "Enable this feature",
                    "default": false
                },
                "action": {
                    "type": "string",
                    "format": "topic",
                    "axRole": "outlet",
                    "description": "Action to request all releases and changelogs"
                },
                "button": {
                    "type": "object",
                    "description": "The button to expand all",
                    "default": {
                        "htmlLabel": "expand all"
                    },
                    "properties": {
                        "htmlLabel": {
                            "type": "string",
                            "description": "The label of the button"
                        }
                    }
                }
            }
        },
        "collapseAll": {
            "type": "object",
            "description": "Collapse all categories and collapse all changelogs",
            "properties": {
                "enabled": {
                    "type": "boolean",
                    "description": "Enable this feature",
                    "default": false
                },
                "button": {
                    "type": "object",
                    "description": "The button to collapse all",
                    "default": {
                        "htmlLabel": "collapse all"
                    },
                    "properties": {
                        "htmlLabel": {
                            "type": "string",
                            "description": "The label of the button"
                        }
                    }
                }
            }
        }
    }
}