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 authored and achilleas-k committed Sep 19, 2024
1 parent 5b447eb commit 88b5895
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 88b5895

Please sign in to comment.