{
    "additionalProperties": false,
    "description": "Schema for a Mandrill hard bounce event",
    "properties": {
        "_id": {
            "type": "string"
        },
        "msg": {
            "additionalProperties": false,
            "properties": {
                "_id": {
                    "type": "string"
                },
                "_version": {
                    "type": "string"
                },
                "bgtools_code": {
                    "type": "number"
                },
                "bounce_description": {
                    "type": "string"
                },
                "diag": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "metadata": {
                    "additionalProperties": true,
                    "properties": {
                        "user_id": {
                            "type": "number"
                        }
                    },
                    "type": "object"
                },
                "resends": {
                    "type": "array"
                },
                "sender": {
                    "type": "string"
                },
                "smtp_events": {
                    "items": {
                        "additionalProperties": true,
                        "properties": {
                            "destination_ip": {
                                "type": "string"
                            },
                            "diag": {
                                "type": "string"
                            },
                            "size": {
                                "type": "integer"
                            },
                            "source_ip": {
                                "type": "string"
                            },
                            "ts": {
                                "_format": "date-time",
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    },
                    "type": "array"
                },
                "state": {
                    "type": "string"
                },
                "subject": {
                    "type": "string"
                },
                "tags": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "template": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "ts": {
                    "_format": "date-time",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "ts": {
            "_format": "date-time",
            "type": "string"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "message_bounced",
        "vendor": "com.mandrill",
        "version": "1-0-0"
    },
    "type": "object"
}