| 1 |
{ |
| 2 |
"$schema": "http://json-schema.org/draft-06/schema#", |
| 3 |
"comment": "OCPP 2.0.1 FINAL", |
| 4 |
"definitions": { |
| 5 |
"CustomDataType": { |
| 6 |
"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.", |
| 7 |
"javaType": "CustomData", |
| 8 |
"type": "object", |
| 9 |
"properties": { |
| 10 |
"vendorId": { |
| 11 |
"type": "string", |
| 12 |
"maxLength": 255 |
| 13 |
} |
| 14 |
}, |
| 15 |
"required": [ |
| 16 |
"vendorId" |
| 17 |
] |
| 18 |
}, |
| 19 |
"AttributeEnumType": { |
| 20 |
"description": "Attribute type for which value is requested. When absent, default Actual is assumed.\r\n", |
| 21 |
"javaType": "AttributeEnum", |
| 22 |
"type": "string", |
| 23 |
"default": "Actual", |
| 24 |
"additionalProperties": false, |
| 25 |
"enum": [ |
| 26 |
"Actual", |
| 27 |
"Target", |
| 28 |
"MinSet", |
| 29 |
"MaxSet" |
| 30 |
] |
| 31 |
}, |
| 32 |
"ComponentType": { |
| 33 |
"description": "A physical or logical component\r\n", |
| 34 |
"javaType": "Component", |
| 35 |
"type": "object", |
| 36 |
"additionalProperties": false, |
| 37 |
"properties": { |
| 38 |
"customData": { |
| 39 |
"$ref": "#/definitions/CustomDataType" |
| 40 |
}, |
| 41 |
"evse": { |
| 42 |
"$ref": "#/definitions/EVSEType" |
| 43 |
}, |
| 44 |
"name": { |
| 45 |
"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", |
| 46 |
"type": "string", |
| 47 |
"maxLength": 50 |
| 48 |
}, |
| 49 |
"instance": { |
| 50 |
"description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 51 |
"type": "string", |
| 52 |
"maxLength": 50 |
| 53 |
} |
| 54 |
}, |
| 55 |
"required": [ |
| 56 |
"name" |
| 57 |
] |
| 58 |
}, |
| 59 |
"EVSEType": { |
| 60 |
"description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n", |
| 61 |
"javaType": "EVSE", |
| 62 |
"type": "object", |
| 63 |
"additionalProperties": false, |
| 64 |
"properties": { |
| 65 |
"customData": { |
| 66 |
"$ref": "#/definitions/CustomDataType" |
| 67 |
}, |
| 68 |
"id": { |
| 69 |
"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", |
| 70 |
"type": "integer" |
| 71 |
}, |
| 72 |
"connectorId": { |
| 73 |
"description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n", |
| 74 |
"type": "integer" |
| 75 |
} |
| 76 |
}, |
| 77 |
"required": [ |
| 78 |
"id" |
| 79 |
] |
| 80 |
}, |
| 81 |
"GetVariableDataType": { |
| 82 |
"description": "Class to hold parameters for GetVariables request.\r\n", |
| 83 |
"javaType": "GetVariableData", |
| 84 |
"type": "object", |
| 85 |
"additionalProperties": false, |
| 86 |
"properties": { |
| 87 |
"customData": { |
| 88 |
"$ref": "#/definitions/CustomDataType" |
| 89 |
}, |
| 90 |
"attributeType": { |
| 91 |
"$ref": "#/definitions/AttributeEnumType" |
| 92 |
}, |
| 93 |
"component": { |
| 94 |
"$ref": "#/definitions/ComponentType" |
| 95 |
}, |
| 96 |
"variable": { |
| 97 |
"$ref": "#/definitions/VariableType" |
| 98 |
} |
| 99 |
}, |
| 100 |
"required": [ |
| 101 |
"component", |
| 102 |
"variable" |
| 103 |
] |
| 104 |
}, |
| 105 |
"VariableType": { |
| 106 |
"description": "Reference key to a component-variable.\r\n", |
| 107 |
"javaType": "Variable", |
| 108 |
"type": "object", |
| 109 |
"additionalProperties": false, |
| 110 |
"properties": { |
| 111 |
"customData": { |
| 112 |
"$ref": "#/definitions/CustomDataType" |
| 113 |
}, |
| 114 |
"name": { |
| 115 |
"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", |
| 116 |
"type": "string", |
| 117 |
"maxLength": 50 |
| 118 |
}, |
| 119 |
"instance": { |
| 120 |
"description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n", |
| 121 |
"type": "string", |
| 122 |
"maxLength": 50 |
| 123 |
} |
| 124 |
}, |
| 125 |
"required": [ |
| 126 |
"name" |
| 127 |
] |
| 128 |
} |
| 129 |
}, |
| 130 |
"type": "object", |
| 131 |
"additionalProperties": false, |
| 132 |
"properties": { |
| 133 |
"customData": { |
| 134 |
"$ref": "#/definitions/CustomDataType" |
| 135 |
}, |
| 136 |
"getVariableData": { |
| 137 |
"type": "array", |
| 138 |
"additionalItems": false, |
| 139 |
"items": { |
| 140 |
"$ref": "#/definitions/GetVariableDataType" |
| 141 |
}, |
| 142 |
"minItems": 1 |
| 143 |
} |
| 144 |
}, |
| 145 |
"required": [ |
| 146 |
"getVariableData" |
| 147 |
] |
| 148 |
} |