ref: 6acbe41f0abaaa63478f24ad4111829be993bbfe
parent: e321306c6855974478ae14ece84d42d6f6784f18
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Jul 31 12:53:13 EDT 2017
media: Add missing JSON tags to Type See https://github.com/gohugoio/hugoDocs/issues/114
--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -192,8 +192,8 @@
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(),