Skip to content

Commit f73f51e

Browse files
committed
fix ContentKind file marshaling
1 parent a791b0d commit f73f51e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scm/const.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ func (k ContentKind) String() string {
201201
}
202202
}
203203

204+
// MarshalJSON returns the JSON-encoded Action.
205+
func (k ContentKind) MarshalJSON() ([]byte, error) {
206+
return json.Marshal(k.String())
207+
}
208+
204209
// UnmarshalJSON unmarshales the JSON-encoded ContentKind.
205210
func (k *ContentKind) UnmarshalJSON(data []byte) error {
206211
var s string

0 commit comments

Comments
 (0)