Skip to content

Instantly share code, notes, and snippets.

@michaelgwelch
Created July 28, 2021 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelgwelch/6f468884b1ffa7e3e6f10f4befd2ae1b to your computer and use it in GitHub Desktop.
Save michaelgwelch/6f468884b1ffa7e3e6f10f4befd2ae1b to your computer and use it in GitHub Desktop.
{
"items": {
"defaultAttribute": "attributeEnumSet.presentValue"
},
"schema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"language": "en-US",
"title": "JCI BV",
"version": "1.0",
"properties": {
"presentValue": {
"title": "Present Value",
"prioritized": true,
"type": "string",
"metasysType": "enum"
},
"reliability": {
"title": "Reliability",
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"outOfService": {
"title": "Out Of Service",
"prioritized": false,
"type": "boolean",
"metasysType": "bool"
},
"statusFlags": {
"title": "Status Flags",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "bitString"
},
"eventState": {
"title": "Event State",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"statesText": {
"title": "States Text",
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"activeText": {
"title": "Active Text",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "string"
},
"inactiveText": {
"title": "Inactive Text",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "string"
},
"presentValueWritable": {
"title": "Present Value Writable",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"connectedStatus": {
"title": "Connected Status",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"connectedToInternalApplication": {
"title": "Connected to Internal Application",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"bacnetExposed": {
"title": "BACnet Exposed",
"prioritized": false,
"type": "boolean",
"metasysType": "bool"
},
"propertyRefValue": {
"title": "Property Ref Value",
"readOnly": true,
"prioritized": false,
"metasysType": "attributeReference",
"oneOf": [
{
"$ref": "#attribute-reference"
}
]
},
"connectedTo": {
"title": "Connected To",
"prioritized": false,
"metasysType": "attributeReference",
"oneOf": [
{
"$ref": "#attribute-reference"
}
]
},
"direction": {
"title": "Direction",
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"prioritySupported": {
"title": "Priority Supported",
"prioritized": false,
"type": "boolean",
"metasysType": "bool"
},
"cosCount": {
"title": "COS Count",
"prioritized": false,
"metasysType": "ulong",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"cosTime": {
"title": "COS Time",
"readOnly": true,
"prioritized": false,
"type": "object",
"metasysType": "struct"
},
"stateCountReset": {
"title": "State Count Reset",
"prioritized": false,
"type": "object",
"metasysType": "struct"
},
"elapsedActiveTime": {
"title": "Elapsed Active Time",
"prioritized": false,
"metasysType": "ulong",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"activeTimeReset": {
"title": "Active Time Reset",
"prioritized": false,
"type": "object",
"metasysType": "struct"
},
"relinquishDefault": {
"title": "Relinquish Default",
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"restoreCommandPriority": {
"title": "Restore Command Priority",
"prioritized": false,
"type": "string",
"metasysType": "bitString"
},
"priorityArray": {
"title": "Priority Array",
"readOnly": true,
"prioritized": false,
"type": "array",
"metasysType": "array"
},
"minOffTime": {
"title": "Min Off Time",
"prioritized": false,
"metasysType": "ulong",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"minOnTime": {
"title": "Min On Time",
"prioritized": false,
"metasysType": "ulong",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"overrideExpirationTime": {
"title": "Override Expiration Time",
"readOnly": true,
"prioritized": false,
"type": "object",
"metasysType": "struct"
},
"currentCommandPriority": {
"title": "Current Command Priority",
"readOnly": true,
"prioritized": false,
"metasysType": "ushort",
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"itemReference": {
"title": "Item Reference",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "string"
},
"name": {
"title": "Name",
"prioritized": false,
"type": "string",
"metasysType": "string"
},
"objectName": {
"title": "Object Name",
"prioritized": false,
"type": "string",
"metasysType": "string"
},
"description": {
"title": "Description",
"prioritized": false,
"type": "string",
"metasysType": "string"
},
"status": {
"title": "Status",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"enabled": {
"title": "Enabled",
"prioritized": false,
"type": "boolean",
"metasysType": "bool"
},
"executionPriority": {
"title": "Execution Priority",
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"objectCategory": {
"title": "Authorization Category",
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"alarmState": {
"title": "Alarm State",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"bacnetObjectType": {
"title": "Object Type",
"readOnly": true,
"prioritized": false,
"type": "string",
"metasysType": "enum"
},
"objectIdentifier": {
"title": "Object Identifier",
"readOnly": true,
"prioritized": false,
"metasysType": "bacOid",
"oneOf": [
{
"$ref": "#bacoid"
}
]
},
"propertyList": {
"title": "Property List",
"readOnly": true,
"prioritized": false,
"type": "array",
"metasysType": "listof"
}
},
"definitions": {
"object-reference": {
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "#object-reference",
"title": "Object reference data type",
"type": "object",
"oneOf": [
{
"properties": {
"objectReference": {
"format": "fully-qualified-reference",
"type": "string"
},
"referencedObject": {
"type": "object",
"properties": {
"objectName": {
"type": "string"
},
"objectUrl": {
"type": "string",
"format": "uri"
}
},
"readOnly": true
}
},
"required": [
"objectReference"
]
},
{
"properties": {
"objectBACoid": {
"readOnly": true,
"oneOf": [
{
"$ref": "#bacoid"
}
]
},
"deviceAddress": {
"readOnly": true,
"type": "string"
},
"deviceBACoid": {
"readOnly": true,
"oneOf": [
{
"$ref": "#bacoid"
}
]
}
},
"required": [
"objectBACoid"
],
"additionalProperties": false
}
]
},
"attribute-reference": {
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "#attribute-reference",
"title": "Attribute reference data type",
"type": "object",
"allOf": [
{
"$ref": "#object-reference"
},
{
"properties": {
"attribute": {
"$ref": "https://oas12/api/v4/schemas/enums/attributeEnumSet"
},
"if": {
"required": [
"objectReference"
]
},
"then": {
"properties": {
"referencedObject": {
"properties": {
"attributeUrl": {
"type": "string",
"metasysType": "string",
"format": "uri"
},
"attributeName": {
"type": "string",
"metasysType": "string"
}
}
}
}
}
}
}
]
},
"bacoid": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "#bacoid",
"title": "A definition for the BACoid data type",
"properties": {
"bacnetObjectType": {
"title": "BACnet Object Type",
"const": "{bacnetObjectType}",
"oneOf": [
{
"$ref": "{objectTypeEnumSetRef}"
}
]
},
"instance": {
"type": "integer",
"title": "Instance Number",
"minimum": 0,
"maximum": 4194303
}
},
"required": [
"bacnetObjectType",
"instance"
],
"additionalProperties": false
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment