{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "id": {
            "type": "integer"
        }
    },
    "type": "object",
    "properties": {
        "id": {
            "$ref": "#/definitions/id"
        },
        "label": {
            "type": "string"
        },
        "phase": {
            "description": "Buckets have a phase, which represents the approximate part of the recruitment process this bucket is for - for example the phase 'interview' might have several buckets (e.g. 'line manager interview', etc.).",
            "enum": [
                "new",
                "screening",
                "interview",
                "selection",
                "offer",
                "approval",
                "hire",
                "onboard",
                "decline",
                "other"
            ]
        },
        "key": {
            "type": "string"
        }
    },
    "required": [
        "id",
        "label",
        "phase"
    ],
    "additionalProperties": false
}