{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/cs-20250508/org.atsc.query.recoveredComponentInfo-response.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Query Recovered Component Info API",
	"description": "Query Recovered Component Info API",
	"type": "object",
    "properties": {
		"jsonrpc": {
			"type": "string", 
			"enum": [ "2.0" ]
		},
		"id": { 
			"type": "integer"
		},
		"result":{
            "type": "object",
            "properties": {
                "component": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "mediaType": {
                                "type": "string",
                                "examples": ["audio", "video", "both"]
                            },
                            "componentID": {"type": "string"},
                            "descriptor": {"type": "string"}
                        },
                        "required": ["mediaType"]
                    },
                    "minItems": 1
                }
            },
            "required": ["component"]
        },
        "error": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "message": {
                    "type": "string"
                },
                "data": {}
            },
            "required": [
                "code",
                "message"
            ]
        }
    },
	"required": [ "jsonrpc", "id" ],
    "oneOf": [
        {
            "required": [
                "result"
            ]
        },
        {
            "required": [
                "error"
            ]
        }
    ]
}
