Switch to validator v10

This commit is contained in:
William Bouzourène 2025-01-13 16:08:17 +01:00
parent 6593a4340c
commit d5c95532a1
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
7 changed files with 92 additions and 52 deletions

10
go.mod
View file

@ -5,7 +5,7 @@ go 1.23.4
require (
github.com/flosch/pongo2/v6 v6.0.0
github.com/glebarez/sqlite v1.11.0
github.com/go-playground/validator v9.31.0+incompatible
github.com/go-playground/validator/v10 v10.24.0
github.com/gofiber/fiber/v2 v2.52.5
github.com/gofiber/helmet/v2 v2.2.26
github.com/gofiber/storage/badger/v2 v2.0.1
@ -13,7 +13,7 @@ require (
github.com/golobby/dotenv v1.3.2
github.com/google/uuid v1.6.0
github.com/pquerna/otp v1.4.0
golang.org/x/crypto v0.31.0
golang.org/x/crypto v0.32.0
gorm.io/gorm v1.25.12
)
@ -26,6 +26,7 @@ require (
github.com/dgraph-io/badger/v3 v3.2103.5 // indirect
github.com/dgraph-io/ristretto v0.1.1 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
github.com/glebarez/go-sqlite v1.21.2 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
@ -55,11 +56,10 @@ require (
github.com/valyala/fasthttp v1.51.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/text v0.21.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
modernc.org/libc v1.22.5 // indirect
modernc.org/mathutil v1.5.0 // indirect
modernc.org/memory v1.5.0 // indirect