{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/20230217/org.atsc.notify-signalingData.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Signaling Data Change Notification API",
	"description": "Signaling Data 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": ["signalingData"]
				},
				"objectList": {
					"type": "array",
					"items": {
						"type": "object",
						"properties": {
							"name": {
								"anyOf": [
									{
										"type": "integer"
									},
									{
										"examples": [ "RDT", "RD", "APD", "MMT", "USBD", "STSID", "MPD", "PAT", "MPT", "MPIT", "CRIT", "DCIT", "HELD", "DWD", "AEI", "EMSG", "EVTI", "RSAT" ]
									}
								]
							},
							"group": {
								"type": "integer"
							},
							"version": {
								"type": "integer"
							},
							"table": {
								"type": "string",
								"anyOf": [
									{
										"format": "xml"
									},
									{
										"format": "json"
									}
								]
							}
						},
						"required": [ "name", "version", "table" ],
						"if": {
							"properties": {
								"name": {
									"examples": [ "RDT", "RD", "APD", "MMT", "USBD", "STSID", "MPD", "PAT", "MPT", "MPIT", "CRIT", "DCIT", "HELD", "DWD", "AEI", "EMSG", "EVTI", "RSAT" ]
								}
							}
						},
						"then": {
							"not": {
								"required": [ "group" ]
							}
						},
						"else": {
							"required": [ "group" ]
						}
					}
				}
			},
			"required": ["msgType"]
		}
	},
	"required": [ "jsonrpc", "method", "params" ]
}
