{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "time": {
            "oneOf": [
                {
                    "type": "string"
                },
                {
                    "type": "number"
                },
                {
                    "type": "object",
                    "properties": {
                        "$date": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false,
                    "required": [
                        "$date"
                    ]
                }
            ]
        },
        "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
        },
        "payload": {}
    },
    "required": [
        "name"
    ],
    "additionalProperties": false
}