{
    "$schema" : "http://json-schema.org/schema#",
    "id" : "http://surveyman.github.io/Schemata/survey_output.json#",
    "type" : "object",
    "title" : "JSON schema for SurveyMan output",
    "description" : "This is the schema to be passed between a library or runtime system to the survey host. The JSON object will be interpreteed by the SurveyMan JS library",
    "properties" : {
        "id" :{
            "type" : "string"
        },
        "filename" : {
            "description" : "The source file used to generate this survey. This string is a convenience for retreiving and parsing survey data.",
            "type" : "string"
        },
        "breakoff" : {
            "description" : "Indicates whether breakoff is permitted in this survey at any point. This will trigger a notice about allowing breakoff.",
            "type" : "boolean"
        },
        "survey" : {
            "description" : "The survey content. This essentially an array of blocks",
            "type" : "array",
            "items" : {
                "$ref" : "survey_block.json"
            }
        }
    },
    "required" : ["survey", "filename"]
}
