mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 18:24:50 +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,74 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "DmChassisController Properties Config Schema",
|
||||
"description": "",
|
||||
"$ref":"EssentialsConfigSchema.json/definitions/Device",
|
||||
"properties":{
|
||||
"properties":{
|
||||
"$ref":"#/definitions/propertiesConfig"
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"propertiesConfig": {
|
||||
"type":"object",
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"control":{
|
||||
"type":"object",
|
||||
"$ref":"ControlPropertiesConfigSchema.json#definitions/ControlPropertiesConfig"
|
||||
},
|
||||
"volumeControls":{
|
||||
"type":"object",
|
||||
"additionalProperties": {
|
||||
"type":"object",
|
||||
"$ref": "#definitions/dmAudioCardPropertiesConfig"
|
||||
}
|
||||
},
|
||||
"inputSlots":{
|
||||
"type":"object",
|
||||
"additionalProperties": {
|
||||
"type":"string"
|
||||
}
|
||||
},
|
||||
"outputSlots":{
|
||||
"type":"object",
|
||||
"additionalProperties": {
|
||||
"type":"string"
|
||||
}
|
||||
},
|
||||
"inputNames":{
|
||||
"type":"object",
|
||||
"additionalProperties": {
|
||||
"type":"string"
|
||||
}
|
||||
},
|
||||
"outputNames":{
|
||||
"type":"object",
|
||||
"additionalProperties": {
|
||||
"type":"string"
|
||||
}
|
||||
},
|
||||
"noRouteText":{
|
||||
"type":"string"
|
||||
},
|
||||
"inputSlotSupportsHdcp2":{
|
||||
"type":"object",
|
||||
"additionalProperties": {
|
||||
"type":"boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dmAudioCardPropertiesConfig":{
|
||||
"type":"object",
|
||||
"properties": {
|
||||
"OutLevel":{
|
||||
"type":"integer"
|
||||
},
|
||||
"isVolumeControlPoint":{
|
||||
"type":"boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -148,6 +148,9 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="VideoStatusHelpers.cs" />
|
||||
<None Include="app.config" />
|
||||
<EmbeddedResource Include="Config\Schema\DmChassisControllerPropertiesConfigSchema.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\ControlSystem.cfg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user