Closed utsavanand2 closed 3 years ago
Just realised that the bool will have a default value anyway, and hence the required tag of the validator is not "required" (no pun intended) at all.
For reference: https://github.com/go-playground/validator/issues/319
Issue
Make the ConfigurationKey struct's ReadOnly element required
Description
While going through the OCPP 1.6 documentation around
KeyValue
forGetConfiguration
, I noticed,readonly
is described as required.Possible Solution
If it was missed out, I'm linking a PR that fixes it.