diff --git a/mode.go b/mode.go index 77265f8..15efaeb 100644 --- a/mode.go +++ b/mode.go @@ -8,6 +8,7 @@ import ( "io" "os" + "github.com/gin-gonic/gin/binding" "github.com/mattn/go-colorable" ) @@ -51,6 +52,10 @@ func SetMode(value string) { modeName = value } +func DisableBindValidation() { + binding.Validator = nil +} + func Mode() string { return modeName }