Fixed matcher type integer issue

dev
Ice3man543 2021-11-20 19:47:05 +05:30
parent f74ff3fc49
commit 66dacccfb4
1 changed files with 3 additions and 3 deletions

View File

@ -106,10 +106,10 @@ func (holder *MatcherTypeHolder) UnmarshalYAML(unmarshal func(interface{}) error
return nil
}
func (holder *MatcherTypeHolder) MarshalJSON() ([]byte, error) {
return json.Marshal(holder.MatcherType)
func (holder MatcherTypeHolder) MarshalJSON() ([]byte, error) {
return json.Marshal(holder.MatcherType.String())
}
func (holder MatcherTypeHolder) MarshalYAML() (interface{}, error) {
return holder.MatcherType, nil
return holder.MatcherType.String(), nil
}