openadr3-client-gac-compliance 3.0.0a2__tar.gz → 3.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openadr3-client-gac-compliance
3
- Version: 3.0.0a2
3
+ Version: 3.0.1
4
4
  Summary:
5
5
  License-File: LICENSE.md
6
6
  Author: Nick van der Burgt
@@ -359,6 +359,18 @@ def _event_interval_gac_compliant(self: Event) -> list[InitErrorDetails]:
359
359
  ctx={},
360
360
  )
361
361
  )
362
+ if len(payload.values) > 1:
363
+ validation_errors.append(
364
+ InitErrorDetails(
365
+ type=PydanticCustomError(
366
+ "value_error",
367
+ "The event interval payload must have exactly one value per payload.",
368
+ ),
369
+ loc=("intervals",),
370
+ input=self.intervals,
371
+ ctx={},
372
+ )
373
+ )
362
374
 
363
375
  return validation_errors
364
376
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "openadr3-client-gac-compliance"
3
- version = "3.0.0a2"
3
+ version = "3.0.1"
4
4
  description = ""
5
5
  authors = [
6
6
  {name = "Nick van der Burgt", email = "nick.van.der.burgt@elaad.nl"}