Skip to content

Commit

Permalink
Move omitempty to the right place (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr committed Mar 3, 2021
1 parent 93228a7 commit bccf3f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/v1/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

// Manifest represents the OCI image manifest in a structured way.
type Manifest struct {
SchemaVersion int64 `json:"schemaVersion,omitempty"`
MediaType types.MediaType `json:"mediaType"`
SchemaVersion int64 `json:"schemaVersion"`
MediaType types.MediaType `json:"mediaType,omitempty"`
Config Descriptor `json:"config"`
Layers []Descriptor `json:"layers"`
Annotations map[string]string `json:"annotations,omitempty"`
Expand Down

0 comments on commit bccf3f1

Please sign in to comment.