{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "_id": {
            "type": "string"
        },
        "icon": {
            "type": "string"
        },
        "question": {
            "type": "string"
        },
        "end": {
            "type": "string"
        },
        "answers": {
            "type": "array",
            "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                    "value": {
                        "type": "string"
                    },
                    "votes": {
                        "type": "array",
                        "additionalProperties": false,
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "minItems": 2
        }
    },
    "required": [
        "question",
        "answers",
        "end"
    ]
}