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) { func (t Type) MarshalJSON() ([]byte, error) {
type Alias Type type Alias Type
return json.Marshal(&struct { return json.Marshal(&struct {
Type string Type string `json:"type"`
String string String string `json:"string"`
Alias Alias
}{ }{
Type: t.Type(), Type: t.Type(),