{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/20230217/org.atsc.notify-langPref.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Notify Message",
	"description": "langPref",
	"type": "object",
	"properties": {
		"jsonrpc": {
			"type": "string",
			"enum": [ "2.0" ]
		},
		"method": {
			"type": "string",
			"enum": [ "org.atsc.notify" ]
		},
		"params": {
			"type": "object",
			"properties": {
				"msgType": {
					"type": "string",
					"enum": [ "langPref" ]
				},
				"preferredAudioLang": {
					"oneOf": [ { "type": "string" }, { "type": "null" } ]
				},
				"preferredUILang": {
					"oneOf": [ { "type": "string" }, { "type": "null" } ]
				},
				"preferredCaptionSubtitleLang": {
					"oneOf": [ { "type": "string" }, { "type": "null" } ]
				}
			},
			"anyOf": [
				{
					"required": [ "msgType", "preferredAudioLang" ]
				},
				{
					"required": [ "msgType", "preferredUILang" ]
				},
				{
					"required": [ "msgType", "preferredCaptionSubtitleLang" ]
				}
			]
		}
	},
	"required": [ "jsonrpc", "method", "params" ]
}
