Skip to content

Commit

Permalink
small fix the first draft
Browse files Browse the repository at this point in the history
  • Loading branch information
CascadingRadium committed Nov 6, 2024
1 parent c11f868 commit d13246d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mapping/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,11 @@ func (fm *FieldMapping) UnmarshalJSON(data []byte) error {
if err != nil {
return err
}
case "synonym_source":
err := json.Unmarshal(v, &fm.SynonymSource)
if err != nil {
return err
}
default:
invalidKeys = append(invalidKeys, k)
}
Expand Down

0 comments on commit d13246d

Please sign in to comment.