{
    "id": "http://schemas.triniti.io/json-schema/triniti/ovp.kaltura/caption/1-0-0.json#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "_schema": {
            "type": "string",
            "pattern": "^pbj:([a-z0-9-]+):([a-z0-9\\.-]+):([a-z0-9-]+)?:([a-z0-9-]+):([0-9]+-[0-9]+-[0-9]+)$",
            "default": "pbj:triniti:ovp.kaltura::caption:1-0-0"
        },
        "id": {
            "type": "string",
            "pattern": "^[\\w-]+$",
            "pbj": {
                "type": "string",
                "rule": "single"
            }
        },
        "entry_id": {
            "type": "string",
            "pattern": "^[\\w-]+$",
            "pbj": {
                "type": "string",
                "rule": "single"
            }
        },
        "version": {
            "type": "integer",
            "default": 0,
            "minimum": 0,
            "maximum": 65535,
            "pbj": {
                "type": "small-int",
                "rule": "single"
            }
        },
        "size": {
            "type": "integer",
            "default": 0,
            "minimum": 0,
            "maximum": 16777215,
            "pbj": {
                "type": "medium-int",
                "rule": "single"
            }
        },
        "file_ext": {
            "type": "string",
            "pattern": "^[\\w\\.-]+$",
            "pbj": {
                "type": "string",
                "rule": "single"
            }
        },
        "created_at": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647,
            "pbj": {
                "type": "timestamp",
                "rule": "single",
                "useTypeDefault": false
            }
        },
        "updated_at": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647,
            "pbj": {
                "type": "timestamp",
                "rule": "single",
                "useTypeDefault": false
            }
        },
        "deleted_at": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647,
            "pbj": {
                "type": "timestamp",
                "rule": "single",
                "useTypeDefault": false
            }
        },
        "description": {
            "type": "string",
            "minLength": 0,
            "maxLength": 255,
            "pbj": {
                "type": "string",
                "rule": "single"
            }
        },
        "language": {
            "type": "string",
            "minLength": 0,
            "maxLength": 255,
            "pbj": {
                "type": "string",
                "rule": "single"
            }
        },
        "language_code": {
            "type": "string",
            "pattern": "^\\w+$",
            "pbj": {
                "type": "string",
                "rule": "single"
            }
        },
        "is_default": {
            "type": "boolean",
            "pbj": {
                "type": "boolean",
                "rule": "single"
            }
        },
        "accuracy": {
            "type": "integer",
            "default": 0,
            "minimum": 0,
            "maximum": 65535,
            "pbj": {
                "type": "small-int",
                "rule": "single"
            }
        },
        "url": {
            "type": "string",
            "pattern": "^(https?:\\/\\/)?([\\da-z\\.-]+)\\.([a-z\\.]{2,6})([\\/\\w \\.-]*)*\\/?$",
            "pbj": {
                "type": "text",
                "rule": "single",
                "format": "url"
            }
        },
        "status": {
            "type": "string",
            "enum": [
                "unknown",
                -1,
                0,
                2,
                3,
                7,
                9
            ],
            "pbj": {
                "type": "string-enum",
                "rule": "single"
            }
        },
        "format": {
            "type": "string",
            "enum": [
                "unknown",
                1,
                2,
                3,
                4
            ],
            "pbj": {
                "type": "string-enum",
                "rule": "single"
            }
        }
    },
    "required": [
        "_schema"
    ],
    "additionalProperties": false
}