{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "description": "schema for a contact detail",
    "id": "https://raw.githubusercontent.com/eviratec/schema/master/v1/contact/detail.json#",
    "properties": {
        "content": {
            "type": "string"
        },
        "date_added": {
            "_format": "date-time",
            "type": "string"
        },
        "id": {
            "_format": "uuid",
            "type": "string"
        },
        "type": {
            "enum": [
                "email_address",
                "phone_number",
                "address"
            ]
        }
    },
    "required": [
        "id",
        "type",
        "content",
        "date_added"
    ],
    "type": "object"
}