Skip to content

Commit

Permalink
feat: adds all typenames to schema and removes unnecessary typename f…
Browse files Browse the repository at this point in the history
…or UI
  • Loading branch information
ndorin committed Oct 3, 2024
1 parent 6a90ec4 commit 584c849
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/UserInterface/UserInterfaceFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public UserInterfaceFactory()
{
MinimumEssentialsFrameworkVersion = "2.0.0";

TypeNames = new List<string>() { "ciscoRoomOsMobileControl", "ciscoRoomOs" };
TypeNames = new List<string>() { "ciscoRoomOsMobileControl"};
}

public override EssentialsDevice BuildDevice(DeviceConfig dc)
Expand Down
38 changes: 37 additions & 1 deletion src/deviceTypePropertiesSchema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"types": {
"ciscoCodecEq": {
"ciscoRoomOs": {
"type": "object",
"properties": {
"properties": {
Expand All @@ -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": {
Expand Down

0 comments on commit 584c849

Please sign in to comment.