{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://burrito.bible/schema/scripture/sign_language_video_translation.schema.json",
    "title": "Flavor Details: Scripture: Sign Language Video Translation",
    "type": "object",
    "description": "Schema of flavor field for signLanguageVideoTranslation flavor",
    "definitions": {
        "format": {
            "type": "object",
            "properties": {
                "container": {
                    "type": "string",
                    "enum": ["mp4", "mpg"]
                },
                "videoStream": {
                    "type": "object",
                    "properties": {
                        "bitRate": { "type": "integer" },
                        "frameRate": { "type": "integer" },
                        "screenResolution": { "type": "string", "pattern": "^\\d+x\\d+$" }
                    },
                    "required": ["bitRate", "frameRate", "screenResolution"],
                    "additionalProperties": false
                },
                "audioStream": {
                    "type": "object",
                    "properties": {
                        "compression": {
                            "type": "string",
                            "enum": ["mp3", "wav"]
                        },
                        "trackConfiguration": {
                            "type": "string",
                            "enum": ["1/0 (Mono)", "Dual mono", "2/0 (Stereo)", "5.1 Surround"]
                        },
                        "bitRate": { "type": "integer" },
                        "bitDepth": { "type": "integer" },
                        "samplingRate": { "type": "integer" }
                    },
                    "required": ["compression"],
                    "additionalProperties": false
                }
            },
            "required": ["container", "videoStream"],
            "additionalProperties": false
        }
    },
    "properties": {
        "name": {
            "type": "string",
            "const": "signLanguageVideoTranslation"
        },
        "contentByChapter": { "type": "boolean" },
        "formats": {
            "type": "object",
            "additionalProperties": {
                "$ref": "#/definitions/format"
            },
            "propertyNames": { "type": "string" },
            "minProperties": 1
        },
        "conventions": {
            "type": "object",
            "additionalProperties": {
                "type": "string",
                "pattern": "^\\d+[.]\\d+([.].+)?$"
            },
            "propertyNames": {
                "type": "string",
                "pattern": "^(x-)?[a-z][A-za-z0-9]*$",
                "oneOf": [
                    { "$ref": "../common.schema.json#/definitions/xToken" },
                    { "enum": ["bookDirs", "rolesInUris"] }
                ]
            }
        }
    },
    "required": ["name", "contentByChapter", "formats"],
    "additionalProperties": false
}
