mirror of
https://github.com/anchore/syft.git
synced 2025-11-19 01:13:18 +01: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
@ -3,8 +3,8 @@ package pkg
|
|||||||
type GemMetadata struct {
|
type GemMetadata struct {
|
||||||
Name string `mapstructure:"name" json:"name"`
|
Name string `mapstructure:"name" json:"name"`
|
||||||
Version string `mapstructure:"version" json:"version"`
|
Version string `mapstructure:"version" json:"version"`
|
||||||
Files []string `mapstructure:"files" json:"files"`
|
Files []string `mapstructure:"files" json:"files,omitempty"`
|
||||||
Authors []string `mapstructure:"authors" json:"authors"`
|
Authors []string `mapstructure:"authors" json:"authors,omitempty"`
|
||||||
Licenses []string `mapstructure:"licenses" json:"licenses"`
|
Licenses []string `mapstructure:"licenses" json:"licenses,omitempty"`
|
||||||
Homepage string `mapstructure:"homepage" json:"homepage"`
|
Homepage string `mapstructure:"homepage" json:"homepage,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user