Skip to content

Commit

Permalink
allow for gemspec metadata fields to be optional (anchore#218)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
  • Loading branch information
wagoodman authored Oct 15, 2020
1 parent ef7e44a commit 83ce72f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions syft/pkg/gem_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package pkg
type GemMetadata struct {
Name string `mapstructure:"name" json:"name"`
Version string `mapstructure:"version" json:"version"`
Files []string `mapstructure:"files" json:"files"`
Authors []string `mapstructure:"authors" json:"authors"`
Licenses []string `mapstructure:"licenses" json:"licenses"`
Homepage string `mapstructure:"homepage" json:"homepage"`
Files []string `mapstructure:"files" json:"files,omitempty"`
Authors []string `mapstructure:"authors" json:"authors,omitempty"`
Licenses []string `mapstructure:"licenses" json:"licenses,omitempty"`
Homepage string `mapstructure:"homepage" json:"homepage,omitempty"`
}

0 comments on commit 83ce72f

Please sign in to comment.