{
    "properties": {
        "author_note": {
            "description": "Contains public note.",
            "type": "string"
        },
        "birth_date": {
            "description": "Stores birth date",
            "format": "date",
            "type": "string"
        },
        "conferences": {
            "description": "Contains information about attended conferences. (their recids)",
            "items": {
                "type": "integer"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "death_date": {
            "description": "Stores death date (if any)",
            "format": "date",
            "type": "string"
        },
        "email_addresses": {
            "description": "Contains current email addresses",
            "items": {
                "format": "email",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "experiments": {
            "description": "Contains information about experiments.",
            "items": {
                "properties": {
                    "curated_relation": {
                        "type": "boolean"
                    },
                    "current": {
                        "type": "boolean"
                    },
                    "end_year": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "recid": {
                        "description": "Record ID of the experiment record",
                        "type": "integer"
                    },
                    "start_year": {
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "field_categories": {
            "description": "Contains field category.",
            "items": {
                "properties": {
                    "name": {
                        "description": "FIXME: Time to revise this list?",
                        "enum": [
                            "acc-phys",
                            "astro-ph",
                            "atom-ph",
                            "chao-dyn",
                            "climate",
                            "comp",
                            "cond-mat",
                            "genl-th",
                            "gr-qc",
                            "hep-ex",
                            "hep-lat",
                            "hep-ph",
                            "hep-th",
                            "instr",
                            "librarian",
                            "math",
                            "math-ph",
                            "med-phys",
                            "nlin",
                            "nucl-ex",
                            "nucl-th",
                            "physics",
                            "plasma-phys",
                            "q-bio",
                            "quant-ph",
                            "ssrl",
                            "other"
                        ],
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "ids": {
            "description": "Contains all identifiers, both internal and external. FIXME: guess we should privilege nowadays, BAI, INSPIRE and ORCID",
            "items": {
                "properties": {
                    "type": {
                        "enum": [
                            "DESY",
                            "arXiv",
                            "INSPIRE",
                            "BAI",
                            "CERN",
                            "ORCID",
                            "SLAC",
                            "JACOW",
                            "GoogleScholar",
                            "RESEARCHERID",
                            "SCOPUS"
                        ],
                        "type": "string"
                    },
                    "value": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "name": {
            "description": "Contains name information.",
            "properties": {
                "numeration": {
                    "enum": [
                        "",
                        "Jr.",
                        "Sr.",
                        "I",
                        "II",
                        "III",
                        "IV",
                        "VI",
                        "VII",
                        "VIII"
                    ],
                    "type": "string"
                },
                "preferred_name": {
                    "type": "string"
                },
                "title": {
                    "enum": [
                        "",
                        "Sir"
                    ],
                    "type": "string"
                },
                "value": {
                    "format": ".+, .+",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "native_name": {
            "description": "Stores name in native form.",
            "type": "string"
        },
        "other_names": {
            "description": "Contains other variation of names. Usually a different form of writing the primary name.",
            "items": {
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "past_emails_addresses": {
            "description": "Contains past email addresses",
            "items": {
                "format": "email",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "phd_advisors": {
            "description": "Contains a links to the advisors in form of record ids.",
            "items": {
                "properties": {
                    "curated_relation": {
                        "type": "boolean"
                    },
                    "degree_type": {
                        "description": "FIXME: better enum",
                        "enum": [
                            "PhD",
                            "Master"
                        ],
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "recid": {
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "positions": {
            "description": "Contains position information.",
            "items": {
                "properties": {
                    "current": {
                        "description": "FIXME: do we need other states?",
                        "type": "boolean"
                    },
                    "email": {
                        "description": "FIXME: this is redundant?",
                        "format": "email",
                        "type": "string"
                    },
                    "end_date": {
                        "format": "date",
                        "type": "string"
                    },
                    "institution": {
                        "properties": {
                            "curated_relation": {
                                "type": "boolean"
                            },
                            "name": {
                                "description": "The raw institution name",
                                "type": "string"
                            },
                            "recid": {
                                "description": "Corresponding record ID in the institution database",
                                "type": "integer"
                            }
                        },
                        "type": "object"
                    },
                    "old_email": {
                        "description": "FIXME: this is redundant?",
                        "format": "email",
                        "type": "string"
                    },
                    "rank": {
                        "enum": [
                            "SENIOR",
                            "JUNIOR",
                            "STAFF",
                            "VISITOR",
                            "PD",
                            "PHD",
                            "MAS",
                            "UG"
                        ],
                        "type": "string"
                    },
                    "start_date": {
                        "format": "date",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "previous_names": {
            "description": "Contains a previous name. For example, it can be a maiden's name.",
            "items": {
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "prizes": {
            "description": "Contains prize name.t",
            "items": {
                "description": "E.g. Nobel Prize Physics 1977, Shaw Prize 2006, Sakurai Prize 1985 FIXME: shall we separate the year?",
                "type": "string"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "source": {
            "description": "This is the source of informatio. It is currently a mixed bags of user IDs or provenance information, e.g. arXiv etc. FIXME: we should really discuss about it. E.g. eprint, webform, Rachel.Lumpkin@durham.ac.uk(96), Fermilab, C09-05-04, KYOTOU...",
            "items": {
                "date_verified": {
                    "format": "date",
                    "type": "string"
                },
                "properties": {
                    "name": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        },
        "status": {
            "description": "The person's status",
            "enum": [
                "active",
                "deceased",
                "departed",
                "retired"
            ],
            "type": "string"
        },
        "urls": {
            "description": "Contains links.",
            "items": {
                "description": "FIXME: actually, Twitter and linkedin URLs should be better recognized and set as IDs",
                "properties": {
                    "description": {
                        "enum": [
                            "TWITTER",
                            "BLOG",
                            "LINKEDIN",
                            ""
                        ],
                        "type": "string"
                    },
                    "value": {
                        "format": "url",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array",
            "_uniqueItems": true
        }
    },
    "required": [
        "name"
    ],
    "type": "object"
}