diff --git a/CHANGELOG.md b/CHANGELOG.md index c26deac2b..48f2b4eda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ ## BREAKING ## - [#574](https://github.com/mobilityhouse/ocpp/issues/574) Remove v1.6 deprecated enum members - IMPORTANT see upgrade path [#574](https://github.com/mobilityhouse/ocpp/issues/574) +## BREAKING ## +- [#498](https://github.com/mobilityhouse/ocpp/issues/498) Remove support for OCPP 2.0 - IMPORTANT SEE UPGRADE PATH [#498](https://github.com/mobilityhouse/ocpp/issues/498) + ## 0.26.0 (2024-01-17) - [#544](https://github.com/mobilityhouse/ocpp/issues/544) ocpp/charge_point.py - Pass `Call.unique_id` to the `on` and `after` routing handlers. diff --git a/README.rst b/README.rst index 0df940525..4b32be07d 100644 --- a/README.rst +++ b/README.rst @@ -11,11 +11,23 @@ OCPP ---- Python package implementing the JSON version of the Open Charge Point Protocol -(OCPP). Currently OCPP 1.6 (errata v4), OCPP 2.0 and OCPP 2.0.1 (Final Version) +(OCPP). Currently OCPP 1.6 (errata v4), OCPP 2.0.1 (Edition 2 FINAL, 2022-12-15) are supported. You can find the documentation on `rtd`_. +The purpose of this library is to provide the building blocks to construct a +charging station/charge point and/or charging station management system +(CSMS)/central system. The library does not provide a completed solution, as any +implementation is specific for its intended use. The documents in this library +should be inspected, as these documents provided guidance on how best to +build a complete solution. + +Note: "OCPP 2.0.1 contains fixes for all the known issues, to date, not only +the fixes to the messages. This version replaces OCPP 2.0. OCA advises +implementers of OCPP to no longer implement OCPP 2.0 and only use version +2.0.1 going forward." + Installation ------------ @@ -34,8 +46,9 @@ Or clone the project and install it manually using: Quick start ----------- -Below you can find examples on how to create a simple OCPP 2.0 central system as -well as an OCPP 2.0 charge point. +Below you can find examples on how to create a simple OCPP 1.6 or 2.0.1 Central +System/CSMS as well as the respective OCPP 1.6 or 2.0.1 +Charging Station/Charge Point. .. note:: @@ -45,11 +58,11 @@ well as an OCPP 2.0 charge point. $ pip install websockets -Central system +Charging Station Management System (CSMS) / Central System ~~~~~~~~~~~~~~ -The code snippet below creates a simple OCPP 2.0 central system which is able -to handle BootNotification calls. You can find a detailed explanation of the +The code snippet below creates a simple OCPP 2.0.1 CSMS which +is able to handle BootNotification calls. You can find a detailed explanation of the code in the `Central System documentation`_. @@ -121,7 +134,7 @@ code in the `Central System documentation`_. if __name__ == '__main__': asyncio.run(main()) -Charge point +Charging Station / Charge point ~~~~~~~~~~~~ .. code-block:: python diff --git a/docs/v201/Changelog OCPP 2.0 - 2.0.1.pdf b/docs/v201/Changelog OCPP 2.0 - 2.0.1.pdf deleted file mode 100755 index 0470a6cdd..000000000 Binary files a/docs/v201/Changelog OCPP 2.0 - 2.0.1.pdf and /dev/null differ diff --git a/examples/v20/central_system.py b/examples/v20/central_system.py deleted file mode 100644 index e2823423a..000000000 --- a/examples/v20/central_system.py +++ /dev/null @@ -1,78 +0,0 @@ -import asyncio -import logging -from datetime import datetime - -try: - import websockets -except ModuleNotFoundError: - print("This example relies on the 'websockets' package.") - print("Please install it by running: ") - print() - print(" $ pip install websockets") - import sys - - sys.exit(1) - -from ocpp.routing import on -from ocpp.v20 import ChargePoint as cp -from ocpp.v20 import call_result - -logging.basicConfig(level=logging.INFO) - - -class ChargePoint(cp): - @on("BootNotification") - def on_boot_notification(self, charging_station, reason, **kwargs): - return call_result.BootNotificationPayload( - current_time=datetime.utcnow().isoformat(), interval=10, status="Accepted" - ) - - @on("Heartbeat") - def on_heartbeat(self): - print("Got a Heartbeat!") - return call_result.HeartbeatPayload( - current_time=datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S") + "Z" - ) - - -async def on_connect(websocket, path): - """For every new charge point that connects, create a ChargePoint - instance and start listening for messages. - """ - try: - requested_protocols = websocket.request_headers["Sec-WebSocket-Protocol"] - except KeyError: - logging.error("Client hasn't requested any Subprotocol. Closing Connection") - return await websocket.close() - if websocket.subprotocol: - logging.info("Protocols Matched: %s", websocket.subprotocol) - else: - # In the websockets lib if no subprotocols are supported by the - # client and the server, it proceeds without a subprotocol, - # so we have to manually close the connection. - logging.warning( - "Protocols Mismatched | Expected Subprotocols: %s," - " but client supports %s | Closing connection", - websocket.available_subprotocols, - requested_protocols, - ) - return await websocket.close() - - charge_point_id = path.strip("/") - cp = ChargePoint(charge_point_id, websocket) - - await cp.start() - - -async def main(): - server = await websockets.serve( - on_connect, "0.0.0.0", 9000, subprotocols=["ocpp2.0"] - ) - - logging.info("Server Started listening to new connections...") - await server.wait_closed() - - -if __name__ == "__main__": - # asyncio.run() is used when running this example with Python >= 3.7v - asyncio.run(main()) diff --git a/examples/v20/charge_point.py b/examples/v20/charge_point.py deleted file mode 100644 index a897597c9..000000000 --- a/examples/v20/charge_point.py +++ /dev/null @@ -1,53 +0,0 @@ -import asyncio -import logging - -try: - import websockets -except ModuleNotFoundError: - print("This example relies on the 'websockets' package.") - print("Please install it by running: ") - print() - print(" $ pip install websockets") - import sys - - sys.exit(1) - - -from ocpp.v20 import ChargePoint as cp -from ocpp.v20 import call - -logging.basicConfig(level=logging.INFO) - - -class ChargePoint(cp): - async def send_heartbeat(self, interval): - request = call.HeartbeatPayload() - while True: - await self.call(request) - await asyncio.sleep(interval) - - async def send_boot_notification(self): - request = call.BootNotificationPayload( - charging_station={"model": "Wallbox XYZ", "vendor_name": "anewone"}, - reason="PowerUp", - ) - response = await self.call(request) - - if response.status == "Accepted": - print("Connected to central system.") - await self.send_heartbeat(response.interval) - - -async def main(): - async with websockets.connect( - "ws://localhost:9000/CP_1", subprotocols=["ocpp2.0"] - ) as ws: - - cp = ChargePoint("CP_1", ws) - - await asyncio.gather(cp.start(), cp.send_boot_notification()) - - -if __name__ == "__main__": - # asyncio.run() is used when running this example with Python >= 3.7v - asyncio.run(main()) diff --git a/ocpp/v20/__init__.py b/ocpp/v20/__init__.py deleted file mode 100644 index f054fc49f..000000000 --- a/ocpp/v20/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -from ocpp.charge_point import ChargePoint as cp -from ocpp.v20 import call, call_result - - -class ChargePoint(cp): - _call = call - _call_result = call_result - _ocpp_version = "2.0" diff --git a/ocpp/v20/call.py b/ocpp/v20/call.py deleted file mode 100644 index 13ba974cb..000000000 --- a/ocpp/v20/call.py +++ /dev/null @@ -1,436 +0,0 @@ -from dataclasses import dataclass -from typing import Any, Dict, List, Optional - - -@dataclass -class AuthorizePayload: - id_token: Dict - _15118_certificate_hash_data: Optional[List] = None - evse_id: Optional[List] = None - - -@dataclass -class BootNotificationPayload: - charging_station: Dict - reason: str - - -@dataclass -class CancelReservationPayload: - reservation_id: int - - -@dataclass -class CertificateSignedPayload: - cert: List - type_of_certificate: Optional[str] = None - - -@dataclass -class ChangeAvailabilityPayload: - evse_id: int - operational_status: str - - -@dataclass -class ClearCachePayload: - pass - - -@dataclass -class ClearChargingProfilePayload: - evse_id: Optional[int] = None - charging_profile: Optional[Dict] = None - - -@dataclass -class ClearDisplayMessagePayload: - id: int - - -@dataclass -class ClearVariableMonitoringPayload: - id: List - - -@dataclass -class ClearedChargingLimitPayload: - charging_limit_source: str - evse_id: Optional[int] = None - - -@dataclass -class CostUpdatedPayload: - total_cost: int - transaction_id: str - - -@dataclass -class CustomerInformationPayload: - request_id: int - report: bool - clear: bool - customer_certificate: Optional[Dict] = None - id_token: Optional[Dict] = None - customer_identifier: Optional[str] = None - - -@dataclass -class DataTransferPayload: - vendor_id: str - message_id: Optional[str] = None - data: Any = None - - -@dataclass -class DeleteCertificatePayload: - certificate_hash_data: Dict - - -@dataclass -class FirmwareStatusNotificationPayload: - status: str - request_id: int - - -@dataclass -class Get15118EVCertificatePayload: - _15118_schema_version: str - exi_request: str - - -@dataclass -class GetBaseReportPayload: - request_id: int - report_base: str - - -@dataclass -class GetCertificateStatusPayload: - ocsp_request_data: Dict - - -@dataclass -class GetChargingProfilesPayload: - charging_profile: Dict - request_id: Optional[int] = None - evse_id: Optional[int] = None - - -@dataclass -class GetCompositeSchedulePayload: - duration: int - evse_id: int - charging_rate_unit: Optional[str] = None - - -@dataclass -class GetDisplayMessagesPayload: - request_id: int - priority: Optional[str] = None - state: Optional[str] = None - id: Optional[List] = None - - -@dataclass -class GetInstalledCertificateIdsPayload: - type_of_certificate: str - - -@dataclass -class GetLocalListVersionPayload: - pass - - -@dataclass -class GetLogPayload: - log: Dict - log_type: str - request_id: int - retries: Optional[int] = None - retry_interval: Optional[int] = None - - -@dataclass -class GetMonitoringReportPayload: - component_variable: Optional[List] = None - request_id: Optional[int] = None - monitoring_criteria: Optional[List] = None - - -@dataclass -class GetReportPayload: - component_variable: Optional[List] = None - request_id: Optional[int] = None - component_criteria: Optional[List] = None - - -@dataclass -class GetTransactionStatusPayload: - transaction_id: Optional[str] = None - - -@dataclass -class GetVariablesPayload: - get_variable_data: List - - -@dataclass -class HeartbeatPayload: - pass - - -@dataclass -class InstallCertificatePayload: - certificate_type: str - certificate: str - - -@dataclass -class LogStatusNotificationPayload: - status: str - request_id: int - - -@dataclass -class MeterValuesPayload: - evse_id: int - meter_value: List - - -@dataclass -class NotifyCentralChargingNeedsPayload: - evse_id: int - sa_schedule: List - - -@dataclass -class NotifyChargingLimitPayload: - charging_limit: Dict - charging_schedule: Optional[List] = None - evse_id: Optional[int] = None - - -@dataclass -class NotifyCustomerInformationPayload: - data: str - tbc: bool - seq_no: int - generated_at: str - request_id: Optional[int] = None - - -@dataclass -class NotifyDisplayMessagesPayload: - message_info: List - request_id: int - tbc: bool - - -@dataclass -class NotifyEVChargingNeedsPayload: - charging_needs: Dict - evse_id: int - max_schedule_tuples: Optional[int] = None - - -@dataclass -class NotifyEVChargingSchedulePayload: - time_base: str - charging_schedule: Dict - evse_id: int - - -@dataclass -class NotifyEventPayload: - generated_at: str - tbc: bool - seq_no: int - event_data: List - - -@dataclass -class NotifyMonitoringReportPayload: - monitor: List - tbc: bool - seq_no: int - generated_at: str - request_id: Optional[int] = None - - -@dataclass -class NotifyReportPayload: - generated_at: str - report_data: List - tbc: bool - seq_no: int - request_id: Optional[int] = None - - -@dataclass -class PublishFirmwarePayload: - location: str - checksum: str - retries: Optional[int] = None - - -@dataclass -class PublishFirmwareStatusNotificationPayload: - status: str - location: Optional[str] = None - - -@dataclass -class Renegotiate15118SchedulePayload: - evse: Dict - - -@dataclass -class ReportChargingProfilesPayload: - charging_limit_source: str - charging_profile: List - evse_id: int - request_id: Optional[int] = None - tbc: Optional[bool] = None - - -@dataclass -class RequestStartTransactionPayload: - id_token: Dict - remote_start_id: int - evse_id: Optional[int] = None - charging_profile: Optional[Dict] = None - - -@dataclass -class RequestStopTransactionPayload: - transaction_id: str - - -@dataclass -class ReservationStatusUpdatePayload: - reservation_id: int - reservation_update_status: str - - -@dataclass -class ReserveNowPayload: - id_token: Dict - reservation: Dict - group_id_token: Optional[Dict] = None - - -@dataclass -class ResetPayload: - type: str - - -@dataclass -class SecurityEventNotificationPayload: - type: str - timestamp: str - - -@dataclass -class SendLocalListPayload: - version_number: int - update_type: str - local_authorization_list: Optional[List] = None - - -@dataclass -class SetChargingProfilePayload: - evse_id: int - charging_profile: Dict - - -@dataclass -class SetDisplayMessagePayload: - message: Dict - - -@dataclass -class SetMonitoringBasePayload: - monitoring_base: str - - -@dataclass -class SetMonitoringLevelPayload: - severity: int - - -@dataclass -class SetNetworkProfilePayload: - configuration_slot: int - connection_data: Dict - - -@dataclass -class SetVariableMonitoringPayload: - set_monitoring_data: List - - -@dataclass -class SetVariablesPayload: - set_variable_data: List - - -@dataclass -class SignCertificatePayload: - csr: str - type_of_certificate: Optional[str] = None - - -@dataclass -class StatusNotificationPayload: - timestamp: str - connector_status: str - evse_id: int - connector_id: int - - -@dataclass -class TransactionEventPayload: - event_type: str - timestamp: str - trigger_reason: str - seq_no: int - transaction_data: Dict - meter_value: Optional[List] = None - offline: Optional[bool] = None - number_of_phases_used: Optional[int] = None - cable_max_current: Optional[int] = None - reservation_id: Optional[int] = None - evse: Optional[Dict] = None - id_token: Optional[Dict] = None - - -@dataclass -class TriggerMessagePayload: - requested_message: str - evse: Optional[Dict] = None - - -@dataclass -class UnlockConnectorPayload: - evse_id: int - connector_id: int - - -@dataclass -class UnpublishFirmwarePayload: - checksum: str - - -@dataclass -class Update15118EVCertificatePayload: - _15118_schema_version: str - exi_request: str - - -@dataclass -class UpdateFirmwarePayload: - request_id: int - firmware: Dict - retries: Optional[int] = None - retry_interval: Optional[int] = None diff --git a/ocpp/v20/call_result.py b/ocpp/v20/call_result.py deleted file mode 100644 index 85dbe38c6..000000000 --- a/ocpp/v20/call_result.py +++ /dev/null @@ -1,356 +0,0 @@ -from dataclasses import dataclass -from typing import Any, Dict, List, Optional - - -@dataclass -class AuthorizePayload: - id_token_info: Dict - certificate_status: Optional[str] = None - evse_id: Optional[List] = None - - -@dataclass -class BootNotificationPayload: - current_time: str - interval: int - status: str - - -@dataclass -class CancelReservationPayload: - status: str - - -@dataclass -class CertificateSignedPayload: - status: str - - -@dataclass -class ChangeAvailabilityPayload: - status: str - - -@dataclass -class ClearCachePayload: - status: str - - -@dataclass -class ClearChargingProfilePayload: - status: str - - -@dataclass -class ClearDisplayMessagePayload: - status: str - - -@dataclass -class ClearVariableMonitoringPayload: - clear_monitoring_result: List - - -@dataclass -class ClearedChargingLimitPayload: - pass - - -@dataclass -class CostUpdatedPayload: - pass - - -@dataclass -class CustomerInformationPayload: - status: str - - -@dataclass -class DataTransferPayload: - status: str - data: Any = None - - -@dataclass -class DeleteCertificatePayload: - status: str - - -@dataclass -class FirmwareStatusNotificationPayload: - pass - - -@dataclass -class Get15118EVCertificatePayload: - status: str - sa_provisioning_certificate_chain: Dict - contract_signature_certificate_chain: Dict - exi_response: str - - -@dataclass -class GetBaseReportPayload: - status: str - - -@dataclass -class GetCertificateStatusPayload: - status: str - ocsp_result: Optional[str] = None - - -@dataclass -class GetChargingProfilesPayload: - status: str - - -@dataclass -class GetCompositeSchedulePayload: - status: str - evse_id: int - schedule: Optional[Dict] = None - - -@dataclass -class GetDisplayMessagesPayload: - status: str - - -@dataclass -class GetInstalledCertificateIdsPayload: - status: str - certificate_hash_data: Optional[List] = None - - -@dataclass -class GetLocalListVersionPayload: - version_number: int - - -@dataclass -class GetLogPayload: - status: str - filename: Optional[str] = None - - -@dataclass -class GetMonitoringReportPayload: - status: str - - -@dataclass -class GetReportPayload: - status: str - - -@dataclass -class GetTransactionStatusPayload: - messages_in_queue: bool - ongoing_indicator: Optional[bool] = None - - -@dataclass -class GetVariablesPayload: - get_variable_result: List - - -@dataclass -class HeartbeatPayload: - current_time: str - - -@dataclass -class InstallCertificatePayload: - status: str - - -@dataclass -class LogStatusNotificationPayload: - pass - - -@dataclass -class MeterValuesPayload: - pass - - -@dataclass -class NotifyCentralChargingNeedsPayload: - status: str - - -@dataclass -class NotifyChargingLimitPayload: - pass - - -@dataclass -class NotifyCustomerInformationPayload: - pass - - -@dataclass -class NotifyDisplayMessagesPayload: - pass - - -@dataclass -class NotifyEVChargingNeedsPayload: - status: str - - -@dataclass -class NotifyEVChargingSchedulePayload: - status: str - - -@dataclass -class NotifyEventPayload: - pass - - -@dataclass -class NotifyMonitoringReportPayload: - pass - - -@dataclass -class NotifyReportPayload: - pass - - -@dataclass -class PublishFirmwarePayload: - status: str - - -@dataclass -class PublishFirmwareStatusNotificationPayload: - pass - - -@dataclass -class Renegotiate15118SchedulePayload: - status: str - - -@dataclass -class ReportChargingProfilesPayload: - pass - - -@dataclass -class RequestStartTransactionPayload: - status: str - transaction_id: Optional[str] = None - - -@dataclass -class RequestStopTransactionPayload: - status: str - - -@dataclass -class ReservationStatusUpdatePayload: - pass - - -@dataclass -class ReserveNowPayload: - status: str - - -@dataclass -class ResetPayload: - status: str - - -@dataclass -class SecurityEventNotificationPayload: - pass - - -@dataclass -class SendLocalListPayload: - status: str - - -@dataclass -class SetChargingProfilePayload: - status: str - - -@dataclass -class SetDisplayMessagePayload: - status: str - - -@dataclass -class SetMonitoringBasePayload: - status: str - - -@dataclass -class SetMonitoringLevelPayload: - status: str - - -@dataclass -class SetNetworkProfilePayload: - status: str - - -@dataclass -class SetVariableMonitoringPayload: - set_monitoring_result: List - - -@dataclass -class SetVariablesPayload: - set_variable_result: List - - -@dataclass -class SignCertificatePayload: - status: str - - -@dataclass -class StatusNotificationPayload: - pass - - -@dataclass -class TransactionEventPayload: - total_cost: Optional[int] = None - charging_priority: Optional[int] = None - id_token_info: Optional[Dict] = None - updated_personal_message: Optional[Dict] = None - - -@dataclass -class TriggerMessagePayload: - status: str - - -@dataclass -class UnlockConnectorPayload: - status: str - - -@dataclass -class UnpublishFirmwarePayload: - status: str - - -@dataclass -class Update15118EVCertificatePayload: - status: str - exi_response: Optional[str] = None - - -@dataclass -class UpdateFirmwarePayload: - status: str diff --git a/ocpp/v20/schemas/AuthorizeRequest_v1p0.json b/ocpp/v20/schemas/AuthorizeRequest_v1p0.json deleted file mode 100644 index 55289fcf2..000000000 --- a/ocpp/v20/schemas/AuthorizeRequest_v1p0.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "HashAlgorithmEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "SHA256", - "SHA384", - "SHA512" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "AdditionalInfoType": { - "javaType": "AdditionalInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalIdToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "additionalIdToken", - "type" - ] - }, - "IdTokenType": { - "javaType": "IdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalInfo": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/AdditionalInfoType" - }, - "minItems": 1 - }, - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - }, - "OCSPRequestDataType": { - "javaType": "OCSPRequestData", - "type": "object", - "additionalProperties": true, - "properties": { - "hashAlgorithm": { - "$ref": "#/definitions/HashAlgorithmEnumType" - }, - "issuerNameHash": { - "type": "string", - "maxLength": 128 - }, - "issuerKeyHash": { - "type": "string", - "maxLength": 128 - }, - "serialNumber": { - "type": "string", - "maxLength": 20 - }, - "responderURL": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "hashAlgorithm", - "issuerNameHash", - "issuerKeyHash", - "serialNumber" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "15118CertificateHashData": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/OCSPRequestDataType" - }, - "minItems": 1, - "maxItems": 4 - }, - "idToken": { - "$ref": "#/definitions/IdTokenType" - }, - "evseId": { - "type": "array", - "additionalItems": false, - "items": { - "type": "integer" - }, - "minItems": 1 - } - }, - "required": [ - "idToken" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/AuthorizeResponse_v1p0.json b/ocpp/v20/schemas/AuthorizeResponse_v1p0.json deleted file mode 100644 index 6357990ed..000000000 --- a/ocpp/v20/schemas/AuthorizeResponse_v1p0.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "AuthorizationStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Blocked", - "ConcurrentTx", - "Expired", - "Invalid", - "NoCredit", - "NotAllowedTypeEVSE", - "NotAtThisLocation", - "NotAtThisTime", - "Unknown" - ] - }, - "CertificateStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "SignatureError", - "CertificateExpired", - "CertificateRevoked", - "NoCertificateAvailable", - "CertChainError", - "ContractCancelled" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "MessageFormatEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ASCII", - "HTML", - "URI", - "UTF8" - ] - }, - "GroupIdTokenType": { - "javaType": "GroupIdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - }, - "IdTokenInfoType": { - "javaType": "IdTokenInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "$ref": "#/definitions/AuthorizationStatusEnumType" - }, - "cacheExpiryDateTime": { - "type": "string", - "format": "date-time" - }, - "chargingPriority": { - "type": "integer" - }, - "groupIdToken": { - "$ref": "#/definitions/GroupIdTokenType" - }, - "language1": { - "type": "string", - "maxLength": 8 - }, - "language2": { - "type": "string", - "maxLength": 8 - }, - "personalMessage": { - "$ref": "#/definitions/MessageContentType" - } - }, - "required": [ - "status" - ] - }, - "MessageContentType": { - "javaType": "MessageContent", - "type": "object", - "additionalProperties": true, - "properties": { - "format": { - "$ref": "#/definitions/MessageFormatEnumType" - }, - "language": { - "type": "string", - "maxLength": 8 - }, - "content": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "format", - "content" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "idTokenInfo": { - "$ref": "#/definitions/IdTokenInfoType" - }, - "certificateStatus": { - "$ref": "#/definitions/CertificateStatusEnumType" - }, - "evseId": { - "type": "array", - "additionalItems": false, - "items": { - "type": "integer" - }, - "minItems": 1 - } - }, - "required": [ - "idTokenInfo" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/BootNotificationRequest_v1p0.json b/ocpp/v20/schemas/BootNotificationRequest_v1p0.json deleted file mode 100644 index 39cb2f2a5..000000000 --- a/ocpp/v20/schemas/BootNotificationRequest_v1p0.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "BootReasonEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ApplicationReset", - "FirmwareUpdate", - "LocalReset", - "PowerUp", - "RemoteReset", - "ScheduledReset", - "Triggered", - "Unknown", - "Watchdog" - ] - }, - "ChargingStationType": { - "javaType": "ChargingStation", - "type": "object", - "additionalProperties": true, - "properties": { - "serialNumber": { - "type": "string", - "maxLength": 20 - }, - "model": { - "type": "string", - "maxLength": 20 - }, - "modem": { - "$ref": "#definitions/ModemType" - }, - "vendorName": { - "type": "string", - "maxLength": 50 - }, - "firmwareVersion": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "model", - "vendorName" - ] - }, - "ModemType": { - "javaType": "Modem", - "type": "object", - "additionalProperties": true, - "properties": { - "iccid": { - "type": "string", - "maxLength": 20 - }, - "imsi": { - "type": "string", - "maxLength": 20 - } - } - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "chargingStation": { - "$ref": "#definitions/ChargingStationType" - }, - "reason": { - "$ref": "#definitions/BootReasonEnumType" - } - }, - "required": [ - "reason", - "chargingStation" - ] -} diff --git a/ocpp/v20/schemas/BootNotificationResponse_v1p0.json b/ocpp/v20/schemas/BootNotificationResponse_v1p0.json deleted file mode 100644 index 67443dedf..000000000 --- a/ocpp/v20/schemas/BootNotificationResponse_v1p0.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "currentTime": { - "type": "string", - "format": "date-time" - }, - "interval": { - "type": "integer" - }, - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Pending", - "Rejected" - ] - } - }, - "required": [ - "currentTime", - "interval", - "status" - ] -} diff --git a/ocpp/v20/schemas/CancelReservationRequest_v1p0.json b/ocpp/v20/schemas/CancelReservationRequest_v1p0.json deleted file mode 100644 index 5b14f9983..000000000 --- a/ocpp/v20/schemas/CancelReservationRequest_v1p0.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "reservationId": { - "type": "integer" - } - }, - "required": [ - "reservationId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/CancelReservationResponse_v1p0.json b/ocpp/v20/schemas/CancelReservationResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/CancelReservationResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/CertificateSignedRequest_v1p0.json b/ocpp/v20/schemas/CertificateSignedRequest_v1p0.json deleted file mode 100644 index 30b364aec..000000000 --- a/ocpp/v20/schemas/CertificateSignedRequest_v1p0.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "cert": { - "type": "array", - "additionalItems": false, - "items": { - "type": "string", - "maxLength": 800 - }, - "minItems": 1 - }, - "typeOfCertificate": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ChargingStationCertificate", - "V2GCertificate" - ] - } - }, - "required": [ - "cert" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/CertificateSignedResponse_v1p0.json b/ocpp/v20/schemas/CertificateSignedResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/CertificateSignedResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ChangeAvailabilityRequest_v1p0.json b/ocpp/v20/schemas/ChangeAvailabilityRequest_v1p0.json deleted file mode 100644 index 966cc849a..000000000 --- a/ocpp/v20/schemas/ChangeAvailabilityRequest_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "evseId": { - "type": "integer" - }, - "operationalStatus": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Inoperative", - "Operative" - ] - } - }, - "required": [ - "evseId", - "operationalStatus" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ChangeAvailabilityResponse_v1p0.json b/ocpp/v20/schemas/ChangeAvailabilityResponse_v1p0.json deleted file mode 100644 index e839d6d2d..000000000 --- a/ocpp/v20/schemas/ChangeAvailabilityResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "Scheduled" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearCacheRequest_v1p0.json b/ocpp/v20/schemas/ClearCacheRequest_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/ClearCacheRequest_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearCacheResponse_v1p0.json b/ocpp/v20/schemas/ClearCacheResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/ClearCacheResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearChargingProfileRequest_v1p0.json b/ocpp/v20/schemas/ClearChargingProfileRequest_v1p0.json deleted file mode 100644 index 8aabba8f1..000000000 --- a/ocpp/v20/schemas/ClearChargingProfileRequest_v1p0.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingProfilePurposeEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ChargingStationExternalConstraints", - "ChargingStationMaxProfile", - "TxDefaultProfile", - "TxProfile" - ] - }, - "ClearChargingProfileType": { - "javaType": "ClearChargingProfile", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "chargingProfilePurpose": { - "$ref": "#/definitions/ChargingProfilePurposeEnumType" - }, - "stackLevel": { - "type": "integer" - } - } - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "evseId": { - "type": "integer" - }, - "chargingProfile": { - "$ref": "#/definitions/ClearChargingProfileType" - } - } -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearChargingProfileResponse_v1p0.json b/ocpp/v20/schemas/ClearChargingProfileResponse_v1p0.json deleted file mode 100644 index ad87cc90f..000000000 --- a/ocpp/v20/schemas/ClearChargingProfileResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Unknown" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearDisplayMessageRequest_v1p0.json b/ocpp/v20/schemas/ClearDisplayMessageRequest_v1p0.json deleted file mode 100644 index c7250726e..000000000 --- a/ocpp/v20/schemas/ClearDisplayMessageRequest_v1p0.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - } - }, - "required": [ - "id" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearDisplayMessageResponse_v1p0.json b/ocpp/v20/schemas/ClearDisplayMessageResponse_v1p0.json deleted file mode 100644 index ad87cc90f..000000000 --- a/ocpp/v20/schemas/ClearDisplayMessageResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Unknown" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearVariableMonitoringRequest_v1p0.json b/ocpp/v20/schemas/ClearVariableMonitoringRequest_v1p0.json deleted file mode 100644 index e9bb48ca0..000000000 --- a/ocpp/v20/schemas/ClearVariableMonitoringRequest_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "array", - "additionalItems": false, - "items": { - "type": "integer" - }, - "minItems": 1 - } - }, - "required": [ - "id" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearVariableMonitoringResponse_v1p0.json b/ocpp/v20/schemas/ClearVariableMonitoringResponse_v1p0.json deleted file mode 100644 index 56b783762..000000000 --- a/ocpp/v20/schemas/ClearVariableMonitoringResponse_v1p0.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ClearMonitoringStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "NotFound" - ] - }, - "ClearMonitoringResultType": { - "javaType": "ClearMonitoringResult", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "status": { - "$ref": "#/definitions/ClearMonitoringStatusEnumType" - } - }, - "required": [ - "id", - "status" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "clearMonitoringResult": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ClearMonitoringResultType" - }, - "minItems": 1 - } - }, - "required": [ - "clearMonitoringResult" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearedChargingLimitRequest_v1p0.json b/ocpp/v20/schemas/ClearedChargingLimitRequest_v1p0.json deleted file mode 100644 index cbcb5e330..000000000 --- a/ocpp/v20/schemas/ClearedChargingLimitRequest_v1p0.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "chargingLimitSource": { - "type": "string", - "additionalProperties": true, - "enum": [ - "EMS", - "Other", - "SO", - "CSO" - ] - }, - "evseId": { - "type": "integer" - } - }, - "required": [ - "chargingLimitSource" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ClearedChargingLimitResponse_v1p0.json b/ocpp/v20/schemas/ClearedChargingLimitResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/ClearedChargingLimitResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/CostUpdatedRequest_v1p0.json b/ocpp/v20/schemas/CostUpdatedRequest_v1p0.json deleted file mode 100644 index 4808f7aaf..000000000 --- a/ocpp/v20/schemas/CostUpdatedRequest_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "totalCost": { - "type": "number" - }, - "transactionId": { - "type": "string", - "maxLength": 36 - } - }, - "required": [ - "totalCost", - "transactionId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/CostUpdatedResponse_v1p0.json b/ocpp/v20/schemas/CostUpdatedResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/CostUpdatedResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/CustomerInformationRequest_v1p0.json b/ocpp/v20/schemas/CustomerInformationRequest_v1p0.json deleted file mode 100644 index c924d3365..000000000 --- a/ocpp/v20/schemas/CustomerInformationRequest_v1p0.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "HashAlgorithmEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "SHA256", - "SHA384", - "SHA512" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "AdditionalInfoType": { - "javaType": "AdditionalInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalIdToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "additionalIdToken", - "type" - ] - }, - "CertificateHashDataType": { - "javaType": "CertificateHashData", - "type": "object", - "additionalProperties": true, - "properties": { - "hashAlgorithm": { - "$ref": "#/definitions/HashAlgorithmEnumType" - }, - "issuerNameHash": { - "type": "string", - "maxLength": 128 - }, - "issuerKeyHash": { - "type": "string", - "maxLength": 128 - }, - "serialNumber": { - "type": "string", - "maxLength": 20 - } - }, - "required": [ - "hashAlgorithm", - "issuerNameHash", - "issuerKeyHash", - "serialNumber" - ] - }, - "IdTokenType": { - "javaType": "IdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalInfo": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/AdditionalInfoType" - }, - "minItems": 1 - }, - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "customerCertificate": { - "$ref": "#/definitions/CertificateHashDataType" - }, - "idToken": { - "$ref": "#/definitions/IdTokenType" - }, - "requestId": { - "type": "integer" - }, - "report": { - "type": "boolean" - }, - "clear": { - "type": "boolean" - }, - "customerIdentifier": { - "type": "string", - "maxLength": 64 - } - }, - "required": [ - "requestId", - "report", - "clear" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/CustomerInformationResponse_v1p0.json b/ocpp/v20/schemas/CustomerInformationResponse_v1p0.json deleted file mode 100644 index cad77599b..000000000 --- a/ocpp/v20/schemas/CustomerInformationResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "Invalid" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/DataTransferRequest_v1p0.json b/ocpp/v20/schemas/DataTransferRequest_v1p0.json deleted file mode 100644 index 3ed1736e5..000000000 --- a/ocpp/v20/schemas/DataTransferRequest_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "messageId": { - "type": "string", - "maxLength": 50 - }, - "data": {}, - "vendorId": { - "type": "string", - "maxLength": 255 - } - }, - "required": [ - "vendorId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/DataTransferResponse_v1p0.json b/ocpp/v20/schemas/DataTransferResponse_v1p0.json deleted file mode 100644 index d5d5cb412..000000000 --- a/ocpp/v20/schemas/DataTransferResponse_v1p0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "UnknownMessageId", - "UnknownVendorId" - ] - }, - "data": {} - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/DeleteCertificateRequest_v1p0.json b/ocpp/v20/schemas/DeleteCertificateRequest_v1p0.json deleted file mode 100644 index 0fa6fd63a..000000000 --- a/ocpp/v20/schemas/DeleteCertificateRequest_v1p0.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "HashAlgorithmEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "SHA256", - "SHA384", - "SHA512" - ] - }, - "CertificateHashDataType": { - "javaType": "CertificateHashData", - "type": "object", - "additionalProperties": true, - "properties": { - "hashAlgorithm": { - "$ref": "#/definitions/HashAlgorithmEnumType" - }, - "issuerNameHash": { - "type": "string", - "maxLength": 128 - }, - "issuerKeyHash": { - "type": "string", - "maxLength": 128 - }, - "serialNumber": { - "type": "string", - "maxLength": 20 - } - }, - "required": [ - "hashAlgorithm", - "issuerNameHash", - "issuerKeyHash", - "serialNumber" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "certificateHashData": { - "$ref": "#/definitions/CertificateHashDataType" - } - }, - "required": [ - "certificateHashData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/DeleteCertificateResponse_v1p0.json b/ocpp/v20/schemas/DeleteCertificateResponse_v1p0.json deleted file mode 100644 index 57dfea8c9..000000000 --- a/ocpp/v20/schemas/DeleteCertificateResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Failed", - "NotFound" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/FirmwareStatusNotificationRequest_v1p0.json b/ocpp/v20/schemas/FirmwareStatusNotificationRequest_v1p0.json deleted file mode 100644 index 665e04274..000000000 --- a/ocpp/v20/schemas/FirmwareStatusNotificationRequest_v1p0.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "CertificateVerified", - "Downloaded", - "DownloadFailed", - "Downloading", - "DownloadScheduled", - "DownloadPaused", - "Idle", - "InstallationFailed", - "Installing", - "Installed", - "InstallRebooting", - "InstallScheduled", - "InstallVerificationFailed", - "InvalidSignature", - "InvalidCertificate", - "RevokedCertificate", - "PublishFailed", - "SignatureVerified" - ] - }, - "requestId": { - "type": "integer" - } - }, - "required": [ - "status", - "requestId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/FirmwareStatusNotificationResponse_v1p0.json b/ocpp/v20/schemas/FirmwareStatusNotificationResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/FirmwareStatusNotificationResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/Get15118EVCertificateRequest_v1p0.json b/ocpp/v20/schemas/Get15118EVCertificateRequest_v1p0.json deleted file mode 100644 index 694c39fdf..000000000 --- a/ocpp/v20/schemas/Get15118EVCertificateRequest_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "15118SchemaVersion": { - "type": "string", - "maxLength": 50 - }, - "exiRequest": { - "type": "string", - "maxLength": 5500 - } - }, - "required": [ - "15118SchemaVersion", - "exiRequest" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/Get15118EVCertificateResponse_v1p0.json b/ocpp/v20/schemas/Get15118EVCertificateResponse_v1p0.json deleted file mode 100644 index ec8c444df..000000000 --- a/ocpp/v20/schemas/Get15118EVCertificateResponse_v1p0.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "15118EVCertificateStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Failed" - ] - }, - "CertificateChainType": { - "javaType": "CertificateChain", - "type": "object", - "additionalProperties": true, - "properties": { - "certificate": { - "type": "string", - "maxLength": 800 - }, - "childCertificate": { - "type": "array", - "additionalItems": false, - "items": { - "type": "string", - "maxLength": 800 - }, - "minItems": 1, - "maxItems": 4 - } - }, - "required": [ - "certificate" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "$ref": "#/definitions/15118EVCertificateStatusEnumType" - }, - "saProvisioningCertificateChain": { - "$ref": "#/definitions/CertificateChainType" - }, - "contractSignatureCertificateChain": { - "$ref": "#/definitions/CertificateChainType" - }, - "exiResponse": { - "type": "string", - "maxLength": 5500 - } - }, - "required": [ - "status", - "exiResponse", - "contractSignatureCertificateChain", - "saProvisioningCertificateChain" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetBaseReportRequest_v1p0.json b/ocpp/v20/schemas/GetBaseReportRequest_v1p0.json deleted file mode 100644 index 7c6807414..000000000 --- a/ocpp/v20/schemas/GetBaseReportRequest_v1p0.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "requestId": { - "type": "integer" - }, - "reportBase": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ConfigurationInventory", - "FullInventory", - "SummaryInventory" - ] - } - }, - "required": [ - "requestId", - "reportBase" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetBaseReportResponse_v1p0.json b/ocpp/v20/schemas/GetBaseReportResponse_v1p0.json deleted file mode 100644 index 59370c308..000000000 --- a/ocpp/v20/schemas/GetBaseReportResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "NotSupported" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetCertificateStatusRequest_v1p0.json b/ocpp/v20/schemas/GetCertificateStatusRequest_v1p0.json deleted file mode 100644 index e3b6e8349..000000000 --- a/ocpp/v20/schemas/GetCertificateStatusRequest_v1p0.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "HashAlgorithmEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "SHA256", - "SHA384", - "SHA512" - ] - }, - "OCSPRequestDataType": { - "javaType": "OCSPRequestData", - "type": "object", - "additionalProperties": true, - "properties": { - "hashAlgorithm": { - "$ref": "#/definitions/HashAlgorithmEnumType" - }, - "issuerNameHash": { - "type": "string", - "maxLength": 128 - }, - "issuerKeyHash": { - "type": "string", - "maxLength": 128 - }, - "serialNumber": { - "type": "string", - "maxLength": 20 - }, - "responderURL": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "hashAlgorithm", - "issuerNameHash", - "issuerKeyHash", - "serialNumber" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "ocspRequestData": { - "$ref": "#/definitions/OCSPRequestDataType" - } - }, - "required": [ - "ocspRequestData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetCertificateStatusResponse_v1p0.json b/ocpp/v20/schemas/GetCertificateStatusResponse_v1p0.json deleted file mode 100644 index f2023c411..000000000 --- a/ocpp/v20/schemas/GetCertificateStatusResponse_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - }, - "ocspResult": { - "type": "string", - "maxLength": 5500 - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetChargingProfilesRequest_v1p0.json b/ocpp/v20/schemas/GetChargingProfilesRequest_v1p0.json deleted file mode 100644 index b9e695c6e..000000000 --- a/ocpp/v20/schemas/GetChargingProfilesRequest_v1p0.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingLimitSourceEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "EMS", - "Other", - "SO", - "CSO" - ] - }, - "ChargingProfilePurposeEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ChargingStationExternalConstraints", - "ChargingStationMaxProfile", - "TxDefaultProfile", - "TxProfile" - ] - }, - "ChargingProfileCriterionType": { - "javaType": "ChargingProfileCriterion", - "type": "object", - "additionalProperties": true, - "properties": { - "chargingProfilePurpose": { - "$ref": "#/definitions/ChargingProfilePurposeEnumType" - }, - "stackLevel": { - "type": "integer" - }, - "chargingProfileId": { - "type": "array", - "additionalItems": false, - "items": { - "type": "integer" - }, - "minItems": 1 - }, - "chargingLimitSource": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingLimitSourceEnumType" - }, - "minItems": 1, - "maxItems": 4 - } - } - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "requestId": { - "type": "integer" - }, - "evseId": { - "type": "integer" - }, - "chargingProfile": { - "$ref": "#/definitions/ChargingProfileCriterionType" - } - }, - "required": [ - "chargingProfile" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetChargingProfilesResponse_v1p0.json b/ocpp/v20/schemas/GetChargingProfilesResponse_v1p0.json deleted file mode 100644 index fc17a6a6c..000000000 --- a/ocpp/v20/schemas/GetChargingProfilesResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "NoProfiles" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetCompositeScheduleRequest_v1p0.json b/ocpp/v20/schemas/GetCompositeScheduleRequest_v1p0.json deleted file mode 100644 index 2ebb65a05..000000000 --- a/ocpp/v20/schemas/GetCompositeScheduleRequest_v1p0.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "duration": { - "type": "integer" - }, - "chargingRateUnit": { - "type": "string", - "additionalProperties": true, - "enum": [ - "W", - "A" - ] - }, - "evseId": { - "type": "integer" - } - }, - "required": [ - "duration", - "evseId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetCompositeScheduleResponse_v1p0.json b/ocpp/v20/schemas/GetCompositeScheduleResponse_v1p0.json deleted file mode 100644 index aba5a9991..000000000 --- a/ocpp/v20/schemas/GetCompositeScheduleResponse_v1p0.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingRateUnitEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "W", - "A" - ] - }, - "GetCompositeScheduleStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - }, - "ChargingSchedulePeriodType": { - "javaType": "ChargingSchedulePeriod", - "type": "object", - "additionalProperties": true, - "properties": { - "startPeriod": { - "type": "integer" - }, - "limit": { - "type": "number" - }, - "numberPhases": { - "type": "integer" - }, - "phaseToUse": { - "type": "integer" - } - }, - "required": [ - "startPeriod", - "limit" - ] - }, - "ChargingScheduleType": { - "javaType": "ChargingSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "startSchedule": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "integer" - }, - "chargingRateUnit": { - "$ref": "#/definitions/ChargingRateUnitEnumType" - }, - "chargingSchedulePeriod": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingSchedulePeriodType" - }, - "minItems": 1 - }, - "minChargingRate": { - "type": "number" - } - }, - "required": [ - "chargingRateUnit" - ] - }, - "CompositeScheduleType": { - "javaType": "CompositeSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "startDateTime": { - "type": "string", - "format": "date-time" - }, - "chargingSchedule": { - "$ref": "#/definitions/ChargingScheduleType" - } - } - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "$ref": "#/definitions/GetCompositeScheduleStatusEnumType" - }, - "evseId": { - "type": "integer" - }, - "schedule": { - "$ref": "#/definitions/CompositeScheduleType" - } - }, - "required": [ - "status", - "evseId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetDisplayMessagesRequest_v1p0.json b/ocpp/v20/schemas/GetDisplayMessagesRequest_v1p0.json deleted file mode 100644 index be91864cf..000000000 --- a/ocpp/v20/schemas/GetDisplayMessagesRequest_v1p0.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "requestId": { - "type": "integer" - }, - "priority": { - "type": "string", - "additionalProperties": true, - "enum": [ - "AlwaysFront", - "InFront", - "NormalCycle" - ] - }, - "state": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Charging", - "Faulted", - "Idle", - "Unavailable" - ] - }, - "id": { - "type": "array", - "additionalItems": false, - "items": { - "type": "integer" - }, - "minItems": 1 - } - }, - "required": [ - "requestId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetDisplayMessagesResponse_v1p0.json b/ocpp/v20/schemas/GetDisplayMessagesResponse_v1p0.json deleted file mode 100644 index ad87cc90f..000000000 --- a/ocpp/v20/schemas/GetDisplayMessagesResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Unknown" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetInstalledCertificateIdsRequest_v1p0.json b/ocpp/v20/schemas/GetInstalledCertificateIdsRequest_v1p0.json deleted file mode 100644 index 648297f7f..000000000 --- a/ocpp/v20/schemas/GetInstalledCertificateIdsRequest_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "typeOfCertificate": { - "type": "string", - "additionalProperties": true, - "enum": [ - "V2GRootCertficate", - "MORootCertificate", - "CSOSubCA1", - "CSOSubCA2", - "CSMSRootCertificate", - "ManufacturerRootCertificate" - ] - } - }, - "required": [ - "typeOfCertificate" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetInstalledCertificateIdsResponse_v1p0.json b/ocpp/v20/schemas/GetInstalledCertificateIdsResponse_v1p0.json deleted file mode 100644 index 1397f9605..000000000 --- a/ocpp/v20/schemas/GetInstalledCertificateIdsResponse_v1p0.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "GetInstalledCertificateStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "NotFound" - ] - }, - "HashAlgorithmEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "SHA256", - "SHA384", - "SHA512" - ] - }, - "CertificateHashDataType": { - "javaType": "CertificateHashData", - "type": "object", - "additionalProperties": true, - "properties": { - "hashAlgorithm": { - "$ref": "#/definitions/HashAlgorithmEnumType" - }, - "issuerNameHash": { - "type": "string", - "maxLength": 128 - }, - "issuerKeyHash": { - "type": "string", - "maxLength": 128 - }, - "serialNumber": { - "type": "string", - "maxLength": 20 - } - }, - "required": [ - "hashAlgorithm", - "issuerNameHash", - "issuerKeyHash", - "serialNumber" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "certificateHashData": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/CertificateHashDataType" - }, - "minItems": 1 - }, - "status": { - "$ref": "#/definitions/GetInstalledCertificateStatusEnumType" - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetLocalListVersionRequest_v1p0.json b/ocpp/v20/schemas/GetLocalListVersionRequest_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/GetLocalListVersionRequest_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetLocalListVersionResponse_v1p0.json b/ocpp/v20/schemas/GetLocalListVersionResponse_v1p0.json deleted file mode 100644 index 29c3e8648..000000000 --- a/ocpp/v20/schemas/GetLocalListVersionResponse_v1p0.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "versionNumber": { - "type": "integer" - } - }, - "required": [ - "versionNumber" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetLogRequest_v1p0.json b/ocpp/v20/schemas/GetLogRequest_v1p0.json deleted file mode 100644 index 0d7633572..000000000 --- a/ocpp/v20/schemas/GetLogRequest_v1p0.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "LogEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "DiagnosticsLog", - "SecurityLog" - ] - }, - "LogParametersType": { - "javaType": "LogParameters", - "type": "object", - "additionalProperties": true, - "properties": { - "remoteLocation": { - "type": "string", - "maxLength": 512 - }, - "oldestTimestamp": { - "type": "string", - "format": "date-time" - }, - "latestTimestamp": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "remoteLocation" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "log": { - "$ref": "#/definitions/LogParametersType" - }, - "logType": { - "$ref": "#/definitions/LogEnumType" - }, - "requestId": { - "type": "integer" - }, - "retries": { - "type": "integer" - }, - "retryInterval": { - "type": "integer" - } - }, - "required": [ - "logType", - "requestId", - "log" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetLogResponse_v1p0.json b/ocpp/v20/schemas/GetLogResponse_v1p0.json deleted file mode 100644 index a75ceadce..000000000 --- a/ocpp/v20/schemas/GetLogResponse_v1p0.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "AcceptedCanceled" - ] - }, - "filename": { - "type": "string", - "maxLength": 255 - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetMonitoringReportRequest_v1p0.json b/ocpp/v20/schemas/GetMonitoringReportRequest_v1p0.json deleted file mode 100644 index 2e0a3dba0..000000000 --- a/ocpp/v20/schemas/GetMonitoringReportRequest_v1p0.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "MonitoringCriterionEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ThresholdMonitoring", - "DeltaMonitoring", - "PeriodicMonitoring" - ] - }, - "ComponentType": { - "javaType": "Component", - "type": "object", - "additionalProperties": true, - "properties": { - "evse": { - "$ref": "#/definitions/EVSEType" - }, - "name": { - "type": "string", - "maxLength": 50 - }, - "instance": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "name" - ] - }, - "ComponentVariableType": { - "javaType": "ComponentVariable", - "type": "object", - "additionalProperties": true, - "properties": { - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - } - }, - "required": [ - "component", - "variable" - ] - }, - "EVSEType": { - "javaType": "EVSE", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - }, - "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": { - "componentVariable": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ComponentVariableType" - }, - "minItems": 1 - }, - "requestId": { - "type": "integer" - }, - "monitoringCriteria": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/MonitoringCriterionEnumType" - }, - "minItems": 1, - "maxItems": 3 - } - } -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetMonitoringReportResponse_v1p0.json b/ocpp/v20/schemas/GetMonitoringReportResponse_v1p0.json deleted file mode 100644 index 59370c308..000000000 --- a/ocpp/v20/schemas/GetMonitoringReportResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "NotSupported" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetReportRequest_v1p0.json b/ocpp/v20/schemas/GetReportRequest_v1p0.json deleted file mode 100644 index cf71d20e1..000000000 --- a/ocpp/v20/schemas/GetReportRequest_v1p0.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ComponentCriterionEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Active", - "Available", - "Enabled", - "Problem" - ] - }, - "ComponentType": { - "javaType": "Component", - "type": "object", - "additionalProperties": true, - "properties": { - "evse": { - "$ref": "#/definitions/EVSEType" - }, - "name": { - "type": "string", - "maxLength": 50 - }, - "instance": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "name" - ] - }, - "ComponentVariableType": { - "javaType": "ComponentVariable", - "type": "object", - "additionalProperties": true, - "properties": { - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - } - }, - "required": [ - "component", - "variable" - ] - }, - "EVSEType": { - "javaType": "EVSE", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - }, - "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": { - "componentVariable": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ComponentVariableType" - }, - "minItems": 1 - }, - "requestId": { - "type": "integer" - }, - "componentCriteria": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ComponentCriterionEnumType" - }, - "minItems": 1, - "maxItems": 4 - } - } -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetReportResponse_v1p0.json b/ocpp/v20/schemas/GetReportResponse_v1p0.json deleted file mode 100644 index 59370c308..000000000 --- a/ocpp/v20/schemas/GetReportResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "NotSupported" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetTransactionStatusRequest_v1p0.json b/ocpp/v20/schemas/GetTransactionStatusRequest_v1p0.json deleted file mode 100644 index 0368c5043..000000000 --- a/ocpp/v20/schemas/GetTransactionStatusRequest_v1p0.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "transactionId": { - "type": "string", - "maxLength": 36 - } - } -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetTransactionStatusResponse_v1p0.json b/ocpp/v20/schemas/GetTransactionStatusResponse_v1p0.json deleted file mode 100644 index 814f585f4..000000000 --- a/ocpp/v20/schemas/GetTransactionStatusResponse_v1p0.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "ongoingIndicator": { - "type": "boolean" - }, - "messagesInQueue": { - "type": "boolean" - } - }, - "required": [ - "messagesInQueue" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetVariablesRequest_v1p0.json b/ocpp/v20/schemas/GetVariablesRequest_v1p0.json deleted file mode 100644 index 4282b4273..000000000 --- a/ocpp/v20/schemas/GetVariablesRequest_v1p0.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "AttributeEnumType": { - "type": "string", - "default": "Actual", - "additionalProperties": true, - "enum": [ - "Actual", - "Target", - "MinSet", - "MaxSet" - ] - }, - "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" - ] - }, - "GetVariableDataType": { - "javaType": "GetVariableData", - "type": "object", - "additionalProperties": true, - "properties": { - "attributeType": { - "$ref": "#/definitions/AttributeEnumType" - }, - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - } - }, - "required": [ - "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": { - "getVariableData": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/GetVariableDataType" - }, - "minItems": 1 - } - }, - "required": [ - "getVariableData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/GetVariablesResponse_v1p0.json b/ocpp/v20/schemas/GetVariablesResponse_v1p0.json deleted file mode 100644 index e96e68eda..000000000 --- a/ocpp/v20/schemas/GetVariablesResponse_v1p0.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "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" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/HeartbeatRequest_v1p0.json b/ocpp/v20/schemas/HeartbeatRequest_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/HeartbeatRequest_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/HeartbeatResponse_v1p0.json b/ocpp/v20/schemas/HeartbeatResponse_v1p0.json deleted file mode 100644 index f303de207..000000000 --- a/ocpp/v20/schemas/HeartbeatResponse_v1p0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "currentTime": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "currentTime" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/InstallCertificateRequest_v1p0.json b/ocpp/v20/schemas/InstallCertificateRequest_v1p0.json deleted file mode 100644 index 93f123ac8..000000000 --- a/ocpp/v20/schemas/InstallCertificateRequest_v1p0.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "certificateType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "V2GRootCertficate", - "MORootCertificate", - "CSOSubCA1", - "CSOSubCA2", - "CSMSRootCertificate", - "ManufacturerRootCertificate" - ] - }, - "certificate": { - "type": "string", - "maxLength": 800 - } - }, - "required": [ - "certificateType", - "certificate" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/InstallCertificateResponse_v1p0.json b/ocpp/v20/schemas/InstallCertificateResponse_v1p0.json deleted file mode 100644 index 89939d4ae..000000000 --- a/ocpp/v20/schemas/InstallCertificateResponse_v1p0.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "SignatureError", - "CertificateExpired", - "CertificateRevoked", - "NoCertificateAvailable", - "CertChainError", - "ContractCancelled" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/LogStatusNotificationRequest_v1p0.json b/ocpp/v20/schemas/LogStatusNotificationRequest_v1p0.json deleted file mode 100644 index b5cb62e74..000000000 --- a/ocpp/v20/schemas/LogStatusNotificationRequest_v1p0.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "BadMessage", - "Idle", - "NotSupportedOperation", - "PermissionDenied", - "Uploaded", - "UploadFailure", - "Uploading" - ] - }, - "requestId": { - "type": "integer" - } - }, - "required": [ - "status", - "requestId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/LogStatusNotificationResponse_v1p0.json b/ocpp/v20/schemas/LogStatusNotificationResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/LogStatusNotificationResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/MeterValuesRequest_v1p0.json b/ocpp/v20/schemas/MeterValuesRequest_v1p0.json deleted file mode 100644 index 9d984d534..000000000 --- a/ocpp/v20/schemas/MeterValuesRequest_v1p0.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "EncodingMethodEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Other", - "DLMS Message", - "COSEM Protected Data", - "EDL" - ] - }, - "LocationEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Body", - "Cable", - "EV", - "Inlet", - "Outlet" - ] - }, - "MeasurandEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Current.Export", - "Current.Import", - "Current.Offered", - "Energy.Active.Export.Register", - "Energy.Active.Import.Register", - "Energy.Reactive.Export.Register", - "Energy.Reactive.Import.Register", - "Energy.Active.Export.Interval", - "Energy.Active.Import.Interval", - "Energy.Active.Net", - "Energy.Reactive.Export.Interval", - "Energy.Reactive.Import.Interval", - "Energy.Reactive.Net", - "Energy.Apparent.Net", - "Energy.Apparent.Import", - "Energy.Apparent.Export", - "Frequency", - "Power.Active.Export", - "Power.Active.Import", - "Power.Factor", - "Power.Offered", - "Power.Reactive.Export", - "Power.Reactive.Import", - "SoC", - "Voltage" - ] - }, - "PhaseEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "L1", - "L2", - "L3", - "N", - "L1-N", - "L2-N", - "L3-N", - "L1-L2", - "L2-L3", - "L3-L1" - ] - }, - "ReadingContextEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Interruption.Begin", - "Interruption.End", - "Other", - "Sample.Clock", - "Sample.Periodic", - "Transaction.Begin", - "Transaction.End", - "Trigger" - ] - }, - "SignatureMethodEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ECDSAP256SHA256", - "ECDSAP384SHA384", - "ECDSA192SHA256" - ] - }, - "MeterValueType": { - "javaType": "MeterValue", - "type": "object", - "additionalProperties": true, - "properties": { - "sampledValue": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/SampledValueType" - }, - "minItems": 1 - }, - "timestamp": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "timestamp", - "sampledValue" - ] - }, - "SampledValueType": { - "javaType": "SampledValue", - "type": "object", - "additionalProperties": true, - "properties": { - "value": { - "type": "number" - }, - "context": { - "$ref": "#/definitions/ReadingContextEnumType" - }, - "measurand": { - "$ref": "#/definitions/MeasurandEnumType" - }, - "phase": { - "$ref": "#/definitions/PhaseEnumType" - }, - "location": { - "$ref": "#/definitions/LocationEnumType" - }, - "signedMeterValue": { - "$ref": "#/definitions/SignedMeterValueType" - }, - "unitOfMeasure": { - "$ref": "#/definitions/UnitOfMeasureType" - } - }, - "required": [ - "value" - ] - }, - "SignedMeterValueType": { - "javaType": "SignedMeterValue", - "type": "object", - "additionalProperties": true, - "properties": { - "meterValueSignature": { - "type": "string", - "maxLength": 2500 - }, - "signatureMethod": { - "$ref": "#/definitions/SignatureMethodEnumType" - }, - "encodingMethod": { - "$ref": "#/definitions/EncodingMethodEnumType" - }, - "encodedMeterValue": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "meterValueSignature", - "signatureMethod", - "encodingMethod", - "encodedMeterValue" - ] - }, - "UnitOfMeasureType": { - "javaType": "UnitOfMeasure", - "type": "object", - "additionalProperties": true, - "properties": { - "unit": { - "type": "string", - "maxLength": 20 - }, - "multiplier": { - "type": "integer" - } - } - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "evseId": { - "type": "integer" - }, - "meterValue": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/MeterValueType" - }, - "minItems": 1 - } - }, - "required": [ - "evseId", - "meterValue" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/MeterValuesResponse_v1p0.json b/ocpp/v20/schemas/MeterValuesResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/MeterValuesResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyCentralChargingNeedsRequest_v1p0.json b/ocpp/v20/schemas/NotifyCentralChargingNeedsRequest_v1p0.json deleted file mode 100644 index 5de029edf..000000000 --- a/ocpp/v20/schemas/NotifyCentralChargingNeedsRequest_v1p0.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "CostKindEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "CarbonDioxideEmission", - "RelativePricePercentage", - "RenewableGenerationPercentage" - ] - }, - "ConsumptionCostType": { - "javaType": "ConsumptionCost", - "type": "object", - "additionalProperties": true, - "properties": { - "startValue": { - "type": "number" - }, - "cost": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/CostType" - }, - "minItems": 1, - "maxItems": 3 - } - }, - "required": [ - "startValue", - "cost" - ] - }, - "CostType": { - "javaType": "Cost", - "type": "object", - "additionalProperties": true, - "properties": { - "costKind": { - "$ref": "#/definitions/CostKindEnumType" - }, - "amount": { - "type": "number" - }, - "amountMultiplier": { - "type": "integer" - } - }, - "required": [ - "costKind", - "amount" - ] - }, - "PMaxScheduleType": { - "javaType": "PMaxSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "relativeTimeInterval": { - "$ref": "#/definitions/RelativeTimeIntervalType" - }, - "pMax": { - "type": "number" - } - }, - "required": [ - "pMax", - "relativeTimeInterval" - ] - }, - "RelativeTimeIntervalType": { - "javaType": "RelativeTimeInterval", - "type": "object", - "additionalProperties": true, - "properties": { - "start": { - "type": "integer" - }, - "duration": { - "type": "integer" - } - }, - "required": [ - "start" - ] - }, - "SalesTariffEntryType": { - "javaType": "SalesTariffEntry", - "type": "object", - "additionalProperties": true, - "properties": { - "relativeTimeInterval": { - "$ref": "#/definitions/RelativeTimeIntervalType" - }, - "ePriceLevel": { - "type": "integer", - "minimum": 0.0 - }, - "consumptionCost": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ConsumptionCostType" - }, - "minItems": 1, - "maxItems": 3 - } - } - }, - "SalesTariffType": { - "javaType": "SalesTariff", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "salesTariffDescription": { - "type": "string", - "maxLength": 32 - }, - "numEPriceLevels": { - "type": "integer" - }, - "salesTariffEntry": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/SalesTariffEntryType" - }, - "minItems": 1, - "maxItems": 1024 - } - }, - "required": [ - "id", - "salesTariffEntry" - ] - }, - "SAScheduleType": { - "javaType": "SASchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "pMaxSchedule": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/PMaxScheduleType" - }, - "minItems": 1, - "maxItems": 1024 - }, - "saScheduleTupleID": { - "type": "integer" - }, - "salesTariff": { - "$ref": "#/definitions/SalesTariffType" - } - }, - "required": [ - "saScheduleTupleID", - "pMaxSchedule" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "evseId": { - "type": "integer" - }, - "saSchedule": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/SAScheduleType" - }, - "minItems": 1, - "maxItems": 3 - } - }, - "required": [ - "evseId", - "saSchedule" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyCentralChargingNeedsResponse_v1p0.json b/ocpp/v20/schemas/NotifyCentralChargingNeedsResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/NotifyCentralChargingNeedsResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyChargingLimitRequest_v1p0.json b/ocpp/v20/schemas/NotifyChargingLimitRequest_v1p0.json deleted file mode 100644 index f96fdb2b3..000000000 --- a/ocpp/v20/schemas/NotifyChargingLimitRequest_v1p0.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingLimitSourceEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "EMS", - "Other", - "SO", - "CSO" - ] - }, - "ChargingRateUnitEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "W", - "A" - ] - }, - "ChargingLimitType": { - "javaType": "ChargingLimit", - "type": "object", - "additionalProperties": true, - "properties": { - "chargingLimitSource": { - "$ref": "#/definitions/ChargingLimitSourceEnumType" - }, - "isGridCritical": { - "type": "boolean" - } - }, - "required": [ - "chargingLimitSource" - ] - }, - "ChargingSchedulePeriodType": { - "javaType": "ChargingSchedulePeriod", - "type": "object", - "additionalProperties": true, - "properties": { - "startPeriod": { - "type": "integer" - }, - "limit": { - "type": "number" - }, - "numberPhases": { - "type": "integer" - }, - "phaseToUse": { - "type": "integer" - } - }, - "required": [ - "startPeriod", - "limit" - ] - }, - "ChargingScheduleType": { - "javaType": "ChargingSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "startSchedule": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "integer" - }, - "chargingRateUnit": { - "$ref": "#/definitions/ChargingRateUnitEnumType" - }, - "chargingSchedulePeriod": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingSchedulePeriodType" - }, - "minItems": 1 - }, - "minChargingRate": { - "type": "number" - } - }, - "required": [ - "chargingRateUnit", - "chargingSchedulePeriod" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "chargingSchedule": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingScheduleType" - }, - "minItems": 1 - }, - "evseId": { - "type": "integer" - }, - "chargingLimit": { - "$ref": "#/definitions/ChargingLimitType" - } - }, - "required": [ - "chargingLimit" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyChargingLimitResponse_v1p0.json b/ocpp/v20/schemas/NotifyChargingLimitResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/NotifyChargingLimitResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyCustomerInformationRequest_v1p0.json b/ocpp/v20/schemas/NotifyCustomerInformationRequest_v1p0.json deleted file mode 100644 index b9086c1d2..000000000 --- a/ocpp/v20/schemas/NotifyCustomerInformationRequest_v1p0.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "data": { - "type": "string", - "maxLength": 512 - }, - "tbc": { - "type": "boolean" - }, - "seqNo": { - "type": "integer" - }, - "generatedAt": { - "type": "string", - "format": "date-time" - }, - "requestId": { - "type": "integer" - } - }, - "required": [ - "data", - "tbc", - "seqNo", - "generatedAt" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyCustomerInformationResponse_v1p0.json b/ocpp/v20/schemas/NotifyCustomerInformationResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/NotifyCustomerInformationResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyDisplayMessagesRequest_v1p0.json b/ocpp/v20/schemas/NotifyDisplayMessagesRequest_v1p0.json deleted file mode 100644 index a404c1882..000000000 --- a/ocpp/v20/schemas/NotifyDisplayMessagesRequest_v1p0.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "MessageFormatEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ASCII", - "HTML", - "URI", - "UTF8" - ] - }, - "MessagePriorityEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "AlwaysFront", - "InFront", - "NormalCycle" - ] - }, - "MessageStateEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Charging", - "Faulted", - "Idle", - "Unavailable" - ] - }, - "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" - ] - }, - "MessageContentType": { - "javaType": "MessageContent", - "type": "object", - "additionalProperties": true, - "properties": { - "format": { - "$ref": "#/definitions/MessageFormatEnumType" - }, - "language": { - "type": "string", - "maxLength": 8 - }, - "content": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "format", - "content" - ] - }, - "MessageInfoType": { - "javaType": "MessageInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "display": { - "$ref": "#/definitions/ComponentType" - }, - "id": { - "type": "integer" - }, - "priority": { - "$ref": "#/definitions/MessagePriorityEnumType" - }, - "state": { - "$ref": "#/definitions/MessageStateEnumType" - }, - "startDateTime": { - "type": "string", - "format": "date-time" - }, - "endDateTime": { - "type": "string", - "format": "date-time" - }, - "transactionId": { - "type": "string", - "maxLength": 36 - }, - "message": { - "$ref": "#/definitions/MessageContentType" - } - }, - "required": [ - "id", - "priority", - "message" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "messageInfo": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/MessageInfoType" - }, - "minItems": 1 - }, - "requestId": { - "type": "integer" - }, - "tbc": { - "type": "boolean" - } - }, - "required": [ - "requestId", - "tbc", - "messageInfo" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyDisplayMessagesResponse_v1p0.json b/ocpp/v20/schemas/NotifyDisplayMessagesResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/NotifyDisplayMessagesResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyEVChargingNeedsRequest_v1p0.json b/ocpp/v20/schemas/NotifyEVChargingNeedsRequest_v1p0.json deleted file mode 100644 index 6515826df..000000000 --- a/ocpp/v20/schemas/NotifyEVChargingNeedsRequest_v1p0.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "EnergyTransferModeEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "AC_single_phase_core", - "AC_three_phase_core", - "DC_combo_core", - "DC_core", - "DC_extended", - "DC_unique" - ] - }, - "ACChargingParametersType": { - "javaType": "ACChargingParameters", - "type": "object", - "additionalProperties": true, - "properties": { - "energyAmount": { - "type": "integer" - }, - "evMinCurrent": { - "type": "integer" - }, - "evMaxCurrent": { - "type": "integer" - }, - "evMaxVoltage": { - "type": "integer" - } - }, - "required": [ - "energyAmount", - "evMinCurrent", - "evMaxCurrent", - "evMaxVoltage" - ] - }, - "ChargingNeedsType": { - "javaType": "ChargingNeeds", - "type": "object", - "additionalProperties": true, - "properties": { - "acChargingParameters": { - "$ref": "#/definitions/ACChargingParametersType" - }, - "dcChargingParameters": { - "$ref": "#/definitions/DCChargingParametersType" - }, - "requestedEnergyTransfer": { - "$ref": "#/definitions/EnergyTransferModeEnumType" - }, - "departureTime": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "requestedEnergyTransfer" - ] - }, - "DCChargingParametersType": { - "javaType": "DCChargingParameters", - "type": "object", - "additionalProperties": true, - "properties": { - "evMaxCurrent": { - "type": "integer" - }, - "evMaxVoltage": { - "type": "integer" - }, - "energyAmount": { - "type": "integer" - }, - "evMaxPower": { - "type": "integer" - }, - "stateOfCharge": { - "type": "integer", - "minimum": 0.0, - "maximum": 100.0 - }, - "evEnergyCapacity": { - "type": "integer" - }, - "fullSoC": { - "type": "integer", - "minimum": 0.0, - "maximum": 100.0 - }, - "bulkSoC": { - "type": "integer", - "minimum": 0.0, - "maximum": 100.0 - } - }, - "required": [ - "evMaxCurrent", - "evMaxVoltage" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "maxScheduleTuples": { - "type": "integer" - }, - "chargingNeeds": { - "$ref": "#/definitions/ChargingNeedsType" - }, - "evseId": { - "type": "integer" - } - }, - "required": [ - "evseId", - "chargingNeeds" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyEVChargingNeedsResponse_v1p0.json b/ocpp/v20/schemas/NotifyEVChargingNeedsResponse_v1p0.json deleted file mode 100644 index 268f2a526..000000000 --- a/ocpp/v20/schemas/NotifyEVChargingNeedsResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "Processing" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyEVChargingScheduleRequest_v1p0.json b/ocpp/v20/schemas/NotifyEVChargingScheduleRequest_v1p0.json deleted file mode 100644 index 1bc701127..000000000 --- a/ocpp/v20/schemas/NotifyEVChargingScheduleRequest_v1p0.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingRateUnitEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "W", - "A" - ] - }, - "ChargingSchedulePeriodType": { - "javaType": "ChargingSchedulePeriod", - "type": "object", - "additionalProperties": true, - "properties": { - "startPeriod": { - "type": "integer" - }, - "limit": { - "type": "number" - }, - "numberPhases": { - "type": "integer" - }, - "phaseToUse": { - "type": "integer" - } - }, - "required": [ - "startPeriod", - "limit" - ] - }, - "ChargingScheduleType": { - "javaType": "ChargingSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "startSchedule": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "integer" - }, - "chargingRateUnit": { - "$ref": "#/definitions/ChargingRateUnitEnumType" - }, - "chargingSchedulePeriod": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingSchedulePeriodType" - }, - "minItems": 1 - }, - "minChargingRate": { - "type": "number" - } - }, - "required": [ - "chargingRateUnit" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "timeBase": { - "type": "string", - "format": "date-time" - }, - "chargingSchedule": { - "$ref": "#/definitions/ChargingScheduleType" - }, - "evseId": { - "type": "integer" - } - }, - "required": [ - "timeBase", - "evseId", - "chargingSchedule" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyEVChargingScheduleResponse_v1p0.json b/ocpp/v20/schemas/NotifyEVChargingScheduleResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/NotifyEVChargingScheduleResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyEventRequest_v1p0.json b/ocpp/v20/schemas/NotifyEventRequest_v1p0.json deleted file mode 100644 index dbb136f20..000000000 --- a/ocpp/v20/schemas/NotifyEventRequest_v1p0.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "EventTriggerEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Alerting", - "Delta", - "Periodic" - ] - }, - "MonitorEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "UpperThreshold", - "LowerThreshold", - "Delta", - "Periodic", - "PeriodicClockAligned" - ] - }, - "ComponentType": { - "javaType": "Component", - "type": "object", - "additionalProperties": true, - "properties": { - "evse": { - "$ref": "#/definitions/EVSEType" - }, - "name": { - "type": "string", - "maxLength": 50 - }, - "instance": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "name" - ] - }, - "EventDataType": { - "javaType": "EventData", - "type": "object", - "additionalProperties": true, - "properties": { - "eventId": { - "type": "integer" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "trigger": { - "$ref": "#/definitions/EventTriggerEnumType" - }, - "cause": { - "type": "integer" - }, - "actualValue": { - "type": "string", - "maxLength": 1000 - }, - "techCode": { - "type": "string", - "maxLength": 50 - }, - "techInfo": { - "type": "string", - "maxLength": 500 - }, - "cleared": { - "type": "boolean" - }, - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - }, - "variableMonitoringEvent": { - "$ref": "#/definitions/VariableMonitoringType" - } - }, - "required": [ - "eventId", - "timestamp", - "trigger", - "actualValue", - "cleared", - "component", - "variable" - ] - }, - "EVSEType": { - "javaType": "EVSE", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - }, - "VariableMonitoringType": { - "javaType": "VariableMonitoring", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "value": { - "type": "number" - }, - "type": { - "$ref": "#/definitions/MonitorEnumType" - }, - "severity": { - "type": "integer" - }, - "transaction": { - "type": "boolean" - } - }, - "required": [ - "id", - "value", - "type", - "severity", - "transaction" - ] - }, - "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": { - "generatedAt": { - "type": "string", - "format": "date-time" - }, - "tbc": { - "type": "boolean", - "default": "false" - }, - "seqNo": { - "type": "integer" - }, - "eventData": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/EventDataType" - }, - "minItems": 1 - } - }, - "required": [ - "generatedAt", - "tbc", - "seqNo", - "eventData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyEventResponse_v1p0.json b/ocpp/v20/schemas/NotifyEventResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/NotifyEventResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyMonitoringReportRequest_v1p0.json b/ocpp/v20/schemas/NotifyMonitoringReportRequest_v1p0.json deleted file mode 100644 index ffb72d82d..000000000 --- a/ocpp/v20/schemas/NotifyMonitoringReportRequest_v1p0.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "MonitorEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "UpperThreshold", - "LowerThreshold", - "Delta", - "Periodic", - "PeriodicClockAligned" - ] - }, - "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" - ] - }, - "MonitoringDataType": { - "javaType": "MonitoringData", - "type": "object", - "additionalProperties": true, - "properties": { - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - }, - "variableMonitoring": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/VariableMonitoringType" - }, - "minItems": 1 - } - }, - "required": [ - "component", - "variable", - "variableMonitoring" - ] - }, - "VariableMonitoringType": { - "javaType": "VariableMonitoring", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "value": { - "type": "number" - }, - "type": { - "$ref": "#/definitions/MonitorEnumType" - }, - "severity": { - "type": "integer" - }, - "transaction": { - "type": "boolean" - } - }, - "required": [ - "id", - "value", - "type", - "severity", - "transaction" - ] - }, - "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": { - "monitor": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/MonitoringDataType" - }, - "minItems": 1 - }, - "requestId": { - "type": "integer" - }, - "tbc": { - "type": "boolean", - "default": "false" - }, - "seqNo": { - "type": "integer" - }, - "generatedAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "tbc", - "seqNo", - "generatedAt", - "monitor" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyMonitoringReportResponse_v1p0.json b/ocpp/v20/schemas/NotifyMonitoringReportResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/NotifyMonitoringReportResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyReportRequest_v1p0.json b/ocpp/v20/schemas/NotifyReportRequest_v1p0.json deleted file mode 100644 index e374d2a3f..000000000 --- a/ocpp/v20/schemas/NotifyReportRequest_v1p0.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "AttributeEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Actual", - "Target", - "MinSet", - "MaxSet" - ] - }, - "DataEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "string", - "decimal", - "integer", - "dateTime", - "boolean", - "OptionList", - "SequenceList", - "MemberList" - ] - }, - "MutabilityEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ReadOnly", - "WriteOnly", - "ReadWrite" - ] - }, - "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" - ] - }, - "ReportDataType": { - "javaType": "ReportData", - "type": "object", - "additionalProperties": true, - "properties": { - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - }, - "variableAttribute": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/VariableAttributeType" - }, - "minItems": 1, - "maxItems": 4 - }, - "variableCharacteristics": { - "$ref": "#/definitions/VariableCharacteristicsType" - } - }, - "required": [ - "component", - "variable", - "variableAttribute" - ] - }, - "VariableAttributeType": { - "javaType": "VariableAttribute", - "type": "object", - "additionalProperties": true, - "properties": { - "type": { - "$ref": "#/definitions/AttributeEnumType" - }, - "value": { - "type": "string", - "maxLength": 1000 - }, - "mutability": { - "$ref": "#/definitions/MutabilityEnumType" - }, - "persistence": { - "type": "boolean" - }, - "constant": { - "type": "boolean" - } - }, - "required": [ - "value", - "persistence", - "constant" - ] - }, - "VariableCharacteristicsType": { - "javaType": "VariableCharacteristics", - "type": "object", - "additionalProperties": true, - "properties": { - "unit": { - "type": "string", - "maxLength": 16 - }, - "dataType": { - "$ref": "#/definitions/DataEnumType" - }, - "minLimit": { - "type": "number" - }, - "maxLimit": { - "type": "number" - }, - "valuesList": { - "type": "string", - "maxLength": 1000 - }, - "supportsMonitoring": { - "type": "boolean" - } - }, - "required": [ - "dataType", - "supportsMonitoring" - ] - }, - "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": { - "requestId": { - "type": "integer" - }, - "generatedAt": { - "type": "string", - "format": "date-time" - }, - "reportData": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ReportDataType" - }, - "minItems": 1 - }, - "tbc": { - "type": "boolean", - "default": "false" - }, - "seqNo": { - "type": "integer" - } - }, - "required": [ - "generatedAt", - "tbc", - "seqNo", - "reportData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/NotifyReportResponse_v1p0.json b/ocpp/v20/schemas/NotifyReportResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/NotifyReportResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/PublishFirmwareRequest_v1p0.json b/ocpp/v20/schemas/PublishFirmwareRequest_v1p0.json deleted file mode 100644 index dae0dd788..000000000 --- a/ocpp/v20/schemas/PublishFirmwareRequest_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "location": { - "type": "string", - "maxLength": 512 - }, - "retries": { - "type": "integer" - }, - "checksum": { - "type": "string", - "maxLength": 32 - } - }, - "required": [ - "location", - "checksum" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/PublishFirmwareResponse_v1p0.json b/ocpp/v20/schemas/PublishFirmwareResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/PublishFirmwareResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/PublishFirmwareStatusNotificationRequest_v1p0.json b/ocpp/v20/schemas/PublishFirmwareStatusNotificationRequest_v1p0.json deleted file mode 100644 index ec224a7bd..000000000 --- a/ocpp/v20/schemas/PublishFirmwareStatusNotificationRequest_v1p0.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Downloaded", - "DownloadFailed", - "Downloading", - "DownloadScheduled", - "DownloadPaused", - "PublishFailed", - "Published", - "InvalidChecksum", - "ChecksumVerified" - ] - }, - "location": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "status" - ] -} diff --git a/ocpp/v20/schemas/PublishFirmwareStatusNotificationResponse_v1p0.json b/ocpp/v20/schemas/PublishFirmwareStatusNotificationResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/PublishFirmwareStatusNotificationResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/Renegotiate15118ScheduleRequest_v1p0.json b/ocpp/v20/schemas/Renegotiate15118ScheduleRequest_v1p0.json deleted file mode 100644 index 6ed92a5ac..000000000 --- a/ocpp/v20/schemas/Renegotiate15118ScheduleRequest_v1p0.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "EVSEType": { - "javaType": "EVSE", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "evse": { - "$ref": "#/definitions/EVSEType" - } - }, - "required": [ - "evse" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/Renegotiate15118ScheduleResponse_v1p0.json b/ocpp/v20/schemas/Renegotiate15118ScheduleResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/Renegotiate15118ScheduleResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ReportChargingProfilesRequest_v1p0.json b/ocpp/v20/schemas/ReportChargingProfilesRequest_v1p0.json deleted file mode 100644 index f2e4eac81..000000000 --- a/ocpp/v20/schemas/ReportChargingProfilesRequest_v1p0.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingLimitSourceEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "EMS", - "Other", - "SO", - "CSO" - ] - }, - "ChargingProfileKindEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Absolute", - "Recurring", - "Relative" - ] - }, - "ChargingProfilePurposeEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ChargingStationExternalConstraints", - "ChargingStationMaxProfile", - "TxDefaultProfile", - "TxProfile" - ] - }, - "ChargingRateUnitEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "W", - "A" - ] - }, - "RecurrencyKindEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Daily", - "Weekly" - ] - }, - "ChargingProfileType": { - "javaType": "ChargingProfile", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "stackLevel": { - "type": "integer" - }, - "primary": { - "type": "boolean" - }, - "chargingProfilePurpose": { - "$ref": "#/definitions/ChargingProfilePurposeEnumType" - }, - "chargingProfileKind": { - "$ref": "#/definitions/ChargingProfileKindEnumType" - }, - "recurrencyKind": { - "$ref": "#/definitions/RecurrencyKindEnumType" - }, - "validFrom": { - "type": "string", - "format": "date-time" - }, - "validTo": { - "type": "string", - "format": "date-time" - }, - "chargingSchedule": { - "$ref": "#/definitions/ChargingScheduleType" - }, - "transactionId": { - "type": "string", - "maxLength": 36 - } - }, - "required": [ - "id", - "stackLevel", - "chargingProfilePurpose", - "chargingProfileKind", - "chargingSchedule" - ] - }, - "ChargingSchedulePeriodType": { - "javaType": "ChargingSchedulePeriod", - "type": "object", - "additionalProperties": true, - "properties": { - "startPeriod": { - "type": "integer" - }, - "limit": { - "type": "number" - }, - "numberPhases": { - "type": "integer" - }, - "phaseToUse": { - "type": "integer" - } - }, - "required": [ - "startPeriod", - "limit" - ] - }, - "ChargingScheduleType": { - "javaType": "ChargingSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "startSchedule": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "integer" - }, - "chargingRateUnit": { - "$ref": "#/definitions/ChargingRateUnitEnumType" - }, - "chargingSchedulePeriod": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingSchedulePeriodType" - }, - "minItems": 1 - }, - "minChargingRate": { - "type": "number" - } - }, - "required": [ - "chargingRateUnit", - "chargingSchedulePeriod" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "requestId": { - "type": "integer" - }, - "chargingLimitSource": { - "$ref": "#/definitions/ChargingLimitSourceEnumType" - }, - "chargingProfile": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingProfileType" - }, - "minItems": 1 - }, - "tbc": { - "type": "boolean" - }, - "evseId": { - "type": "integer" - } - }, - "required": [ - "chargingLimitSource", - "evseId", - "chargingProfile" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ReportChargingProfilesResponse_v1p0.json b/ocpp/v20/schemas/ReportChargingProfilesResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/ReportChargingProfilesResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/RequestStartTransactionRequest_v1p0.json b/ocpp/v20/schemas/RequestStartTransactionRequest_v1p0.json deleted file mode 100644 index 5305d28dd..000000000 --- a/ocpp/v20/schemas/RequestStartTransactionRequest_v1p0.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingProfileKindEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Absolute", - "Recurring", - "Relative" - ] - }, - "ChargingProfilePurposeEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ChargingStationExternalConstraints", - "ChargingStationMaxProfile", - "TxDefaultProfile", - "TxProfile" - ] - }, - "ChargingRateUnitEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "W", - "A" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "RecurrencyKindEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Daily", - "Weekly" - ] - }, - "AdditionalInfoType": { - "javaType": "AdditionalInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalIdToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "additionalIdToken", - "type" - ] - }, - "ChargingProfileType": { - "javaType": "ChargingProfile", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "stackLevel": { - "type": "integer" - }, - "primary": { - "type": "boolean" - }, - "chargingProfilePurpose": { - "$ref": "#/definitions/ChargingProfilePurposeEnumType" - }, - "chargingProfileKind": { - "$ref": "#/definitions/ChargingProfileKindEnumType" - }, - "recurrencyKind": { - "$ref": "#/definitions/RecurrencyKindEnumType" - }, - "validFrom": { - "type": "string", - "format": "date-time" - }, - "validTo": { - "type": "string", - "format": "date-time" - }, - "chargingSchedule": { - "$ref": "#/definitions/ChargingScheduleType" - }, - "transactionId": { - "type": "string", - "maxLength": 36 - } - }, - "required": [ - "id", - "stackLevel", - "chargingProfilePurpose", - "chargingProfileKind", - "chargingSchedule" - ] - }, - "ChargingSchedulePeriodType": { - "javaType": "ChargingSchedulePeriod", - "type": "object", - "additionalProperties": true, - "properties": { - "startPeriod": { - "type": "integer" - }, - "limit": { - "type": "number" - }, - "numberPhases": { - "type": "integer" - }, - "phaseToUse": { - "type": "integer" - } - }, - "required": [ - "startPeriod", - "limit" - ] - }, - "ChargingScheduleType": { - "javaType": "ChargingSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "startSchedule": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "integer" - }, - "chargingRateUnit": { - "$ref": "#/definitions/ChargingRateUnitEnumType" - }, - "chargingSchedulePeriod": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingSchedulePeriodType" - }, - "minItems": 1 - }, - "minChargingRate": { - "type": "number" - } - }, - "required": [ - "chargingRateUnit", - "chargingSchedulePeriod" - ] - }, - "IdTokenType": { - "javaType": "IdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalInfo": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/AdditionalInfoType" - }, - "minItems": 1 - }, - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "evseId": { - "type": "integer" - }, - "idToken": { - "$ref": "#/definitions/IdTokenType" - }, - "remoteStartId": { - "type": "integer" - }, - "chargingProfile": { - "$ref": "#/definitions/ChargingProfileType" - } - }, - "required": [ - "remoteStartId", - "idToken" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/RequestStartTransactionResponse_v1p0.json b/ocpp/v20/schemas/RequestStartTransactionResponse_v1p0.json deleted file mode 100644 index 3ed196659..000000000 --- a/ocpp/v20/schemas/RequestStartTransactionResponse_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - }, - "transactionId": { - "type": "string", - "maxLength": 36 - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/RequestStopTransactionRequest_v1p0.json b/ocpp/v20/schemas/RequestStopTransactionRequest_v1p0.json deleted file mode 100644 index c07587106..000000000 --- a/ocpp/v20/schemas/RequestStopTransactionRequest_v1p0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "transactionId": { - "type": "string", - "maxLength": 36 - } - }, - "required": [ - "transactionId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/RequestStopTransactionResponse_v1p0.json b/ocpp/v20/schemas/RequestStopTransactionResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/RequestStopTransactionResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ReservationStatusUpdateRequest_v1p0.json b/ocpp/v20/schemas/ReservationStatusUpdateRequest_v1p0.json deleted file mode 100644 index 615f9cad6..000000000 --- a/ocpp/v20/schemas/ReservationStatusUpdateRequest_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "reservationId": { - "type": "integer" - }, - "reservationUpdateStatus": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Expired", - "Removed" - ] - } - }, - "required": [ - "reservationId", - "reservationUpdateStatus" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ReservationStatusUpdateResponse_v1p0.json b/ocpp/v20/schemas/ReservationStatusUpdateResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/ReservationStatusUpdateResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ReserveNowRequest_v1p0.json b/ocpp/v20/schemas/ReserveNowRequest_v1p0.json deleted file mode 100644 index f0198bcdf..000000000 --- a/ocpp/v20/schemas/ReserveNowRequest_v1p0.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ConnectorEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "cCCS1", - "cCCS2", - "cG105", - "cTesla", - "cType1", - "cType2", - "s309-1P-16A", - "s309-1P-32A", - "s309-3P-16A", - "s309-3P-32A", - "sBS1361", - "sCEE-7-7", - "sType2", - "sType3", - "Other1PhMax16A", - "Other1PhOver16A", - "Other3Ph", - "Pan", - "wInductive", - "wResonant", - "Undetermined", - "Unknown" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "AdditionalInfoType": { - "javaType": "AdditionalInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalIdToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "additionalIdToken", - "type" - ] - }, - "EVSEType": { - "javaType": "EVSE", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - }, - "IdTokenType": { - "javaType": "IdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalInfo": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/AdditionalInfoType" - }, - "minItems": 1 - }, - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - }, - "ReservationType": { - "javaType": "Reservation", - "type": "object", - "additionalProperties": true, - "properties": { - "evse": { - "$ref": "#/definitions/EVSEType" - }, - "id": { - "type": "integer" - }, - "expiryDateTime": { - "type": "string", - "format": "date-time" - }, - "connectorCode": { - "$ref": "#/definitions/ConnectorEnumType" - } - }, - "required": [ - "id", - "expiryDateTime", - "evse" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "idToken": { - "$ref": "#/definitions/IdTokenType" - }, - "groupIdToken": { - "$ref": "#/definitions/IdTokenType" - }, - "reservation": { - "$ref": "#/definitions/ReservationType" - } - }, - "required": [ - "idToken", - "reservation" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ReserveNowResponse_v1p0.json b/ocpp/v20/schemas/ReserveNowResponse_v1p0.json deleted file mode 100644 index da6ea53ac..000000000 --- a/ocpp/v20/schemas/ReserveNowResponse_v1p0.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Faulted", - "Occupied", - "Rejected", - "Unavailable" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ResetRequest_v1p0.json b/ocpp/v20/schemas/ResetRequest_v1p0.json deleted file mode 100644 index c52f98a68..000000000 --- a/ocpp/v20/schemas/ResetRequest_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "type": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Immediate", - "OnIdle" - ] - } - }, - "required": [ - "type" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/ResetResponse_v1p0.json b/ocpp/v20/schemas/ResetResponse_v1p0.json deleted file mode 100644 index e839d6d2d..000000000 --- a/ocpp/v20/schemas/ResetResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "Scheduled" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SecurityEventNotificationRequest_v1p0.json b/ocpp/v20/schemas/SecurityEventNotificationRequest_v1p0.json deleted file mode 100644 index d2ea5defe..000000000 --- a/ocpp/v20/schemas/SecurityEventNotificationRequest_v1p0.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "type": { - "type": "string", - "additionalProperties": true, - "enum": [ - "FirmwareUpdated", - "FailedToAuthenticateAtCsms", - "CsmsFailedToAuthenticate", - "SettingSystemTime", - "StartupOfTheDevice", - "ResetOrReboot", - "SecurityLogWasCleared", - "ReconfigurationOfSecurityParameters", - "MemoryExhaustion", - "InvalidMessages", - "AttemptedReplayAttacks", - "TamperDetectionActivated", - "InvalidFirmwareSignature", - "InvalidFirmwareSigningCertificate", - "InvalidCsmsCertificate", - "InvalidChargingStationCertificate", - "InvalidTLSVersion", - "InvalidTLSCipherSuite" - ] - }, - "timestamp": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "type", - "timestamp" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SecurityEventNotificationResponse_v1p0.json b/ocpp/v20/schemas/SecurityEventNotificationResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/SecurityEventNotificationResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SendLocalListRequest_v1p0.json b/ocpp/v20/schemas/SendLocalListRequest_v1p0.json deleted file mode 100644 index 6482dc2e2..000000000 --- a/ocpp/v20/schemas/SendLocalListRequest_v1p0.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "AuthorizationStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Blocked", - "ConcurrentTx", - "Expired", - "Invalid", - "NoCredit", - "NotAllowedTypeEVSE", - "NotAtThisLocation", - "NotAtThisTime", - "Unknown" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "MessageFormatEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ASCII", - "HTML", - "URI", - "UTF8" - ] - }, - "UpdateEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Differential", - "Full" - ] - }, - "AdditionalInfoType": { - "javaType": "AdditionalInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalIdToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "additionalIdToken", - "type" - ] - }, - "AuthorizationData": { - "javaType": "AuthorizationData", - "type": "object", - "additionalProperties": true, - "properties": { - "idToken": { - "$ref": "#/definitions/IdTokenType" - }, - "idTokenInfo": { - "$ref": "#/definitions/IdTokenInfoType" - } - }, - "required": [ - "idToken" - ] - }, - "GroupIdTokenType": { - "javaType": "GroupIdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - }, - "IdTokenInfoType": { - "javaType": "IdTokenInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "$ref": "#/definitions/AuthorizationStatusEnumType" - }, - "cacheExpiryDateTime": { - "type": "string", - "format": "date-time" - }, - "chargingPriority": { - "type": "integer" - }, - "groupIdToken": { - "$ref": "#/definitions/GroupIdTokenType" - }, - "language1": { - "type": "string", - "maxLength": 8 - }, - "language2": { - "type": "string", - "maxLength": 8 - }, - "personalMessage": { - "$ref": "#/definitions/MessageContentType" - } - }, - "required": [ - "status" - ] - }, - "IdTokenType": { - "javaType": "IdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalInfo": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/AdditionalInfoType" - }, - "minItems": 1 - }, - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - }, - "MessageContentType": { - "javaType": "MessageContent", - "type": "object", - "additionalProperties": true, - "properties": { - "format": { - "$ref": "#/definitions/MessageFormatEnumType" - }, - "language": { - "type": "string", - "maxLength": 8 - }, - "content": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "format", - "content" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "localAuthorizationList": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/AuthorizationData" - }, - "minItems": 1 - }, - "versionNumber": { - "type": "integer" - }, - "updateType": { - "$ref": "#/definitions/UpdateEnumType" - } - }, - "required": [ - "versionNumber", - "updateType" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SendLocalListResponse_v1p0.json b/ocpp/v20/schemas/SendLocalListResponse_v1p0.json deleted file mode 100644 index 8fd3949aa..000000000 --- a/ocpp/v20/schemas/SendLocalListResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Failed", - "VersionMismatch" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetChargingProfileRequest_v1p0.json b/ocpp/v20/schemas/SetChargingProfileRequest_v1p0.json deleted file mode 100644 index bdf6023d8..000000000 --- a/ocpp/v20/schemas/SetChargingProfileRequest_v1p0.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingProfileKindEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Absolute", - "Recurring", - "Relative" - ] - }, - "ChargingProfilePurposeEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ChargingStationExternalConstraints", - "ChargingStationMaxProfile", - "TxDefaultProfile", - "TxProfile" - ] - }, - "ChargingRateUnitEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "W", - "A" - ] - }, - "RecurrencyKindEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Daily", - "Weekly" - ] - }, - "ChargingProfileType": { - "javaType": "ChargingProfile", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "stackLevel": { - "type": "integer" - }, - "primary": { - "type": "boolean" - }, - "chargingProfilePurpose": { - "$ref": "#/definitions/ChargingProfilePurposeEnumType" - }, - "chargingProfileKind": { - "$ref": "#/definitions/ChargingProfileKindEnumType" - }, - "recurrencyKind": { - "$ref": "#/definitions/RecurrencyKindEnumType" - }, - "validFrom": { - "type": "string", - "format": "date-time" - }, - "validTo": { - "type": "string", - "format": "date-time" - }, - "chargingSchedule": { - "$ref": "#/definitions/ChargingScheduleType" - }, - "transactionId": { - "type": "string", - "maxLength": 36 - } - }, - "required": [ - "id", - "stackLevel", - "chargingProfilePurpose", - "chargingProfileKind", - "chargingSchedule" - ] - }, - "ChargingSchedulePeriodType": { - "javaType": "ChargingSchedulePeriod", - "type": "object", - "additionalProperties": true, - "properties": { - "startPeriod": { - "type": "integer" - }, - "limit": { - "type": "number" - }, - "numberPhases": { - "type": "integer" - }, - "phaseToUse": { - "type": "integer" - } - }, - "required": [ - "startPeriod", - "limit" - ] - }, - "ChargingScheduleType": { - "javaType": "ChargingSchedule", - "type": "object", - "additionalProperties": true, - "properties": { - "startSchedule": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "integer" - }, - "chargingRateUnit": { - "$ref": "#/definitions/ChargingRateUnitEnumType" - }, - "chargingSchedulePeriod": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/ChargingSchedulePeriodType" - }, - "minItems": 1 - }, - "minChargingRate": { - "type": "number" - } - }, - "required": [ - "chargingRateUnit", - "chargingSchedulePeriod" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "evseId": { - "type": "integer" - }, - "chargingProfile": { - "$ref": "#/definitions/ChargingProfileType" - } - }, - "required": [ - "evseId", - "chargingProfile" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetChargingProfileResponse_v1p0.json b/ocpp/v20/schemas/SetChargingProfileResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/SetChargingProfileResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetDisplayMessageRequest_v1p0.json b/ocpp/v20/schemas/SetDisplayMessageRequest_v1p0.json deleted file mode 100644 index 24dcf89ab..000000000 --- a/ocpp/v20/schemas/SetDisplayMessageRequest_v1p0.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "MessageFormatEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ASCII", - "HTML", - "URI", - "UTF8" - ] - }, - "MessagePriorityEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "AlwaysFront", - "InFront", - "NormalCycle" - ] - }, - "MessageStateEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Charging", - "Faulted", - "Idle", - "Unavailable" - ] - }, - "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" - ] - }, - "MessageContentType": { - "javaType": "MessageContent", - "type": "object", - "additionalProperties": true, - "properties": { - "format": { - "$ref": "#/definitions/MessageFormatEnumType" - }, - "language": { - "type": "string", - "maxLength": 8 - }, - "content": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "format", - "content" - ] - }, - "MessageInfoType": { - "javaType": "MessageInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "display": { - "$ref": "#/definitions/ComponentType" - }, - "id": { - "type": "integer" - }, - "priority": { - "$ref": "#/definitions/MessagePriorityEnumType" - }, - "state": { - "$ref": "#/definitions/MessageStateEnumType" - }, - "startDateTime": { - "type": "string", - "format": "date-time" - }, - "endDateTime": { - "type": "string", - "format": "date-time" - }, - "transactionId": { - "type": "string", - "maxLength": 36 - }, - "message": { - "$ref": "#/definitions/MessageContentType" - } - }, - "required": [ - "id", - "priority", - "message" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "message": { - "$ref": "#/definitions/MessageInfoType" - } - }, - "required": [ - "message" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetDisplayMessageResponse_v1p0.json b/ocpp/v20/schemas/SetDisplayMessageResponse_v1p0.json deleted file mode 100644 index a2a5431c4..000000000 --- a/ocpp/v20/schemas/SetDisplayMessageResponse_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "NotSupportedMessageFormat", - "Rejected", - "NotSupportedPriority", - "NotSupportedState", - "UnknownTransaction" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetMonitoringBaseRequest_v1p0.json b/ocpp/v20/schemas/SetMonitoringBaseRequest_v1p0.json deleted file mode 100644 index 7808ad5f1..000000000 --- a/ocpp/v20/schemas/SetMonitoringBaseRequest_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "monitoringBase": { - "type": "string", - "additionalProperties": true, - "enum": [ - "All", - "FactoryDefault", - "None" - ] - } - }, - "required": [ - "monitoringBase" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetMonitoringBaseResponse_v1p0.json b/ocpp/v20/schemas/SetMonitoringBaseResponse_v1p0.json deleted file mode 100644 index 59370c308..000000000 --- a/ocpp/v20/schemas/SetMonitoringBaseResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "NotSupported" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetMonitoringLevelRequest_v1p0.json b/ocpp/v20/schemas/SetMonitoringLevelRequest_v1p0.json deleted file mode 100644 index 723338a6d..000000000 --- a/ocpp/v20/schemas/SetMonitoringLevelRequest_v1p0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "severity": { - "type": "integer" - } - }, - "required": [ - "severity" - ] -} - diff --git a/ocpp/v20/schemas/SetMonitoringLevelResponse_v1p0.json b/ocpp/v20/schemas/SetMonitoringLevelResponse_v1p0.json deleted file mode 100644 index 8b143014a..000000000 --- a/ocpp/v20/schemas/SetMonitoringLevelResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} - diff --git a/ocpp/v20/schemas/SetNetworkProfileRequest_v1p0.json b/ocpp/v20/schemas/SetNetworkProfileRequest_v1p0.json deleted file mode 100644 index 3972a9380..000000000 --- a/ocpp/v20/schemas/SetNetworkProfileRequest_v1p0.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "APNAuthenticationEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "CHAP", - "NONE", - "PAP", - "AUTO" - ] - }, - "OCPPInterfaceEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Wired0", - "Wired1", - "Wired2", - "Wired3", - "Wireless0", - "Wireless1", - "Wireless2", - "Wireless3" - ] - }, - "OCPPTransportEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "JSON", - "SOAP" - ] - }, - "OCPPVersionEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "OCPP12", - "OCPP15", - "OCPP16", - "OCPP20" - ] - }, - "VPNEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "IKEv2", - "IPSec", - "L2TP", - "PPTP" - ] - }, - "APNType": { - "javaType": "APN", - "type": "object", - "additionalProperties": true, - "properties": { - "apn": { - "type": "string", - "maxLength": 512 - }, - "apnUserName": { - "type": "string", - "maxLength": 20 - }, - "apnPassword": { - "type": "string", - "maxLength": 20 - }, - "simPin": { - "type": "integer" - }, - "preferredNetwork": { - "type": "string", - "maxLength": 6 - }, - "useOnlyPreferredNetwork": { - "type": "boolean" - }, - "apnAuthentication": { - "$ref": "#/definitions/APNAuthenticationEnumType" - } - }, - "required": [ - "apn", - "apnAuthentication" - ] - }, - "NetworkConnectionProfileType": { - "javaType": "NetworkConnectionProfile", - "type": "object", - "additionalProperties": true, - "properties": { - "apn": { - "$ref": "#/definitions/APNType" - }, - "ocppVersion": { - "$ref": "#/definitions/OCPPVersionEnumType" - }, - "ocppTransport": { - "$ref": "#/definitions/OCPPTransportEnumType" - }, - "ocppCsmsUrl": { - "type": "string", - "maxLength": 512 - }, - "messageTimeout": { - "type": "integer" - }, - "ocppInterface": { - "$ref": "#/definitions/OCPPInterfaceEnumType" - }, - "vpn": { - "$ref": "#/definitions/VPNType" - } - }, - "required": [ - "ocppVersion", - "ocppTransport", - "ocppCsmsUrl", - "messageTimeout", - "ocppInterface" - ] - }, - "VPNType": { - "javaType": "VPN", - "type": "object", - "additionalProperties": true, - "properties": { - "server": { - "type": "string", - "maxLength": 512 - }, - "user": { - "type": "string", - "maxLength": 20 - }, - "group": { - "type": "string", - "maxLength": 20 - }, - "password": { - "type": "string", - "maxLength": 20 - }, - "key": { - "type": "string", - "maxLength": 255 - }, - "type": { - "$ref": "#/definitions/VPNEnumType" - } - }, - "required": [ - "server", - "user", - "password", - "key", - "type" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "configurationSlot": { - "type": "integer" - }, - "connectionData": { - "$ref": "#/definitions/NetworkConnectionProfileType" - } - }, - "required": [ - "configurationSlot", - "connectionData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetNetworkProfileResponse_v1p0.json b/ocpp/v20/schemas/SetNetworkProfileResponse_v1p0.json deleted file mode 100644 index 896af00ac..000000000 --- a/ocpp/v20/schemas/SetNetworkProfileResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "Failed" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetVariableMonitoringRequest_v1p0.json b/ocpp/v20/schemas/SetVariableMonitoringRequest_v1p0.json deleted file mode 100644 index 8f45e028b..000000000 --- a/ocpp/v20/schemas/SetVariableMonitoringRequest_v1p0.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "MonitorEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "UpperThreshold", - "LowerThreshold", - "Delta", - "Periodic", - "PeriodicClockAligned" - ] - }, - "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" - ] - }, - "SetMonitoringDataType": { - "javaType": "SetMonitoringData", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "value": { - "type": "number" - }, - "type": { - "$ref": "#/definitions/MonitorEnumType" - }, - "severity": { - "type": "integer" - }, - "transaction": { - "type": "boolean" - }, - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - } - }, - "required": [ - "value", - "type", - "severity", - "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": { - "setMonitoringData": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/SetMonitoringDataType" - }, - "minItems": 1 - } - }, - "required": [ - "setMonitoringData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetVariableMonitoringResponse_v1p0.json b/ocpp/v20/schemas/SetVariableMonitoringResponse_v1p0.json deleted file mode 100644 index 07d93730f..000000000 --- a/ocpp/v20/schemas/SetVariableMonitoringResponse_v1p0.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "MonitorEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "UpperThreshold", - "LowerThreshold", - "Delta", - "Periodic", - "PeriodicClockAligned" - ] - }, - "SetMonitoringStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "UnknownComponent", - "UnknownVariable", - "UnsupportedMonitorType", - "Rejected", - "OutOfRange", - "Duplicate" - ] - }, - "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" - ] - }, - "SetMonitoringResultType": { - "javaType": "SetMonitoringResult", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "type": { - "$ref": "#/definitions/MonitorEnumType" - }, - "severity": { - "type": "integer" - }, - "status": { - "$ref": "#/definitions/SetMonitoringStatusEnumType" - }, - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - } - }, - "required": [ - "type", - "severity", - "status", - "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": { - "setMonitoringResult": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/SetMonitoringResultType" - }, - "minItems": 1 - } - }, - "required": [ - "setMonitoringResult" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetVariablesRequest_v1p0.json b/ocpp/v20/schemas/SetVariablesRequest_v1p0.json deleted file mode 100644 index 32424c9cb..000000000 --- a/ocpp/v20/schemas/SetVariablesRequest_v1p0.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "AttributeEnumType": { - "type": "string", - "default": "Actual", - "additionalProperties": true, - "enum": [ - "Actual", - "Target", - "MinSet", - "MaxSet" - ] - }, - "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" - ] - }, - "SetVariableDataType": { - "javaType": "SetVariableData", - "type": "object", - "additionalProperties": true, - "properties": { - "attributeType": { - "$ref": "#/definitions/AttributeEnumType" - }, - "attributeValue": { - "type": "string", - "maxLength": 1000 - }, - "component": { - "$ref": "#/definitions/ComponentType" - }, - "variable": { - "$ref": "#/definitions/VariableType" - } - }, - "required": [ - "attributeValue", - "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": { - "setVariableData": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/SetVariableDataType" - }, - "minItems": 1 - } - }, - "required": [ - "setVariableData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SetVariablesResponse_v1p0.json b/ocpp/v20/schemas/SetVariablesResponse_v1p0.json deleted file mode 100644 index 4ae7f683a..000000000 --- a/ocpp/v20/schemas/SetVariablesResponse_v1p0.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "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" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SignCertificateRequest_v1p0.json b/ocpp/v20/schemas/SignCertificateRequest_v1p0.json deleted file mode 100644 index e3b212769..000000000 --- a/ocpp/v20/schemas/SignCertificateRequest_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "csr": { - "type": "string", - "maxLength": 800 - }, - "typeOfCertificate": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ChargingStationCertificate", - "V2GCertificate" - ] - } - }, - "required": [ - "csr" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/SignCertificateResponse_v1p0.json b/ocpp/v20/schemas/SignCertificateResponse_v1p0.json deleted file mode 100644 index 5cd67bdf0..000000000 --- a/ocpp/v20/schemas/SignCertificateResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/StatusNotificationRequest_v1p0.json b/ocpp/v20/schemas/StatusNotificationRequest_v1p0.json deleted file mode 100644 index 2759d6fa2..000000000 --- a/ocpp/v20/schemas/StatusNotificationRequest_v1p0.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "timestamp": { - "type": "string", - "format": "date-time" - }, - "connectorStatus": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Available", - "Occupied", - "Reserved", - "Unavailable", - "Faulted" - ] - }, - "evseId": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "timestamp", - "connectorStatus", - "evseId", - "connectorId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/StatusNotificationResponse_v1p0.json b/ocpp/v20/schemas/StatusNotificationResponse_v1p0.json deleted file mode 100644 index 49b69e9fd..000000000 --- a/ocpp/v20/schemas/StatusNotificationResponse_v1p0.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true -} \ No newline at end of file diff --git a/ocpp/v20/schemas/TransactionEventRequest_v1p0.json b/ocpp/v20/schemas/TransactionEventRequest_v1p0.json deleted file mode 100644 index 66b30a018..000000000 --- a/ocpp/v20/schemas/TransactionEventRequest_v1p0.json +++ /dev/null @@ -1,414 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "ChargingStateEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Charging", - "EVDetected", - "SuspendedEV", - "SuspendedEVSE" - ] - }, - "EncodingMethodEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Other", - "DLMS Message", - "COSEM Protected Data", - "EDL" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "LocationEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Body", - "Cable", - "EV", - "Inlet", - "Outlet" - ] - }, - "MeasurandEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Current.Export", - "Current.Import", - "Current.Offered", - "Energy.Active.Export.Register", - "Energy.Active.Import.Register", - "Energy.Reactive.Export.Register", - "Energy.Reactive.Import.Register", - "Energy.Active.Export.Interval", - "Energy.Active.Import.Interval", - "Energy.Active.Net", - "Energy.Reactive.Export.Interval", - "Energy.Reactive.Import.Interval", - "Energy.Reactive.Net", - "Energy.Apparent.Net", - "Energy.Apparent.Import", - "Energy.Apparent.Export", - "Frequency", - "Power.Active.Export", - "Power.Active.Import", - "Power.Factor", - "Power.Offered", - "Power.Reactive.Export", - "Power.Reactive.Import", - "SoC", - "Voltage" - ] - }, - "PhaseEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "L1", - "L2", - "L3", - "N", - "L1-N", - "L2-N", - "L3-N", - "L1-L2", - "L2-L3", - "L3-L1" - ] - }, - "ReadingContextEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Interruption.Begin", - "Interruption.End", - "Other", - "Sample.Clock", - "Sample.Periodic", - "Transaction.Begin", - "Transaction.End", - "Trigger" - ] - }, - "ReasonEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "DeAuthorized", - "EmergencyStop", - "EnergyLimitReached", - "EVDisconnected", - "GroundFault", - "ImmediateReset", - "Local", - "LocalOutOfCredit", - "MasterPass", - "Other", - "OvercurrentFault", - "PowerLoss", - "PowerQuality", - "Reboot", - "Remote", - "SOCLimitReached", - "StoppedByEV", - "TimeLimitReached", - "Timeout", - "UnlockCommand" - ] - }, - "SignatureMethodEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ECDSAP256SHA256", - "ECDSAP384SHA384", - "ECDSA192SHA256" - ] - }, - "TransactionEventEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Ended", - "Started", - "Updated" - ] - }, - "TriggerReasonEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Authorized", - "CablePluggedIn", - "ChargingRateChanged", - "ChargingStateChanged", - "Deauthorized", - "EnergyLimitReached", - "EVCommunicationLost", - "EVConnectTimeout", - "MeterValueClock", - "MeterValuePeriodic", - "TimeLimitReached", - "Trigger", - "UnlockCommand", - "StopAuthorized", - "EVDeparted", - "EVDetected", - "RemoteStop", - "RemoteStart" - ] - }, - "AdditionalInfoType": { - "javaType": "AdditionalInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalIdToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "type": "string", - "maxLength": 50 - } - }, - "required": [ - "additionalIdToken", - "type" - ] - }, - "EVSEType": { - "javaType": "EVSE", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - }, - "IdTokenType": { - "javaType": "IdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "additionalInfo": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/AdditionalInfoType" - }, - "minItems": 1 - }, - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - }, - "MeterValueType": { - "javaType": "MeterValue", - "type": "object", - "additionalProperties": true, - "properties": { - "sampledValue": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/SampledValueType" - }, - "minItems": 1 - }, - "timestamp": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "timestamp", - "sampledValue" - ] - }, - "SampledValueType": { - "javaType": "SampledValue", - "type": "object", - "additionalProperties": true, - "properties": { - "value": { - "type": "number" - }, - "context": { - "$ref": "#/definitions/ReadingContextEnumType" - }, - "measurand": { - "$ref": "#/definitions/MeasurandEnumType" - }, - "phase": { - "$ref": "#/definitions/PhaseEnumType" - }, - "location": { - "$ref": "#/definitions/LocationEnumType" - }, - "signedMeterValue": { - "$ref": "#/definitions/SignedMeterValueType" - }, - "unitOfMeasure": { - "$ref": "#/definitions/UnitOfMeasureType" - } - }, - "required": [ - "value" - ] - }, - "SignedMeterValueType": { - "javaType": "SignedMeterValue", - "type": "object", - "additionalProperties": true, - "properties": { - "meterValueSignature": { - "type": "string", - "maxLength": 2500 - }, - "signatureMethod": { - "$ref": "#/definitions/SignatureMethodEnumType" - }, - "encodingMethod": { - "$ref": "#/definitions/EncodingMethodEnumType" - }, - "encodedMeterValue": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "meterValueSignature", - "signatureMethod", - "encodingMethod", - "encodedMeterValue" - ] - }, - "TransactionType": { - "javaType": "Transaction", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "string", - "maxLength": 36 - }, - "chargingState": { - "$ref": "#/definitions/ChargingStateEnumType" - }, - "timeSpentCharging": { - "type": "integer" - }, - "stoppedReason": { - "$ref": "#/definitions/ReasonEnumType" - }, - "remoteStartId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - }, - "UnitOfMeasureType": { - "javaType": "UnitOfMeasure", - "type": "object", - "additionalProperties": true, - "properties": { - "unit": { - "type": "string", - "maxLength": 20 - }, - "multiplier": { - "type": "integer" - } - } - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "eventType": { - "$ref": "#/definitions/TransactionEventEnumType" - }, - "meterValue": { - "type": "array", - "additionalItems": false, - "items": { - "$ref": "#/definitions/MeterValueType" - }, - "minItems": 1 - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "triggerReason": { - "$ref": "#/definitions/TriggerReasonEnumType" - }, - "seqNo": { - "type": "integer" - }, - "offline": { - "type": "boolean" - }, - "numberOfPhasesUsed": { - "type": "integer" - }, - "cableMaxCurrent": { - "type": "number" - }, - "reservationId": { - "type": "integer" - }, - "transactionData": { - "$ref": "#/definitions/TransactionType" - }, - "evse": { - "$ref": "#/definitions/EVSEType" - }, - "idToken": { - "$ref": "#/definitions/IdTokenType" - } - }, - "required": [ - "eventType", - "timestamp", - "triggerReason", - "seqNo", - "transactionData" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/TransactionEventResponse_v1p0.json b/ocpp/v20/schemas/TransactionEventResponse_v1p0.json deleted file mode 100644 index c89e9ef4b..000000000 --- a/ocpp/v20/schemas/TransactionEventResponse_v1p0.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "AuthorizationStatusEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Blocked", - "ConcurrentTx", - "Expired", - "Invalid", - "NoCredit", - "NotAllowedTypeEVSE", - "NotAtThisLocation", - "NotAtThisTime", - "Unknown" - ] - }, - "IdTokenEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Central", - "eMAID", - "ISO14443", - "KeyCode", - "Local", - "NoAuthorization", - "ISO15693" - ] - }, - "MessageFormatEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "ASCII", - "HTML", - "URI", - "UTF8" - ] - }, - "GroupIdTokenType": { - "javaType": "GroupIdToken", - "type": "object", - "additionalProperties": true, - "properties": { - "idToken": { - "type": "string", - "maxLength": 36 - }, - "type": { - "$ref": "#/definitions/IdTokenEnumType" - } - }, - "required": [ - "idToken", - "type" - ] - }, - "IdTokenInfoType": { - "javaType": "IdTokenInfo", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "$ref": "#/definitions/AuthorizationStatusEnumType" - }, - "cacheExpiryDateTime": { - "type": "string", - "format": "date-time" - }, - "chargingPriority": { - "type": "integer" - }, - "groupIdToken": { - "$ref": "#/definitions/GroupIdTokenType" - }, - "language1": { - "type": "string", - "maxLength": 8 - }, - "language2": { - "type": "string", - "maxLength": 8 - }, - "personalMessage": { - "$ref": "#/definitions/MessageContentType" - } - }, - "required": [ - "status" - ] - }, - "MessageContentType": { - "javaType": "MessageContent", - "type": "object", - "additionalProperties": true, - "properties": { - "format": { - "$ref": "#/definitions/MessageFormatEnumType" - }, - "language": { - "type": "string", - "maxLength": 8 - }, - "content": { - "type": "string", - "maxLength": 512 - } - }, - "required": [ - "format", - "content" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "totalCost": { - "type": "number" - }, - "chargingPriority": { - "type": "integer" - }, - "idTokenInfo": { - "$ref": "#/definitions/IdTokenInfoType" - }, - "updatedPersonalMessage": { - "$ref": "#/definitions/MessageContentType" - } - } -} \ No newline at end of file diff --git a/ocpp/v20/schemas/TriggerMessageRequest_v1p0.json b/ocpp/v20/schemas/TriggerMessageRequest_v1p0.json deleted file mode 100644 index 8c6c96ff7..000000000 --- a/ocpp/v20/schemas/TriggerMessageRequest_v1p0.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "MessageTriggerEnumType": { - "type": "string", - "additionalProperties": true, - "enum": [ - "BootNotification", - "LogStatusNotification", - "FirmwareStatusNotification", - "Heartbeat", - "MeterValues", - "SignChargingStationCertificate", - "SignV2GCertificate", - "StatusNotification", - "TransactionEvent" - ] - }, - "EVSEType": { - "javaType": "EVSE", - "type": "object", - "additionalProperties": true, - "properties": { - "id": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "id" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "evse": { - "$ref": "#/definitions/EVSEType" - }, - "requestedMessage": { - "$ref": "#/definitions/MessageTriggerEnumType" - } - }, - "required": [ - "requestedMessage" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/TriggerMessageResponse_v1p0.json b/ocpp/v20/schemas/TriggerMessageResponse_v1p0.json deleted file mode 100644 index 9147d7c04..000000000 --- a/ocpp/v20/schemas/TriggerMessageResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "NotImplemented" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/UnlockConnectorRequest_v1p0.json b/ocpp/v20/schemas/UnlockConnectorRequest_v1p0.json deleted file mode 100644 index 6f86c6db2..000000000 --- a/ocpp/v20/schemas/UnlockConnectorRequest_v1p0.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "evseId": { - "type": "integer" - }, - "connectorId": { - "type": "integer" - } - }, - "required": [ - "evseId", - "connectorId" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/UnlockConnectorResponse_v1p0.json b/ocpp/v20/schemas/UnlockConnectorResponse_v1p0.json deleted file mode 100644 index 4b06ee55c..000000000 --- a/ocpp/v20/schemas/UnlockConnectorResponse_v1p0.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Unlocked", - "UnlockFailed" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/UnpublishFirmwareRequest_v1p0.json b/ocpp/v20/schemas/UnpublishFirmwareRequest_v1p0.json deleted file mode 100644 index 4f3e8cc94..000000000 --- a/ocpp/v20/schemas/UnpublishFirmwareRequest_v1p0.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "checksum": { - "type": "string", - "maxLength": 32 - } - }, - "required": [ - "checksum" - ] -} diff --git a/ocpp/v20/schemas/UnpublishFirmwareResponse_v1p0.json b/ocpp/v20/schemas/UnpublishFirmwareResponse_v1p0.json deleted file mode 100644 index 2fa6589ac..000000000 --- a/ocpp/v20/schemas/UnpublishFirmwareResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "DownloadOngoing", - "NoFirmware", - "Unpublished" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/Update15118EVCertificateRequest_v1p0.json b/ocpp/v20/schemas/Update15118EVCertificateRequest_v1p0.json deleted file mode 100644 index 694c39fdf..000000000 --- a/ocpp/v20/schemas/Update15118EVCertificateRequest_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "15118SchemaVersion": { - "type": "string", - "maxLength": 50 - }, - "exiRequest": { - "type": "string", - "maxLength": 5500 - } - }, - "required": [ - "15118SchemaVersion", - "exiRequest" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/Update15118EVCertificateResponse_v1p0.json b/ocpp/v20/schemas/Update15118EVCertificateResponse_v1p0.json deleted file mode 100644 index fa02e958d..000000000 --- a/ocpp/v20/schemas/Update15118EVCertificateResponse_v1p0.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Failed" - ] - }, - "exiResponse": { - "type": "string", - "maxLength": 5500 - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/UpdateFirmwareRequest_v1p0.json b/ocpp/v20/schemas/UpdateFirmwareRequest_v1p0.json deleted file mode 100644 index 67bc70084..000000000 --- a/ocpp/v20/schemas/UpdateFirmwareRequest_v1p0.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "definitions": { - "FirmwareType": { - "javaType": "Firmware", - "type": "object", - "additionalProperties": true, - "properties": { - "location": { - "type": "string", - "maxLength": 512 - }, - "retrieveDateTime": { - "type": "string", - "format": "date-time" - }, - "installDateTime": { - "type": "string", - "format": "date-time" - }, - "signingCertificate": { - "type": "string", - "maxLength": 800 - }, - "signature": { - "type": "string", - "maxLength": 800 - } - }, - "required": [ - "location", - "retrieveDateTime" - ] - } - }, - "type": "object", - "additionalProperties": true, - "properties": { - "retries": { - "type": "integer" - }, - "retryInterval": { - "type": "integer" - }, - "requestId": { - "type": "integer" - }, - "firmware": { - "$ref": "#/definitions/FirmwareType" - } - }, - "required": [ - "requestId", - "firmware" - ] -} \ No newline at end of file diff --git a/ocpp/v20/schemas/UpdateFirmwareResponse_v1p0.json b/ocpp/v20/schemas/UpdateFirmwareResponse_v1p0.json deleted file mode 100644 index 058700949..000000000 --- a/ocpp/v20/schemas/UpdateFirmwareResponse_v1p0.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-06/schema#", - "comment": "OCPP 2.0 - v1p0", - "type": "object", - "additionalProperties": true, - "properties": { - "status": { - "type": "string", - "additionalProperties": true, - "enum": [ - "Accepted", - "Rejected", - "AcceptedCanceled" - ] - } - }, - "required": [ - "status" - ] -} \ No newline at end of file diff --git a/tests/test_charge_point.py b/tests/test_charge_point.py index 87052b1e9..3b0fd98d9 100644 --- a/tests/test_charge_point.py +++ b/tests/test_charge_point.py @@ -10,14 +10,14 @@ from ocpp.v16.call_result import BootNotification as BootNotificationResult from ocpp.v16.datatypes import MeterValue, SampledValue from ocpp.v16.enums import Action, RegistrationStatus -from ocpp.v20 import ChargePoint as cp_20 +from ocpp.v201 import ChargePoint as cp_201 from ocpp.v201.call import SetNetworkProfile from ocpp.v201.datatypes import NetworkConnectionProfileType from ocpp.v201.enums import OCPPInterfaceType, OCPPTransportType, OCPPVersionType def test_getters_should_not_be_called_during_routemap_setup(): - class ChargePoint(cp_20): + class ChargePoint(cp_201): @property def foo(self): raise RuntimeError("this will be raised") @@ -30,12 +30,12 @@ def foo(self): def test_multiple_classes_with_same_name_for_handler(): - class ChargerA(cp_20): + class ChargerA(cp_201): @on(Action.Heartbeat) def heartbeat(self, **kwargs): pass - class ChargerB(cp_20): + class ChargerB(cp_201): @on(Action.Heartbeat) def heartbeat(self, **kwargs): pass diff --git a/tests/test_messages.py b/tests/test_messages.py index 60c798b0a..3bd7131e7 100644 --- a/tests/test_messages.py +++ b/tests/test_messages.py @@ -150,7 +150,7 @@ def test_validate_get_composite_profile_payload(): validate_payload(message, ocpp_version="1.6") -@pytest.mark.parametrize("ocpp_version", ["1.6", "2.0"]) +@pytest.mark.parametrize("ocpp_version", ["1.6", "2.0.1"]) def test_validate_payload_with_valid_payload(ocpp_version): """ Test if validate_payload doesn't return any exceptions when it's diff --git a/tests/v20/conftest.py b/tests/v20/conftest.py deleted file mode 100644 index 927faef17..000000000 --- a/tests/v20/conftest.py +++ /dev/null @@ -1,75 +0,0 @@ -try: - from unittest.mock import AsyncMock -except ImportError: - # Python 3.7 and below don't include unittest.mock.AsyncMock. Hence, - # we need to resolve to a package on pypi. - from asynctest import CoroutineMock as AsyncMock - -import pytest - -from ocpp.messages import Call, CallResult -from ocpp.v20 import ChargePoint, call - -chargingStation = { - "vendorName": "ICU Eve Mini", - "firmwareVersion": "#1:3.4.0-2990#N:217H;1.0-223", - "model": "ICU Eve Mini", -} - - -@pytest.fixture -def heartbeat_call(): - return Call(unique_id=1, action="Heartbeat", payload={}).to_json() - - -@pytest.fixture -def boot_notification_call(): - return Call( - unique_id="1", - action="BootNotification", - payload={ - "reason": "PowerUp", - "chargingStation": chargingStation, - }, - ).to_json() - - -@pytest.fixture -def base_central_system(connection): - cs = ChargePoint( - id=1234, - connection=connection, - ) - - cs._unique_id_generator = lambda: 1337 - - return cs - - -@pytest.fixture -def mock_boot_request(): - return call.BootNotificationPayload( - reason="PowerUp", - charging_station=chargingStation, - ) - - -@pytest.fixture -def mock_base_central_system(base_central_system): - mock_result_call = CallResult( - unique_id=str(base_central_system._unique_id_generator()), - action="BootNotification", - payload={ - "currentTime": "2018-05-29T17:37:05.495259", - "interval": 350, - "status": "Accepted", - }, - ) - - base_central_system._send = AsyncMock() - - mock_response = AsyncMock() - mock_response.return_value = mock_result_call - base_central_system._get_specific_response = mock_response - - return base_central_system diff --git a/tests/v20/test_v20_charge_point.py b/tests/v20/test_v20_charge_point.py deleted file mode 100644 index bb0a04aa2..000000000 --- a/tests/v20/test_v20_charge_point.py +++ /dev/null @@ -1,120 +0,0 @@ -import json - -import pytest - -from ocpp.routing import after, create_route_map, on -from ocpp.v20 import call_result - - -@pytest.mark.asyncio -async def test_route_message_with_existing_route( - base_central_system, boot_notification_call -): - """Test if the correct handler is called when routing a message. - Also test if payload of request is injected correctly in handler. - - """ - - @on("BootNotification") - def on_boot_notification(reason, charging_station, **kwargs): - assert reason == "PowerUp" - assert charging_station == { - "vendor_name": "ICU Eve Mini", - "firmware_version": "#1:3.4.0-2990#N:217H;1.0-223", - "model": "ICU Eve Mini", - } - - return call_result.BootNotificationPayload( - current_time="2018-05-29T17:37:05.495259", - interval=350, - status="Accepted", - ) - - @after("BootNotification") - def after_boot_notification(reason, charging_station, **kwargs): - assert reason == "PowerUp" - assert charging_station == { - "vendor_name": "ICU Eve Mini", - "firmware_version": "#1:3.4.0-2990#N:217H;1.0-223", - "model": "ICU Eve Mini", - } - - setattr(base_central_system, "on_boot_notification", on_boot_notification) - setattr(base_central_system, "after_boot_notification", after_boot_notification) - base_central_system.route_map = create_route_map(base_central_system) - - await base_central_system.route_message(boot_notification_call) - base_central_system._connection.send.assert_called_once_with( - json.dumps( - [ - 3, - "1", - { - "currentTime": "2018-05-29T17:37:05.495259", - "interval": 350, - "status": "Accepted", - }, - ], - separators=(",", ":"), - ) - ) - - -@pytest.mark.asyncio -async def test_route_message_with_no_route(base_central_system, heartbeat_call): - """ - Test that a CALLERROR is sent back, reporting that no handler is - registred for it. - - """ - # Empty the route map - base_central_system.route_map = {} - - await base_central_system.route_message(heartbeat_call) - base_central_system._connection.send.assert_called_once_with( - json.dumps( - [ - 4, - 1, - "NotImplemented", - "Request Action is recognized but not supported by the receiver", - {"cause": "No handler for Heartbeat registered."}, - ], - separators=(",", ":"), - ) - ) - - -@pytest.mark.asyncio -async def test_call_with_unique_id_should_return_same_id( - mock_boot_request, mock_base_central_system -): - - expected_unique_id = "12345" - # Call the method being tested with a unique_id as a parameter - await mock_base_central_system.call(mock_boot_request, unique_id=expected_unique_id) - ( - actual_unique_id, - _, - ) = mock_base_central_system._get_specific_response.call_args_list[0][0] - - # Check the actual unique id is equals to the one passed to the call method - assert actual_unique_id == expected_unique_id - - -@pytest.mark.asyncio -async def test_call_without_unique_id_should_return_a_random_value( - mock_boot_request, mock_base_central_system -): - - expected_unique_id = str(mock_base_central_system._unique_id_generator()) - - # Call the method being tested without passing a unique_id as a parameter - await mock_base_central_system.call(mock_boot_request) - - ( - actual_unique_id, - _, - ) = mock_base_central_system._get_specific_response.call_args_list[0][0] - # Check the actual unique id is equals to the one internally generated - assert actual_unique_id == expected_unique_id