Skip to content

Commit eae816d

Browse files
Yury MiadzeletsInsei
Yury Miadzelets
authored andcommitted
fix AnyOf validation error message
1 parent dad363f commit eae816d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

str/base.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (i *baseConfigurator[T]) Regexp(regexp *regexp.Regexp, opts ...RegexpOption
9292
func (i *baseConfigurator[T]) AnyOf(allowed ...string) BaseConfigurator {
9393
i.c.Append(func(v T) bool {
9494
return slices.Contains(allowed, *v)
95-
}, anyOfLocaleKey)
95+
}, anyOfLocaleKey, allowed)
9696
return i
9797
}
9898

0 commit comments

Comments
 (0)