From e3a82589eb01de58e0139d1807b4c41a25a0bdc9 Mon Sep 17 00:00:00 2001 From: Yudi Haribowo Date: Tue, 9 Jul 2024 11:12:06 +0700 Subject: [PATCH] feat(validation): Allow bypassing Int to Int64 or Int53 --- internal/validation/validation.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/validation/validation.go b/internal/validation/validation.go index 5ee18b480..795399f78 100644 --- a/internal/validation/validation.go +++ b/internal/validation/validation.go @@ -992,6 +992,10 @@ func typeCanBeUsedAs(t, as types.Type) bool { if t == as { return true } + // Tokopedia-TTS specific requirement + if t.String() == "Int" && (as.String() == "Int64" || as.String() == "Int53") { + return true + } if lT, ok := t.(*types.List); ok { if lAs, ok := as.(*types.List); ok {