mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
allow for gemspec metadata fields to be optional (#218)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
24c4c025e1
commit
b3387807c1
1 changed files with 4 additions and 4 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue