{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "description": "details of a candidate's ability to apply for a given job",
    "properties": {
        "allowed": {
            "type": "boolean",
            "description": "true of the candidate is allowed to apply for this job, otherwise false"
        },
        "notAllowedMessage": {
            "type": "string",
            "description": "details of why the candidate is not allowed to apply - e.g. 'You've already applied'"
        }
    },
    "additionalProperties": false,
    "required": [
        "allowed",
        "notAllowedMessage"
    ]
}