{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Codex Coverage Schema",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "id": {
            "type": "string"
        },
        "range": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "begin": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    }
                },
                "additionalItems": true,
                "_uniqueItems": true
            }
        },
        "statement": {
            "type": "string"
        },
        "embargo": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "begin": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    }
                }
            },
            "additionalItems": true,
            "_uniqueItems": true
        }
    },
    "required": [
        "id"
    ]
}