in internal/spec/spec.go [80:91]
func (c *Comment) UnmarshalJSON(b []byte) error {
var comments []string
if err := json.Unmarshal(b, &comments); err != nil {
var comment string
if err := json.Unmarshal(b, &comment); err != nil {
return errors.Wrap(err, "unmarshaling comment(s)")
}
comments = []string{comment}
}
*c = comments
return nil
}