ocpp-messages
Version:
TypeScript definitions for Open Charge Point Protocol (OCPP)
126 lines • 2.86 kB
JSON
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2018:4:SetVariablesResponse",
"comment": "OCPP 2.0 - v1p0",
"definitions": {
"AttributeEnumType": {
"type": "string",
"default": "Actual",
"additionalProperties": true,
"enum": [
"Actual",
"Target",
"MinSet",
"MaxSet"
]
},
"SetVariableStatusEnumType": {
"type": "string",
"additionalProperties": true,
"enum": [
"Accepted",
"Rejected",
"InvalidValue",
"UnknownComponent",
"UnknownVariable",
"NotSupportedAttributeType",
"OutOfRange",
"RebootRequired"
]
},
"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"
]
},
"SetVariableResultType": {
"javaType": "SetVariableResult",
"type": "object",
"additionalProperties": true,
"properties": {
"attributeType": {
"$ref": "#/definitions/AttributeEnumType"
},
"attributeStatus": {
"$ref": "#/definitions/SetVariableStatusEnumType"
},
"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": {
"setVariableResult": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/SetVariableResultType"
},
"minItems": 1
}
},
"required": [
"setVariableResult"
]
}