UNPKG

@itentialopensource/adapter-sevone

Version:
147 lines 3.32 kB
{ "$id": "sevone_map_conn", "type": "object", "$schema": "http://json-schema.org/draft-07/schema#", "properties": { "ph_request_type": { "type": "string", "description": "type of request (internal to adapter)", "default": "getMapConnections", "enum": [ "getMapConnections", "createMapConnection", "updateMapConnection", "deleteMapConnection" ], "external_name": "ph_request_type" }, "id": { "type": "integer", "description": "id of the map connection", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "minimum": 0, "external_name": "id" }, "nodeASide": { "type": "integer", "description": "id of the node on the A side of the connection", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "minimum": 0, "external_name": "nodeAId" }, "nodeBSide": { "type": "integer", "description": "id of the node on the B side of the connection", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "minimum": 0, "external_name": "nodeBId" }, "type": { "type": "string", "description": "type of the connection", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "type" }, "elements": { "type": "array", "items": { "type": "object", "properties": { "deviceId": { "type": "integer", "description": "the id of the device", "minimum": 0, "external_name": "deviceId" }, "elementId": { "type": "integer", "description": "the id of the element", "minimum": 0, "external_name": "elementId" }, "pluginId": { "type": "integer", "description": "the id of the plugin", "minimum": 0, "external_name": "pluginId" }, "reportId": { "type": "integer", "description": "the id of the report", "minimum": 0, "external_name": "reportId" } } }, "description": "array containing the elements of the connection", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "data" } }, "allOf": [ { "if": { "properties": { "ph_request_type": { "enum": [ "createMapConnection" ] } } }, "then": { "required": [ "nodeASide", "nodeBSide", "type", "elements" ] } }, { "if": { "properties": { "ph_request_type": { "enum": [ "updateMapConnection" ] } } }, "then": { "required": [ "nodeASide", "nodeBSide", "type", "elements" ] } } ], "definitions": {} }