From 5711a69b9b7daff18a4d3cbaa12ee46a2b5a2c3a Mon Sep 17 00:00:00 2001 From: Jared Newell Date: Mon, 13 Nov 2023 16:14:14 +0100 Subject: [PATCH 1/2] OCPP 2.0.1 correction to default values for datatypes --- CHANGELOG.md | 2 +- ocpp/v201/datatypes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6cd7bf26..28ca79a58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change log - +- [#528](https://github.com/mobilityhouse/ocpp/issues/528) Optional fields in datatypes require the default of None - [#510](https://github.com/mobilityhouse/ocpp/issues/510) v2.0.1 UnitOfMeasureType - Enums missing and update docstring to allow use for variableCharacteristics - [#508](https://github.com/mobilityhouse/ocpp/issues/508) Exception - OccurrenceConstraintViolationError doc string correction diff --git a/ocpp/v201/datatypes.py b/ocpp/v201/datatypes.py index 702e6ad5e..bfb76e0c9 100644 --- a/ocpp/v201/datatypes.py +++ b/ocpp/v201/datatypes.py @@ -67,7 +67,7 @@ class CertificateHashDataChainType: certificate_type: enums.GetCertificateIdUseType certificate_hash_data: CertificateHashDataType - child_certificate_hash_data: Optional[List[CertificateHashDataType]] + child_certificate_hash_data: Optional[List[CertificateHashDataType]] = None @dataclass From d5f5659027cdf4178142b9e421d4e6dee14f1c35 Mon Sep 17 00:00:00 2001 From: Jared Newell Date: Wed, 15 Nov 2023 08:15:53 +0100 Subject: [PATCH 2/2] updated change log --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28ca79a58..6f3158914 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change log -- [#528](https://github.com/mobilityhouse/ocpp/issues/528) Optional fields in datatypes require the default of None +- [#528](https://github.com/mobilityhouse/ocpp/issues/528) v2.0.1 CertificateHashDataChainType childCertificateHashData requires the default of None - [#510](https://github.com/mobilityhouse/ocpp/issues/510) v2.0.1 UnitOfMeasureType - Enums missing and update docstring to allow use for variableCharacteristics - [#508](https://github.com/mobilityhouse/ocpp/issues/508) Exception - OccurrenceConstraintViolationError doc string correction