Skip to content

Commit

Permalink
dnfjson/depsolveResult: mark optional struct members as omitempty
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza committed Sep 19, 2024
1 parent b57eb98 commit 746950b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dnfjson/dnfjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,10 @@ type depsolveResult struct {
Repos map[string]repoConfig `json:"repos"`

// (optional) contains the solver used, e.g. "dnf5"
Solver string `json:"solver"`
Solver string `json:"solver,omitempty"`

// (optional) contains the SBOM for the depsolved transaction
SBOM json.RawMessage `json:"sbom"`
SBOM json.RawMessage `json:"sbom,omitempty"`
}

// Package specification
Expand Down

0 comments on commit 746950b

Please sign in to comment.