From 84fe2bf20e603ff56a16e4366cb9652018be300c Mon Sep 17 00:00:00 2001 From: jsetton Date: Mon, 11 Mar 2019 15:56:33 -0400 Subject: [PATCH] Updated input controller schema capabilities and properties --- .../alexa_smart_home_message_schema.json | 111 ++++++++++++------ 1 file changed, 77 insertions(+), 34 deletions(-) diff --git a/validation_schemas/alexa_smart_home_message_schema.json b/validation_schemas/alexa_smart_home_message_schema.json index 7da8914..a78779a 100644 --- a/validation_schemas/alexa_smart_home_message_schema.json +++ b/validation_schemas/alexa_smart_home_message_schema.json @@ -92,8 +92,69 @@ ] }, "input": { - "type": "string", - "minLength": 1 + "enum": [ + "AUX 1", + "AUX 2", + "AUX 3", + "AUX 4", + "AUX 5", + "AUX 6", + "AUX 7", + "BLURAY", + "CABLE", + "CD", + "COAX 1", + "COAX 2", + "COMPOSITE 1", + "DVD", + "GAME", + "HD RADIO", + "HDMI 1", + "HDMI 2", + "HDMI 3", + "HDMI 4", + "HDMI 5", + "HDMI 6", + "HDMI 7", + "HDMI 8", + "HDMI 9", + "HDMI 10", + "HDMI ARC", + "INPUT 1", + "INPUT 2", + "INPUT 3", + "INPUT 4", + "INPUT 5", + "INPUT 6", + "INPUT 7", + "INPUT 8", + "INPUT 9", + "INPUT 10", + "IPOD", + "LINE 1", + "LINE 2", + "LINE 3", + "LINE 4", + "LINE 5", + "LINE 6", + "LINE 7", + "MEDIA PLAYER", + "OPTICAL 1", + "OPTICAL 2", + "PHONO", + "PLAYSTATION", + "PLAYSTATION 3", + "PLAYSTATION 4", + "SATELLITE", + "SMARTCAST", + "TUNER", + "TV", + "USB DAC", + "VIDEO 1", + "VIDEO 2", + "VIDEO 3", + "XBOX" + ] }, "volume": { "type": "integer", @@ -1709,7 +1770,8 @@ "required": [ "type", "interface", - "version" + "version", + "inputs" ], "additionalProperties": false, "properties": { @@ -1726,38 +1788,19 @@ "version": { "$ref": "#/definitions/common.properties/version" }, - "properties": { - "type": "object", - "required": [ - "supported", - "proactivelyReported", - "retrievable" - ], - "additionalProperties": false, - "properties": { - "supported": { - "type": "array", - "uniqueItems": true, - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": false, - "properties": { - "name": { - "enum": [ - "input" - ] - } - } + "inputs": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "object", + "required": [ + "name" + ], + "additionalProperties": false, + "properties": { + "name": { + "$ref": "#/definitions/common.properties/input" } - }, - "proactivelyReported": { - "type": "boolean" - }, - "retrievable": { - "type": "boolean" } } }