Skip to content

Commit

Permalink
Fix typo unmarshalling field options.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoalejo committed Aug 5, 2024
1 parent 68b9b42 commit 37b665d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ type FieldOptions struct {
}

func (options *FieldOptions) UnmarshalJSON(data []byte) error {
values, err := marshmallow.Unmarshal(data, options.unknown, marshmallow.WithExcludeKnownFieldsFromMap(true))
values, err := marshmallow.Unmarshal(data, options, marshmallow.WithExcludeKnownFieldsFromMap(true))
if err != nil {
return err
}
Expand Down

0 comments on commit 37b665d

Please sign in to comment.