{
    "additionalProperties": false,
    "anyOf": [
        {
            "required": [
                "text"
            ]
        },
        {
            "required": [
                "attachments"
            ]
        }
    ],
    "description": "Schema for a Slack send message command",
    "properties": {
        "attachments": {
            "items": {
                "additionalProperties": false,
                "properties": {
                    "author_icon": {
                        "type": "string"
                    },
                    "author_link": {
                        "type": "string"
                    },
                    "author_name": {
                        "type": "string"
                    },
                    "color": {
                        "type": "string"
                    },
                    "fallback": {
                        "type": "string"
                    },
                    "fields": {
                        "items": {
                            "additionalProperties": false,
                            "properties": {
                                "short": {
                                    "type": "boolean"
                                },
                                "title": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "title",
                                "value"
                            ],
                            "type": "object"
                        },
                        "type": "array"
                    },
                    "footer": {
                        "type": "string"
                    },
                    "footer_icon": {
                        "type": "string"
                    },
                    "image_url": {
                        "type": "string"
                    },
                    "pretext": {
                        "type": "string"
                    },
                    "text": {
                        "type": "string"
                    },
                    "thumb_url": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "title_link": {
                        "type": "string"
                    },
                    "ts": {
                        "type": "integer"
                    }
                },
                "required": [
                    "fallback"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "channel": {
            "type": "string"
        },
        "icon_emoji": {
            "type": "string"
        },
        "icon_url": {
            "type": "string"
        },
        "link_names": {
            "type": "boolean"
        },
        "mrkdwn": {
            "type": "boolean"
        },
        "text": {
            "type": "string"
        },
        "unfurl_links": {
            "type": "boolean"
        },
        "unfurl_media": {
            "type": "boolean"
        },
        "username": {
            "type": "string"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "send_message",
        "vendor": "com.slack.sauna.commands",
        "version": "1-0-0"
    },
    "type": "object"
}