{
    "$schema" : "http://json-schema.org/schema#",
    "description" : "The block JSON.",
    "type" : "object",
    "id" : "survey_block.json",
    "properties" : {
        "id" : {
            "description" : "The id generated for this block by the source program",
            "type" : "string"
        },
        "subblocks" : {
            "description" : "The list of blocks whose parent is this block",
            "type" : "array",
            "items" : {
                "$ref" : "#"
            }
        },
        "questions" : {
            "description" : "The list of questions belonging to this block",
            "type" : "array",
            "items" : {
                "$ref" : "survey_question.json"
            }
        },
        "randomize" : {"type" : "boolean"}
    },
    "required" : ["id"]
}
