From 5fb0286627222a53a52fb03061ba094582c07e31 Mon Sep 17 00:00:00 2001 From: Ali Shanaakh Date: Thu, 2 Feb 2023 23:15:11 +0000 Subject: [PATCH] Make validation fir internal requests less strict --- pkg/domain/query/list_with_number_by_internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/domain/query/list_with_number_by_internal.go b/pkg/domain/query/list_with_number_by_internal.go index 2674cb9..45e93cd 100644 --- a/pkg/domain/query/list_with_number_by_internal.go +++ b/pkg/domain/query/list_with_number_by_internal.go @@ -21,7 +21,7 @@ func (q *ListWithNumberByInternal) Validate() error { validation.Field( &q.Number, validation.Required.Error(seedwork.Required), - validation.Length(6, 18).Error(seedwork.Invalid), + validation.Length(2, 18).Error(seedwork.Invalid), ), ) }