Updates to schemas

This commit is contained in:
Neil Dorin
2020-01-22 10:42:23 -07:00
parent ef48cb0b7b
commit ca6d2340d5
2 changed files with 111 additions and 12 deletions

View File

@@ -5,6 +5,7 @@
"$ref": "#/definitions/ControlPropertiesConfig", "$ref": "#/definitions/ControlPropertiesConfig",
"definitions": { "definitions": {
"ControlPropertiesConfig": { "ControlPropertiesConfig": {
"description": "The method of communicating with the device",
"properties": { "properties": {
"method": { "method": {
"type": "string", "type": "string",
@@ -28,33 +29,128 @@
"title": "Properties for IP based communication", "title": "Properties for IP based communication",
"default": null "default": null
}, },
"comm": { "comParams": {
"title":"Com Port parameters",
"description": "The parameters to configure the COM port",
"protocol":{
"title":"Protocol",
"type":"string",
"enum":[
"RS232",
"RS422",
"RS485"
]
},
"baudRate":{
"title":"Baud Rate",
"type":"integer",
"enum":[
300,
600,
1200,
1800,
2400,
3600,
4800,
7200,
9600,
14400,
19200,
28800,
38400,
57600,
115200
]
},
"dataBits":{
"title":"Data Bits",
"type":"integer",
"enum":[
7,
8
]
},
"stopBits":{
"title":"Stop Bits",
"type":"integer",
"enum":[
1,
2
]
},
"parity":{
"title":"Parity",
"type":"string",
"enum":[
"None",
"Even",
"One"
]
},
"softwareHandshake":{
"title":"Software Handshake",
"type":"string",
"enum":[
"None",
"RTS",
"CTS",
"RTSCTS"
]
},
"hardwareHandshake":{
"title":"Hardware Handshake",
"type":"string",
"enum":[
"None",
"XON",
"XONT",
"XONR"
]
},
"pacing":{
"title":"Pacing",
"type":"integer"
}
},
"cresnetId":{
"type": "string",
"title":"Cresnet ID",
"description": "Cresnet ID of the device",
"default": "",
"examples": [
"13",
"03",
"0A",
"F1"
],
"pattern": "^(?!00|01|02|FF)[0-9,A-F,a-f][0-9,A-F,a-f]$"
}, },
"controlPortDevKey": { "controlPortDevKey": {
"type": "string", "type": "string",
"title": "Key of the device where the control port is found", "title":"Port Device",
"description": "Key of the device where the control port is found",
"examples": [ "examples": [
"processor" "processor"
] ]
}, },
"controlPortNumber": { "controlPortNumber": {
"type": "integer", "type": "integer",
"title": "Control Port Number on the device referenced by controlPortDevKey", "description": "Control Port Number on the device referenced by controlPortDevKey",
"examples": [ "examples": [
1 1
] ]
}, },
"controlPortName": { "controlPortName": {
"type": "string", "type": "string",
"title": "Control Port Name on the device referenced by controlPortDevKey", "description": "Control Port Name on the device referenced by controlPortDevKey",
"examples": [ "examples": [
"hdmi1" "hdmi1"
] ]
}, },
"irFile": { "irFile": {
"type": "string", "type": "string",
"title": "IR Filename", "title": "IR File",
"description": "IR Filename",
"default": "", "default": "",
"examples": [ "examples": [
"Comcast Motorola DVR.ir" "Comcast Motorola DVR.ir"

View File

@@ -1,14 +1,14 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
"title": "ControlPropertiesConfig", "title": "TcpSshPropertiesConfig",
"$ref": "#/definitions/TcpSshPropertiesConfig", "$ref": "#/definitions/TcpSshPropertiesConfig",
"definitions": { "definitions": {
"TcpSshPropertiesConfig": { "TcpSshPropertiesConfig": {
"properties": { "properties": {
"username": { "username": {
"type": "string", "type": "string",
"title": "Username Credential", "title": "Username",
"default":"", "default":"",
"examples": [ "examples": [
"admin" "admin"
@@ -28,7 +28,7 @@
}, },
"address": { "address": {
"type": "string", "type": "string",
"title": "IP address or hostname", "title": "IP Address or Hostname",
"examples": [ "examples": [
"192.168.99.100", "192.168.99.100",
"myDeviceHostname" "myDeviceHostname"
@@ -37,7 +37,7 @@
}, },
"password": { "password": {
"type": "string", "type": "string",
"title": "Password Credential", "title": "Password",
"default":"", "default":"",
"examples": [ "examples": [
"password" "password"
@@ -47,6 +47,7 @@
"autoReconnect": { "autoReconnect": {
"type": "boolean", "type": "boolean",
"title": "Auto Reconnect", "title": "Auto Reconnect",
"description": "Indicates if automatic attemtps to reconnect should be made if communication is lost with the device",
"default": true, "default": true,
"examples": [ "examples": [
true true
@@ -54,7 +55,8 @@
}, },
"autoReconnectIntervalMs": { "autoReconnectIntervalMs": {
"type": "integer", "type": "integer",
"title": "Auto Reconnect Interval in Ms", "title": "Auto Reconnect Interval (Milliseconds)",
"description": "If Auto Reconnect is enabled, how often should reconnect attempts be made",
"default": 5000, "default": 5000,
"examples": [ "examples": [
2000 2000
@@ -62,7 +64,8 @@
}, },
"bufferSize": { "bufferSize": {
"type": "integer", "type": "integer",
"title": "Receive Buffer Size", "title": "Buffer Size",
"description": "The size of the receive buffer to use",
"default": 32768, "default": 32768,
"examples": [ "examples": [
32768 32768