{
    "$schema": "http://json-schema.org/schema#",
    "$id": "https://ris-live.ripe.net/schemas/v1/protocol.schema.json",
    "type": "object",
    "additionalProperties": false,
    "required": [
        "type"
    ],
    "examples": [
        {
            "type": "pong",
            "data": null
        }
    ],
    "title": "RIS Live message",
    "properties": {
        "type": {
            "type": "string",
            "description": "RIS Live message type"
        },
        "data": {
            "description": "RIS Live message payload. The contents (if any) depend on the `type`."
        }
    },
    "oneOf": [
        {"$ref": "server.schema.json"},
        {"$ref": "client.schema.json"}
    ]
}
