Skip to content

Commit 6446e21

Browse files
authored
Merge pull request #633 from lucab/ups/created-pointer
specs-go/v1/config: pointer-ify optional "Created" field
2 parents 6f18134 + 96896c3 commit 6446e21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs-go/v1/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type RootFS struct {
6262
// History describes the history of a layer.
6363
type History struct {
6464
// Created is the combined date and time at which the layer was created, formatted as defined by RFC 3339, section 5.6.
65-
Created time.Time `json:"created,omitempty"`
65+
Created *time.Time `json:"created,omitempty"`
6666

6767
// CreatedBy is the command which created the layer.
6868
CreatedBy string `json:"created_by,omitempty"`
@@ -81,7 +81,7 @@ type History struct {
8181
// This provides the `application/vnd.oci.image.config.v1+json` mediatype when marshalled to JSON.
8282
type Image struct {
8383
// Created is the combined date and time at which the image was created, formatted as defined by RFC 3339, section 5.6.
84-
Created time.Time `json:"created,omitempty"`
84+
Created *time.Time `json:"created,omitempty"`
8585

8686
// Author defines the name and/or email address of the person or entity which created and is responsible for maintaining the image.
8787
Author string `json:"author,omitempty"`

0 commit comments

Comments
 (0)