{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "bibentry",
    "description": "A bibliography entry",
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "description": "Unique entry id used to reference entries."
        },
        "title": {
            "type": "string",
            "description": "Paper title"
        },
        "authors": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Full name of the author."
                    },
                    "affiliation": {
                        "type": "string",
                        "description": "Affiliation of the author."
                    }
                },
                "required": [
                    "name"
                ]
            },
            "minItems": 1,
            "_uniqueItems": true
        },
        "year": {
            "type": "integer",
            "description": "The publication year"
        },
        "peer-reviewed": {
            "type": "boolean",
            "description": "Was this publication reviewed for a Conference or Journal?"
        },
        "venue": {
            "type": "string",
            "description": "Name of the Conference or Journal this publication was published in (required if peer-reviewed is set)."
        },
        "abstract": {
            "type": "string"
        },
        "url": {
            "type": "string",
            "description": "URL where the publication can be downloaded (as PDF if possible)."
        },
        "type": {
            "enum": [
                "inproceedings",
                "masterthesis",
                "article",
                "book",
                "techreport",
                "misc",
                "phdthesis",
                "online",
                "incollection",
                "inbook"
            ],
            "description": "The Bibtex type."
        },
        "sortkey": {
            "type": "integer",
            "description": "The key by which publications are sorted. Format is the current date as YYYYMMDD, with unknown parts zeroed out. Notice: this is not always the publication date, instead it is supposed to be an approximation allowing us to sort publications more or less in chronological order."
        }
    },
    "required": [
        "id",
        "title",
        "authors",
        "year"
    ]
}