{
	"$id": "hhttps://www.atsc-schemas.org/atsc3.0/a344/cs-20240822/org.atsc.query.displayComponents-response.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "Query Display Components API Response",
	"description": "Query Display Components API Response",
	"type": "object",
	"properties": {
		"jsonrpc": {
			"type": "string",
			"enum": [ "2.0" ]
		},
		"id": {
			"type": "integer"
		},
		"result": {
			"type": "object",
			"properties": {
				"videoWindowScalingSupported": {
					"type": "boolean"
				},
				"captionScalingSupported": {
					"type": "boolean"
				},
				"activeCaptionRegions": {
					"type": "array",
					"items": {
						"type": "object",
						"properties": {
							"captionRegionOriginX": {
								"type": "integer"
							},
							"captionRegionOriginY": {
								"type": "integer"
							},
							"captionRegionExtentX": {
								"type": "integer"
							},
							"captionRegionExtentY": {
								"type": "integer"
							}
						},
						"required": [ "captionRegionOriginX", "captionRegionOriginY", "captionRegionExtentX", "captionRegionExtentY" ]
					}
				}
			},
			"required": [ "videoWindowScalingSupported", "captionScalingSupported","activeCaptionRegions" ]
		},
		"error": {
			"type": "object",
			"properties": {
				"code": {
					"type": "integer"
				},
				"message": {
					"type": "string"
				},
				"data": {}
			},
			"required": [
				"code",
				"message"
			]
		}
	},
	"required": [ "jsonrpc", "id" ],
	"oneOf": [
		{
			"required": [
				"result"
			]
		},
		{
			"required": [
				"error"
			]
		}
	]
}
