From 6acbe41f0abaaa63478f24ad4111829be993bbfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 31 Jul 2017 16:53:13 +0200 Subject: [PATCH] media: Add missing JSON tags to Type See https://github.com/gohugoio/hugoDocs/issues/114 --- media/mediaType.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/mediaType.go b/media/mediaType.go index 59de655b6..8946a9e83 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -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(),