Skip to content

MeterValueRequest validation not checking that metervalues and sampled values have at least 1 element #241

Open
@mmauksch

Description

@mmauksch

Context: Had this issue while working with the library. Spotted through logs, that I sent

  1. MeterValuesRequests without any MeterValues
  2. MeterValues that did not contain any sampled Values

Looking at the OCPP 1.6 Standard Document it requires at least 1 Element for both MeterValues (P. 67 6. Messages -> 6.31 MeterValues) and SampledValues (P. 88 7.Types->7.33 MeterValue) to be a valid message.

Had this validation thrown these messages back in my face I would have spotted this error earlier.

Considering this is a potentially backwards breaking change I'm interested to know if this can be integrated to master or should rather be pushed against v2

Just in case: Pull request to master will be on it's way shortly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions