{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "auth": {
            "type": "object",
            "description": "Authorization with the GitHub API",
            "required": [
                "resource"
            ],
            "properties": {
                "action": {
                    "type": "string",
                    "description": "The name of the action to request to authenticate.",
                    "format": "topic"
                },
                "resource": {
                    "type": "string",
                    "description": "The name of the authorization resource to listen for.",
                    "format": "topic"
                },
                "flag": {
                    "type": "string",
                    "description": "The name of the flag indicating the current authentication state.",
                    "format": "topic"
                },
                "i18nHtmlLabel": {
                    "type": [
                        "string",
                        "object"
                    ],
                    "default": {
                        "en-US": "Sign in"
                    }
                }
            }
        },
        "user": {
            "type": "object",
            "description": "User information",
            "required": [
                "resource"
            ],
            "properties": {
                "url": {
                    "type": "string",
                    "description": "The GitHub API endpoint serving user information.",
                    "default": "https://api.github.com/user"
                },
                "resource": {
                    "type": "string",
                    "description": "The name of the resource to publish user information.",
                    "format": "topic"
                },
                "i18nHtmlLabel": {
                    "type": [
                        "string",
                        "object"
                    ],
                    "default": {
                        "en-US": "Signed in as"
                    }
                }
            }
        },
        "menu": {
            "type": "array",
            "description": "Menu entries",
            "items": {
                "type": "object",
                "required": [
                    "i18nHtmlLabel"
                ],
                "properties": {
                    "i18nHtmlLabel": {
                        "type": [
                            "string",
                            "object"
                        ],
                        "description": "The (internationalized) label for this menu item."
                    },
                    "action": {
                        "type": "string",
                        "description": "The name of the action to request when clicked.",
                        "format": "topic"
                    },
                    "place": {
                        "type": "string",
                        "description": "The name of the place to navigate to when clicked.",
                        "format": "topic"
                    }
                }
            }
        }
    }
}