UNPKG

ocpp-messages

Version:

TypeScript definitions for Open Charge Point Protocol (OCPP)

127 lines 2.88 kB
{ "$schema": "http://json-schema.org/draft-06/schema#", "$id": "urn:OCPP:Cp:2:2018:4:GetVariablesResponse", "comment": "OCPP 2.0 - v1p0", "definitions": { "AttributeEnumType": { "type": "string", "default": "Actual", "additionalProperties": true, "enum": [ "Actual", "Target", "MinSet", "MaxSet" ] }, "GetVariableStatusEnumType": { "type": "string", "additionalProperties": true, "enum": [ "Accepted", "Rejected", "UnknownComponent", "UnknownVariable", "NotSupportedAttributeType" ] }, "ComponentType": { "javaType": "Component", "type": "object", "additionalProperties": true, "properties": { "evse": { "$ref": "#/definitions/EVSEType" }, "name": { "type": "string", "maxLength": 50 }, "instance": { "type": "string", "maxLength": 50 } }, "required": [ "name" ] }, "EVSEType": { "javaType": "EVSE", "type": "object", "additionalProperties": true, "properties": { "id": { "type": "integer" }, "connectorId": { "type": "integer" } }, "required": [ "id" ] }, "GetVariableResultType": { "javaType": "GetVariableResult", "type": "object", "additionalProperties": true, "properties": { "attributeStatus": { "$ref": "#/definitions/GetVariableStatusEnumType" }, "attributeType": { "$ref": "#/definitions/AttributeEnumType" }, "attributeValue": { "type": "string", "maxLength": 1000 }, "component": { "$ref": "#/definitions/ComponentType" }, "variable": { "$ref": "#/definitions/VariableType" } }, "required": [ "attributeStatus", "component", "variable" ] }, "VariableType": { "javaType": "Variable", "type": "object", "additionalProperties": true, "properties": { "name": { "type": "string", "maxLength": 50 }, "instance": { "type": "string", "maxLength": 50 } }, "required": [ "name" ] } }, "type": "object", "additionalProperties": true, "properties": { "getVariableResult": { "type": "array", "additionalItems": false, "items": { "$ref": "#/definitions/GetVariableResultType" }, "minItems": 1 } }, "required": [ "getVariableResult" ] }