{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/20230217/org.atsc.query.captionDisplay-response.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Query Caption Display Preferences API Response",
	"description": "Query Caption Display Preferences API Response",
	"type": "object",
	"properties": {
		"jsonrpc": {
			"type": "string",
			"enum": [ "2.0" ]
		},
		"id": {
			"type": "integer"
		},
		"result": {
			"type": "object",
			"properties": {
				"cta708": {
					"type": "object",
					"properties": {
						"characterColor": {
							"type": "string"
						},
						"characterOpacity": {
							"type": "number",
							"minimum": 0,
							"maximum": 1
						},
						"characterSize": {
							"type": "integer"
						},
						"fontStyle": {
							"examples": [ "Default", "MonospacedSerifs", "ProportionalSerifs", "MonospacedNoSerifs", "ProportionalNoSerifs", "Casual", "Cursive", "SmallCaps" ]
						},
						"backgroundColor": {
							"type": "string"
						},
						"backgroundOpacity": {
							"type": "number",
							"minimum": 0,
							"maximum": 1
						},
						"characterEdge": {
							"examples": [ "None", "Raised", "Depressed", "Uniform", "LeftDropShadow", "RightDropShadow" ]
						},
						"characterEdgeColor": {
							"type": "string"
						},
						"windowColor": {
							"type": "string"
						},
						"windowOpacity": {
							"type": "number",
							"minimum": 0,
							"maximum": 1
						}
					}
				},
				"imsc1": {
					"type": "object",
					"patternProperties": {
						"^region_": {
							"type": "string"
						},
						"^content_": {
							"type": "string"
						}
					},
					"additionalProperties": false
				}
			}
		},
		"error": {
			"type": "object",
			"properties": {
				"code": {
					"type": "integer"
				},
				"message": {
					"type": "string"
				},
				"data": {}
			},
			"required": [
				"code",
				"message"
			]
		}
	},
	"required": [ "jsonrpc", "id" ],
	"oneOf": [
		{
			"required": [
				"result"
			]
		},
		{
			"required": [
				"error"
			]
		}
	]
}
