lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
261 stars 125 forks source link

ChangeConfigurationRequest doesn't allow empty values #246

Open sbindzau opened 9 months ago

sbindzau commented 9 months ago

I've tried setting values to "" but that fails with OccurenceViolation as the verification considers empty values to be non-existant.

Removing the "validate" for value is one option, but that seemed too much, so I changed "value" in the struct from string to *string to differentiate the cases. Any objections to that, otherwise I can supply a patch with it (needed to change some tests, too)