{
    "$id": "https://www.atsc-schemas.org/atsc3.0/a344/20260218/org.atsc.rmpMediaAssetChange.json",
    "$schema": "https://json-schema.org/draft/2019-09/schema#",
    "title": "rmpMediaAssetChange Notification",
    "description": "rmpMediaAssetChange Notification",
    "type": "object",
    "properties": {
        "jsonrpc": {
            "type": "string",
            "enum": [
                "2.0"
            ]
        },
        "method": {
            "type": "string",
            "enum": [
                "org.atsc.notify"
            ]
        },
        "params": {
            "type": "object",
            "properties": {
                "msgType": {
                    "type": "string",
                    "enum": [
                        "rmpMediaAssetChange"
                    ]
                },
		        "currentTime": {
                    "type": "number",
                    "minimum": 0
                },
                "startDate": {
                    "type": "string",
                    "format": "xs:dateTime"
                },
                "assets": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "assetId": {
		                        "type": "string",
				                "description": "Asset ID may have a UUID (Universally Unique Identifier) or a URI (Uniform Resource Identifier) scheme"
                            },
                            "assetType": {
                                "type": "string"
                            },
                            "presentationTime": {
                                "type": "string",
                                "format" : "dat-time"
                            },
                            "duration": {
                                "type": "number",
	                            "minimum": 0
                            },
                            "sourceType": {
                                "type": "string",
				                "enum": [
                                    "broadcast",
                                    "broadband",
				                    "mediaAssetSelect",
                                    "assetLink",
				                    "other"
                                ]
                            }
                        },
			            "required": [
                            "assetId",
                            "presentationTime",
			                "duration"
                        ]
                    }
                },
		        "packageId": {
                    "type": "integer"
                }
            },
            "required": [
                "msgType",
		        "currentTime",
                "assets",
		        "packageId"
            ]
        }
    },
    "required": [
        "jsonrpc",
        "method",
        "params"
    ]
}