Skip to content

Commit

Permalink
fix AnyOf validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Miadzelets authored and Insei committed Oct 23, 2024
1 parent dad363f commit eae816d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion str/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (i *baseConfigurator[T]) Regexp(regexp *regexp.Regexp, opts ...RegexpOption
func (i *baseConfigurator[T]) AnyOf(allowed ...string) BaseConfigurator {
i.c.Append(func(v T) bool {
return slices.Contains(allowed, *v)
}, anyOfLocaleKey)
}, anyOfLocaleKey, allowed)
return i
}

Expand Down

0 comments on commit eae816d

Please sign in to comment.