Skip to content

Commit

Permalink
Merge pull request #69 from scottfrederick/omit-empty-config-metadata
Browse files Browse the repository at this point in the history
Omit empty configuration metadata fields
  • Loading branch information
ekcasey authored Mar 10, 2021
2 parents c4fb60c + 34b8105 commit 0b90e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boot/configuration_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Group struct {
}

type Deprecation struct {
Level string `json:"level"`
Level string `json:"level,omitempty"`
Reason string `json:"reason,omitempty"`
Replacement string `json:"replacement,omitempty"`
}
Expand All @@ -58,7 +58,7 @@ type ValueHint struct {

type ValueProvider struct {
Name string `json:"name"`
Parameters map[string]interface{} `json:"parameters"`
Parameters map[string]interface{} `json:"parameters,omitempty"`
}

type Hint struct {
Expand Down

0 comments on commit 0b90e58

Please sign in to comment.