{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://ayanova.com/schemas/incident.json#",
    "title": "Incident",
    "type": "object",
    "properties": {
        "customer_id": {
            "type": "string"
        },
        "site_id": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "contactName": {
            "type": "string"
        },       
        "email": {
            "type": "string"
        },       
        "contactedDate": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date"
                },
                {
                    "type": "string"
                }
            ]
        },
        "issueStartedDate": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date"
                },
                {
                    "type": "string"
                }
            ]
        },
        "resolvedDate": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date"
                },
                {
                    "type": "string"
                }
            ]
        },       
        "notes": {
            "type": "string"
        }
    },
    "required": [
        "customer_id",
        "site_id",
        "name"
    ],
    "additionalProperties": false
}