media: Add missing JSON tags to Type

See https://github.com/gohugoio/hugoDocs/issues/114
This commit is contained in:
Bjørn Erik Pedersen 2017-07-31 16:53:13 +02:00
parent e321306c68
commit 6acbe41f0a

View file

@ -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(),