{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "oneOf": [
        {
            "type": "object",
            "required": [
                "id",
                "win"
            ],
            "properties": {
                "id": {
                    "type": "string"
                },
                "handleWinResponse": {
                    "type": "object"
                }
            }
        },
        {
            "type": "object",
            "required": [
                "id",
                "lose"
            ],
            "properties": {
                "id": {
                    "type": "string"
                },
                "lose": {
                    "type": "object"
                }
            }
        }
    ]
}