{ "$schema": "http://json-schema.org/draft-04/schema#", "id": "http://json-schema.org/openstudio-urban-modeling/electrical_connector_properties.json#", "title": "URBANopt Electrical Connector", "description": "Schema for an URBANopt Electrical Connector object", "type": "object", "properties": { "id": { "description": "Unique id used to refer to this feature within this dataset.", "type": "string" }, "project_id": { "description": "Project which this feature belongs to.", "type": "string" }, "type": { "description": "Type of feature.", "type": "string", "enum": [ "ElectricalConnector" ] }, "source_name": { "description": "Name of the original data source.", "type": "string" }, "source_id": { "description": "Id of the feature in original data source.", "type": "string" }, "name": { "description": "Feature name", "type": "string" }, "connector_type": { "$ref": "#/definitions/ElectricalLineType" }, "lengths": { "description": "Length (ft) of each segment, generated on export.", "type": "array", "items": { "type": "number" } }, "total_length": { "description": "Total length (ft) of the line, generated on export.", "type": "number" }, "startJunctionId": { "description": "Id of the junction that this line starts at.", "type": "string" }, "endJunctionId": { "description": "Id of the junction that this line ends at.", "type": "string" }, "line_properties": { "description": "A sub-element containing all the attributes that can be assigned to a line, including wires", "type": "object", "properties": { "is_switch": { "type": "boolean", "description": "Flag indicating if the line is a switch or not" }, "is_fuse": { "type": "boolean", "description": "Flag indicating if the line is a fuse or not" }, "is_open": { "type": "boolean", "description": "Flag indicating if the switch/fuse is a open or not" } } }, "electrical_catalog_name": { "description": "Name of the equipment as specified in the OpenDSS/RNM electrical catalog (extended_catalog.json)", "type": "string" }, "user_data": { "description": "Arbitrary user data" } }, "required": [ "type", "id", "connector_type", "startJunctionId", "endJunctionId" ], "additionalProperties": false, "definitions": { "ElectricalLineType": { "description": "Type of electrical line", "type": "string", "enum": [ "Wire" ] } } }