{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/20230217/org.atsc.notify-captionDisplayPrefs.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Caption Display Preferences Change Notification API",
	"description": "Caption Display Preferences Change Notification API",
	"type": "object",
    "properties": {
		"jsonrpc": {
			"type": "string", 
			"enum": [ "2.0" ]
		},
		"method": 
            {"type": "string",
	            "enum": [ "org.atsc.notify" ]
            },
	    "params":{
            "type": "object",
            "properties": {
                "msgType": {"type": "string", "enum": ["captionDisplayPrefs"]},
                "cta708": {
                    "type": "object",
                    "properties": {
                        "characterColor": {"type": "string"},
                        "characterOpacity": {"type": "number"},
                        "characterSize": {"type": "integer"},
                        "fontStyle": {"type": "string", "examples": [
                            "Default",
                            "MonospacedSerifs",
                            "ProportionalSerifs",
                            "MonospacedNoSerifs",
                            "ProportionalNoSerifs",
                            "Casual",
                            "Cursive",
                            "SmallCaps"
                        ]},
                        "backgroundColor": {"type": "string"},
                        "backgroundOpacity": {"type": "number"},
                        "characterEdge": {"type": "string", "examples": [
                            "None",
                            "Raised",
                            "Depressed",
                            "Uniform",
                            "LeftDropShadow",
                            "RightDropShadow"
                        ]},
                        "characterEdgeColor": {"type": "string"},
                        "windowColor": {"type": "string"},
                        "windowOpacity": {"type": "number"}
                    }
                },
                "imsc1": {
                    "type": "object",
                    "patternProperties": {
                        "^region_": {
                            "type": "string"
                        },
                        "^content_": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": false
                }
            }
        },
        "required": ["msgType"]
    },
	"required": [ "jsonrpc", "method", "params" ] 
}
