{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "message": {
        "topic": {
            "type": "string",
            "pattern": "^/[a-z\\-]+$"
        },
        "since": {
            "type": "integer"
        },
        "snapshot": {
            "type": "boolean"
        },
        "filter": {
            "type": "string",
            "maxLength": 137,
            "pattern": "^[\\w\\-\\.#@\\*\\[\\]\\?]+$"
        }
    },
    "properties": {
        "message.topic": {
            "$ref": "#/message/topic"
        },
        "message.since": {
            "$ref": "#/message/since"
        },
        "message.snapshot": {
            "$ref": "#/message/snapshot"
        },
        "message.filter": {
            "$ref": "#/message/filter"
        }
    },
    "required": [
        "message.topic",
        "message.since",
        "message.snapshot",
        "message.filter"
    ]
}