From 584c849ce2145861bb3fd8eb6d08438b0a5c4257 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Thu, 3 Oct 2024 14:38:33 -0600 Subject: [PATCH] feat: adds all typenames to schema and removes unnecessary typename for UI --- src/UserInterface/UserInterfaceFactory.cs | 2 +- src/deviceTypePropertiesSchema.json | 38 ++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/UserInterface/UserInterfaceFactory.cs b/src/UserInterface/UserInterfaceFactory.cs index 9f3d17e..5a7fa54 100644 --- a/src/UserInterface/UserInterfaceFactory.cs +++ b/src/UserInterface/UserInterfaceFactory.cs @@ -16,7 +16,7 @@ public UserInterfaceFactory() { MinimumEssentialsFrameworkVersion = "2.0.0"; - TypeNames = new List() { "ciscoRoomOsMobileControl", "ciscoRoomOs" }; + TypeNames = new List() { "ciscoRoomOsMobileControl"}; } public override EssentialsDevice BuildDevice(DeviceConfig dc) diff --git a/src/deviceTypePropertiesSchema.json b/src/deviceTypePropertiesSchema.json index b20926d..3f6fa2e 100644 --- a/src/deviceTypePropertiesSchema.json +++ b/src/deviceTypePropertiesSchema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "types": { - "ciscoCodecEq": { + "ciscoRoomOs": { "type": "object", "properties": { "properties": { @@ -10,6 +10,42 @@ } } }, + "ciscoRoomBar": { + "type": "object", + "properties": { + "properties": { + "type": "object", + "$ref": "#/components/schemas/codecPropertiesConfig" + } + } + }, + "ciscoRoomBarPro": { + "type": "object", + "properties": { + "properties": { + "type": "object", + "$ref": "#/components/schemas/codecPropertiesConfig" + } + } + }, + "ciscoCodecEq": { + "type": "object", + "properties": { + "properties": { + "type": "object", + "$ref": "#/components/schemas/codecPropertiesConfig" + } + } + }, + "ciscoCodecPro": { + "type": "object", + "properties": { + "properties": { + "type": "object", + "$ref": "#/components/schemas/codecPropertiesConfig" + } + } + }, "ciscoRoomOsMobileControl": { "type": "object", "properties": {