Skip to content

Commit

Permalink
Omit empty names and versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dplepage-dd committed Jan 13, 2025
1 parent bc8ad92 commit 0eef07e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type DeviceMeta struct {
// 2/ Datadog backend: the profiles are in json format, they are used to store profiles created via UI.
// The serialisation of json profiles are defined by the json annotation.
type ProfileDefinition struct {
Name string `yaml:"name" json:"name"`
Name string `yaml:"name,omitempty" json:"name,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
SysObjectIDs StringArray `yaml:"sysobjectid,omitempty" json:"sysobjectid,omitempty"`
Extends []string `yaml:"extends,omitempty" json:"extends,omitempty"`
Expand All @@ -35,7 +35,7 @@ type ProfileDefinition struct {

// Version is the profile version.
// It is currently used only with downloaded/RC profiles.
Version uint64 `yaml:"version,omitempty" json:"version"`
Version uint64 `yaml:"version,omitempty" json:"version,omitempty"`
}

// GetVendor returns the static vendor for this profile, if one is set
Expand Down

0 comments on commit 0eef07e

Please sign in to comment.