Skip to content

Commit

Permalink
feat(spec): Don't omit empty string Values
Browse files Browse the repository at this point in the history
To omit a value means the key is known but not set whereas an empty
string may have a semantic value.
  • Loading branch information
michaelbeaumont committed Jun 10, 2021
1 parent 0306bb1 commit 43c1f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ocpp1.6/core/get_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const GetConfigurationFeatureName = "GetConfiguration"

// Contains information about a specific configuration key. It is returned in GetConfigurationConfirmation
type ConfigurationKey struct {
Key string `json:"key" validate:"required,max=50"`
Readonly bool `json:"readonly"`
Value string `json:"value,omitempty" validate:"max=500"`
Key string `json:"key" validate:"required,max=50"`
Readonly bool `json:"readonly"`
Value *string `json:"value,omitempty" validate:"max=500"`
}

// The field definition of the GetConfiguration request payload sent by the Central System to the Charge Point.
Expand Down

0 comments on commit 43c1f46

Please sign in to comment.