From 580eaf250ac420a580bbd3386e1e9c93ae62a252 Mon Sep 17 00:00:00 2001 From: Yury Miadzelets Date: Wed, 23 Oct 2024 15:17:56 +0300 Subject: [PATCH] fix AnyOf validation error message --- str/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/str/base.go b/str/base.go index 0065746..aaa11ac 100644 --- a/str/base.go +++ b/str/base.go @@ -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 }