{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/cs-20240822/org.atsc.notify-serviceGuideChange.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Service Guide Change Notification API",
	"description": "Service Guide 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": [ "serviceGuideChange" ]
				},
				"urlList": {
					"type": "array",
					"items": {
						"type": "object",
						"properties": {
							"sgType": {
								"type": "string",
								"enum": [ "Service", "Schedule", "Content" ]
							},
							"sgUrl": {
								"type": "string",
								"format": "uri"
							},
							"service": {
								"type": "string",
								"format": "uri"
							},
							"content": {
								"type": "string",
								"format": "uri"
							}
						},
						"required": [ "sgType", "sgUrl", "service" ],
						"if": {
							"properties": {
								"sgType": {
									"enum": [ "Content" ]
								}
							}
						},
						"then": {
							"required": [ "content" ]
						}
					}
				}
			},
			"required": [ "msgType", "urlList" ]
		}
	},
	"required": [ "jsonrpc", "method", "params" ]
}
