Skip to content

Commit

Permalink
upgrade: validator to v10
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Aug 17, 2021
1 parent 5919289 commit 9b1868f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require (
github.com/cloudflare/tableflip v1.2.2
github.com/dave/jennifer v1.4.1
github.com/getsentry/sentry-go v0.11.0
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/go-playground/validator v9.31.0+incompatible
github.com/go-playground/validator/v10 v10.9.0
github.com/go-redis/redis/v8 v8.11.2
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/golang/snappy v0.0.4 // indirect
Expand All @@ -23,7 +23,6 @@ require (
github.com/labstack/echo-contrib v0.11.0
github.com/labstack/echo/v4 v4.5.0
github.com/labstack/gommon v0.3.0
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-isatty v0.0.13 // indirect
github.com/opentracing/opentracing-go v1.2.0
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
Expand All @@ -45,9 +44,7 @@ require (
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.7.0 // indirect
go.uber.org/zap v1.18.1
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67 // indirect
google.golang.org/grpc v1.39.1
Expand Down
2 changes: 1 addition & 1 deletion pkg/echox/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package echox
import (
"reflect"

"github.com/go-playground/validator"
validator "github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/echox/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/go-playground/validator"
"github.com/go-playground/validator/v10"
)

// test deep validate
Expand Down

0 comments on commit 9b1868f

Please sign in to comment.