| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "urn:OCPP:Cp:2:2020:3:GetVariablesRequest", |
| 4 | "$comment": "OCPP 2.0.1 FINAL", |
| 5 | "definitions": { |
| 6 | "CustomDataType": { |
| 7 | "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.", |
| 8 | "javaType": "CustomData", |
| 9 | "type": "object", |
| 10 | "properties": { |
| 11 | "vendorId": { |
| 12 | "type": "string", |
| 13 | "maxLength": 255 |
| 14 | } |
| 15 | }, |
| 16 | "required": ["vendorId"] |
| 17 | }, |
| 18 | "AttributeEnumType": { |
| 19 | "description": "Attribute type for which value is requested. When absent, default Actual is assumed.\r\n", |
| 20 | "javaType": "AttributeEnum", |
| 21 | "type": "string", |
| 22 | "default": "Actual", |
| 23 | "additionalProperties": false, |
| 24 | "enum": ["Actual", "Target", "MinSet", "MaxSet"] |
| 25 | }, |
| 26 | "ComponentType": { |
| 27 | "description": "A physical or logical component\r\n", |
| 28 | "javaType": "Component", |
| 29 | "type": "object", |
| 30 | "additionalProperties": false, |
| 31 | "properties": { |
| 32 | "customData": { |
| 33 | "$ref": "#/definitions/CustomDataType" |
| 34 | }, |
| 35 | "evse": { |
| 36 | "$ref": "#/definitions/EVSEType" |
| 37 | }, |
| 38 | "name": { |
| 39 | "description": "Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 40 | "type": "string", |
| 41 | "maxLength": 50 |
| 42 | }, |
| 43 | "instance": { |
| 44 | "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 45 | "type": "string", |
| 46 | "maxLength": 50 |
| 47 | } |
| 48 | }, |
| 49 | "required": ["name"] |
| 50 | }, |
| 51 | "EVSEType": { |
| 52 | "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n", |
| 53 | "javaType": "EVSE", |
| 54 | "type": "object", |
| 55 | "additionalProperties": false, |
| 56 | "properties": { |
| 57 | "customData": { |
| 58 | "$ref": "#/definitions/CustomDataType" |
| 59 | }, |
| 60 | "id": { |
| 61 | "description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nEVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n", |
| 62 | "type": "integer" |
| 63 | }, |
| 64 | "connectorId": { |
| 65 | "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n", |
| 66 | "type": "integer" |
| 67 | } |
| 68 | }, |
| 69 | "required": ["id"] |
| 70 | }, |
| 71 | "GetVariableDataType": { |
| 72 | "description": "Class to hold parameters for GetVariables request.\r\n", |
| 73 | "javaType": "GetVariableData", |
| 74 | "type": "object", |
| 75 | "additionalProperties": false, |
| 76 | "properties": { |
| 77 | "customData": { |
| 78 | "$ref": "#/definitions/CustomDataType" |
| 79 | }, |
| 80 | "attributeType": { |
| 81 | "$ref": "#/definitions/AttributeEnumType" |
| 82 | }, |
| 83 | "component": { |
| 84 | "$ref": "#/definitions/ComponentType" |
| 85 | }, |
| 86 | "variable": { |
| 87 | "$ref": "#/definitions/VariableType" |
| 88 | } |
| 89 | }, |
| 90 | "required": ["component", "variable"] |
| 91 | }, |
| 92 | "VariableType": { |
| 93 | "description": "Reference key to a component-variable.\r\n", |
| 94 | "javaType": "Variable", |
| 95 | "type": "object", |
| 96 | "additionalProperties": false, |
| 97 | "properties": { |
| 98 | "customData": { |
| 99 | "$ref": "#/definitions/CustomDataType" |
| 100 | }, |
| 101 | "name": { |
| 102 | "description": "Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 103 | "type": "string", |
| 104 | "maxLength": 50 |
| 105 | }, |
| 106 | "instance": { |
| 107 | "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 108 | "type": "string", |
| 109 | "maxLength": 50 |
| 110 | } |
| 111 | }, |
| 112 | "required": ["name"] |
| 113 | } |
| 114 | }, |
| 115 | "type": "object", |
| 116 | "additionalProperties": false, |
| 117 | "properties": { |
| 118 | "customData": { |
| 119 | "$ref": "#/definitions/CustomDataType" |
| 120 | }, |
| 121 | "getVariableData": { |
| 122 | "type": "array", |
| 123 | "additionalItems": false, |
| 124 | "items": { |
| 125 | "$ref": "#/definitions/GetVariableDataType" |
| 126 | }, |
| 127 | "minItems": 1 |
| 128 | } |
| 129 | }, |
| 130 | "required": ["getVariableData"] |
| 131 | } |