{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Google form driven interview's answer",
    "properties": {
        "createdOn": {
            "_format": "date-time",
            "type": "string"
        },
        "doc_type": {
            "pattern": "^answer$",
            "type": "string"
        },
        "interviewId": {
            "description": "an answer belongs to an interview",
            "type": "string"
        },
        "itemType": {
            "description": "the available answer types as described here https://developers.google.com/apps-script/reference/forms/item-type",
            "enum": [
                "CHECKBOX",
                "DATE",
                "DATETIME",
                "DURATION",
                "LIST",
                "MULTIPLE_CHOICE",
                "PARAGRAPH_TEXT",
                "SCALE",
                "TEXT",
                "TIME"
            ]
        },
        "reason": {
            "enum": [
                "burial",
                "suspect"
            ]
        },
        "result": {
            "type": "string"
        },
        "title": {
            "type": "string"
        }
    },
    "required": [
        "doc_type",
        "createdOn",
        "interviewId",
        "title",
        "reason",
        "result",
        "itemType"
    ],
    "title": "Answer",
    "type": "object"
}