Skip to content

Commit

Permalink
media: Add missing JSON tags to Type
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 31, 2017
1 parent e321306 commit 6acbe41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/mediaType.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
func (t Type) MarshalJSON() ([]byte, error) {
type Alias Type
return json.Marshal(&struct {
Type string
String string
Type string `json:"type"`
String string `json:"string"`
Alias
}{
Type: t.Type(),
Expand Down

0 comments on commit 6acbe41

Please sign in to comment.