aboutsummaryrefslogtreecommitdiffstats
path: root/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'core.go')
-rw-r--r--core.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core.go b/core.go
index 74a72b9..f7f0555 100644
--- a/core.go
+++ b/core.go
@@ -41,7 +41,7 @@ type BomMeta struct {
Owner string `json:"owner_name"`
Description string `json:"description"`
HeadVersion string `json:"head_version"`
- Homepage *Url `json:"homepage_url"`
+ Homepage Url `json:"homepage_url"`
IsPublicView bool `json:"is_publicview",omitempty`
IsPublicEdit bool `json:"is_publicedit",omitempty`
}
@@ -81,7 +81,7 @@ func (b *Bom) Validate() error {
if !isShortName(b.Version) {
return Error("version not a ShortName: \"" + b.Version + "\"")
}
- if &b.Created == nil {
+ if b.Created.IsZero() {
return Error("created timestamp not defined")
}
return nil