From f73f51e6556fb8636e34cb2ac45a33e7892e5f1d Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 7 Apr 2022 17:54:47 -0400 Subject: [PATCH] fix ContentKind file marshaling --- scm/const.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scm/const.go b/scm/const.go index 55bedf568..576290e70 100644 --- a/scm/const.go +++ b/scm/const.go @@ -201,6 +201,11 @@ func (k ContentKind) String() string { } } +// MarshalJSON returns the JSON-encoded Action. +func (k ContentKind) MarshalJSON() ([]byte, error) { + return json.Marshal(k.String()) +} + // UnmarshalJSON unmarshales the JSON-encoded ContentKind. func (k *ContentKind) UnmarshalJSON(data []byte) error { var s string