Skip to content

Commit bccf3f1

Browse files
authored
Move omitempty to the right place (google#954)
1 parent 93228a7 commit bccf3f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/v1/manifest.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323

2424
// Manifest represents the OCI image manifest in a structured way.
2525
type Manifest struct {
26-
SchemaVersion int64 `json:"schemaVersion,omitempty"`
27-
MediaType types.MediaType `json:"mediaType"`
26+
SchemaVersion int64 `json:"schemaVersion"`
27+
MediaType types.MediaType `json:"mediaType,omitempty"`
2828
Config Descriptor `json:"config"`
2929
Layers []Descriptor `json:"layers"`
3030
Annotations map[string]string `json:"annotations,omitempty"`

0 commit comments

Comments
 (0)