Skip to content

Commit

Permalink
fix ContentKind file marshaling
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed Apr 7, 2022
1 parent a791b0d commit f73f51e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scm/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f73f51e

Please sign in to comment.