{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/20230217/org.atsc.CacheRequestDASH-request.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Cache Request DASH API",
	"description": "Cache Request DASH API",
	"type": "object",
 	 "properties": {
		"jsonrpc": {
			"type": "string", 
			"enum": [ "2.0" ]
		},
		"id": { 
			"type": "integer"
		},
		"method": 
{"type": "string",
	"enum": [
		"org.atsc.CacheRequestDASH"] 
	 },
	"params":{
    "type": "object",
    "oneOf": [
        {
            "properties": {
                "sourceURL": {"type": "string", "format": "uri"},
                "targetURL": {"type": "string", "format": "uri-reference"},
                "Period": {"type": "string", "format": "xml"}
            },
            "required": ["targetURL", "Period"]
        },
        {
           "properties": {
                "sourceURL": {"type": "string", "format": "uri"},
                "targetURL": {"type": "string", "format": "uri-reference"},
                "mpdFileName": {"type": "string"}
            },
            "required": ["mpdFileName"]
        }
    ]
}},
	"required": [ "jsonrpc", "id", "method", "params" ] 
}
