{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://burrito.bible/schema/scope.schema.json",
    "$$target": "scope.schema.json",
    "title": "Scope",
    "type": "object",
    "description": "Scope specification, used for the whole burrito and for specific ingredients. In both cases it describes the actual content, not future translation goals.",
    "additionalProperties": {
        "oneOf": [
            {
                "type": "array",
                "items": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$|^[1-9][0-9]*-[1-9][0-9]*$|^[1-9][0-9]*:[1-9][0-9]*(-[1-9][0-9]*)?$|^[1-9][0-9]*:[1-9][0-9]*-[1-9][0-9]*:[1-9][0-9]*$"
                },
                "minItems": 1,
                "uniqueItems": true
            },
            {
                "type": "array",
                "maxItems": 0
            }
        ]
    },
    "propertyNames": {
        "$ref": "common.schema.json#/definitions/bookId"
    },
    "minProperties": 1
}
