Skip to content

Commit c5d3c7d

Browse files
authored
Merge pull request #522 from stevvooe/use-digest-type
specs-go/v1: use digest type on descriptor
2 parents fa40b3f + f089cee commit c5d3c7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specs-go/v1/descriptor.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414

1515
package v1
1616

17+
import digest "github.com/opencontainers/go-digest"
18+
1719
// Descriptor describes the disposition of targeted content.
1820
// This structure provides `application/vnd.oci.descriptor.v1+json` mediatype when marshalled to JSON
1921
type Descriptor struct {
2022
// MediaType is the media type of the object this schema refers to.
2123
MediaType string `json:"mediaType,omitempty"`
2224

2325
// Digest is the digest of the targeted content.
24-
Digest string `json:"digest"`
26+
Digest digest.Digest `json:"digest"`
2527

2628
// Size specifies the size in bytes of the blob.
2729
Size int64 `json:"size"`

0 commit comments

Comments
 (0)