{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "description": "Returns count of logs.",
    "examples": [
        {
            "email": "test@test.com",
            "filter": [
                "sent_at"
            ],
            "from": "2020-04-07T13:33:44+02:00",
            "to": "2020-04-08T13:33:44+02:00"
        }
    ],
    "properties": {
        "email": {
            "_format": "email",
            "type": "string"
        },
        "filter": {
            "additionalProperties": false,
            "items": {
                "enum": [
                    "sent_at",
                    "delivered_at",
                    "clicked_at",
                    "opened_at",
                    "dropped_at",
                    "spam_complained_at",
                    "hard_bounced_at"
                ]
            },
            "type": "array"
        },
        "from": {
            "_format": "date-time",
            "title": "From filter",
            "type": "string"
        },
        "to": {
            "_format": "date-time",
            "title": "To filter",
            "type": "string"
        }
    },
    "required": [
        "email",
        "filter"
    ],
    "title": "Logs count",
    "type": "object"
}