{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/20240213/org.atsc.query.serviceGuideUrls-response.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Query Service Guide URLs API Response",
	"description": "Query Service Guide URLs API Response",
	"type": "object",
	"properties": {
		"jsonrpc": {
			"type": "string",
			"enum": [ "2.0" ]
		},
		"id": {
			"type": "integer"
		},
		"result": {
			"type": "object",
			"properties": {
				"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": [ "urlList" ]
		},
		"error": {
			"type": "object",
			"properties": {
				"code": {
					"type": "integer"
				},
				"message": {
					"type": "string"
				},
				"data": {}
			},
			"required": [
				"code",
				"message"
			]
		}
	},
	"required": [ "jsonrpc", "id" ],
	"oneOf": [
		{
			"required": [
				"result"
			]
		},
		{
			"required": [
				"error"
			]
		}
	]
}
