{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Secret Santa Parameters",
    "description": "Contains information required to generate Secret Santa messages and emails",
    "type": "object",
    "properties": {
        "message": {
            "description": "Message to be sent in the email",
            "type": "string"
        },
        "subject": {
            "description": "Subject of the email",
            "type": "string"
        },
        "participants": {
            "description": "A participant of the Secret Santa",
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "description": "Participants name",
                        "type": "string"
                    },
                    "email": {
                        "description": "Participants email",
                        "type": "string"
                    },
                    "exList": {
                        "description": "List of participant IDs who cannot this participant cannot buy for",
                        "type": "array",
                        "_uniqueItems": true,
                        "items": {}
                    },
                    "id": {
                        "description": "Unique identifier for participant",
                        "type": "integer"
                    }
                },
                "required": [
                    "name",
                    "email",
                    "exList",
                    "id"
                ]
            }
        }
    },
    "required": [
        "message",
        "subject",
        "participants"
    ]
}