{
    "properties": {
        "closed_date": {
            "format": "date",
            "title": "Date when the job was closed",
            "type": "string"
        },
        "contact_email": {
            "items": {
                "format": "email",
                "title": "Contact email",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "contact_person": {
            "items": {
                "title": "Contact person",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "continent": {
            "items": {
                "enum": [
                    "North America",
                    "Europe",
                    "Asia",
                    "South America",
                    "Africa",
                    "Oceania"
                ],
                "title": "Continent",
                "type": "string"
            },
            "title": "Continent",
            "type": "array",
            "_uniqueItems": true
        },
        "deadline_date": {
            "format": "date",
            "title": "Application deadline",
            "type": "string"
        },
        "description": {
            "title": "Job description",
            "type": "string"
        },
        "experiments": {
            "items": {
                "description": "FIXME: we can simply store here the ID of the experiment.",
                "title": "Experiment associated with Job",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "institution": {
            "items": {
                "properties": {
                    "curated_relation": {
                        "type": "boolean"
                    },
                    "name": {
                        "title": "Institution name",
                        "type": "string"
                    },
                    "recid": {
                        "title": "Institution Record ID",
                        "type": "integer"
                    }
                },
                "title": "Institution",
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "position": {
            "title": "Job position",
            "type": "string"
        },
        "rank": {
            "items": {
                "description": "FIXME: should this be identical to hepnames rank? I would say so",
                "enum": [
                    "Postdc",
                    "Junior",
                    "Student",
                    "Senior",
                    "Staff",
                    "Visitor",
                    "Visiting Scientist"
                ],
                "title": "Rank",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "reference_email": {
            "items": {
                "description": "FIXME: what is the difference from contact_email!?",
                "format": "email",
                "title": "Reference email",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "research_area": {
            "items": {
                "enum": [
                    "usual",
                    "arXiv",
                    "list"
                ],
                "type": "string"
            },
            "title": "Research area",
            "type": "array",
            "_uniqueItems": true
        },
        "urls": {
            "description": "Contains links.",
            "items": {
                "format": "url",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        }
    },
    "required": [
        "continent",
        "position",
        "institution",
        "contact_email",
        "contact_person",
        "description",
        "url",
        "rank",
        "research_area"
    ],
    "title": "HEP Job",
    "type": "object"
}