mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-11 18:54:52 +00:00
Config validation and subsequent load working. Need to look into exceptions thrown by several devices when deserializing control properties.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "SamsungMDC Properties Config Schema",
|
||||
"description": "",
|
||||
"$ref":"EssentialsConfigSchema.json/definitions/Device",
|
||||
"properties":{
|
||||
"properties":{
|
||||
"$ref":"#/definitions/propertiesConfig"
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"propertiesConfig": {
|
||||
"type":"object",
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"id":{
|
||||
"type":"string",
|
||||
"pattern": "^([0-9]|0[1-9]|[2-9][0-9])$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -182,6 +182,9 @@
|
||||
<Compile Include="VideoCodec\ZoomRoom\ZoomRoom.cs" />
|
||||
<Compile Include="VideoCodec\ZoomRoom\ZoomRoomCamera.cs" />
|
||||
<Compile Include="VideoCodec\ZoomRoom\ZoomRoomPropertiesConfig.cs" />
|
||||
<EmbeddedResource Include="Display\Schema\SamsungMDCPropertiesConfigSchema.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\ControlSystem.cfg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user