build: bump github.com/go-playground/validator/v10 from 10.15.1 to 10.15.3

And fix incorrect usage of `dive` (not needed for structs).
This commit is contained in:
Vincent Bernat
2023-09-08 21:01:44 +02:00
parent 3559956ec4
commit cabea987f5
5 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ type Configuration struct {
// Version is the version to display to the user.
Version string `yaml:"-"`
// DefaultVisualizeOptions define some defaults for the "visualize" tab.
DefaultVisualizeOptions VisualizeOptionsConfiguration `validate:"dive"`
DefaultVisualizeOptions VisualizeOptionsConfiguration
// HomepageTopWidgets defines the list of widgets to display on the home page.
HomepageTopWidgets []string `validate:"dive,oneof=src-as dst-as src-country dst-country exporter protocol etype src-port dst-port"`
// DimensionsLimit put an upper limit to the number of dimensions to return.

2
go.mod
View File

@@ -18,7 +18,7 @@ require (
github.com/fsnotify/fsnotify v1.6.0
github.com/gin-gonic/gin v1.9.1
github.com/glebarez/sqlite v1.9.0
github.com/go-playground/validator/v10 v10.15.1
github.com/go-playground/validator/v10 v10.15.3
github.com/go-redis/redis/v8 v8.11.5
github.com/golang/mock v1.6.0
github.com/google/gopacket v1.1.19

4
go.sum
View File

@@ -145,8 +145,8 @@ github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4=
github.com/go-playground/validator/v10 v10.15.1 h1:BSe8uhN+xQ4r5guV/ywQI4gO59C2raYcGffYWZEjZzM=
github.com/go-playground/validator/v10 v10.15.1/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU=
github.com/go-playground/validator/v10 v10.15.3 h1:S+sSpunYjNPDuXkWbK+x+bA7iXiW296KG4dL3X7xUZo=
github.com/go-playground/validator/v10 v10.15.3/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU=
github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=
github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo=
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=

View File

@@ -24,7 +24,7 @@ type Configuration struct {
CachePersistFile string
// Provider defines the configuration of the provider to sue
Provider ProviderConfiguration `validate:"dive"`
Provider ProviderConfiguration
// Workers define the number of workers used to poll metadata
Workers int `validate:"min=1"`

View File

@@ -13,7 +13,7 @@ import (
// Configuration describes the configuration for the routing client.
type Configuration struct {
// Provider defines the configuration of the provider to use
Provider ProviderConfiguration `validate:"dive"`
Provider ProviderConfiguration
}
// DefaultConfiguration represents the default configuration for the routing client.