Skip to content

Commit 4f0da6f

Browse files
Fix: config validation
1 parent ef08e60 commit 4f0da6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Contract struct {
3838

3939
// Database
4040
type Database struct {
41-
Path string `yaml:"path" validate:"required_without=Host Port User Database"`
41+
Path string `yaml:"path"`
4242
Kind string `yaml:"kind" validate:"required,oneof=sqlite postgres mysql clickhouse"`
4343
Host string `yaml:"host" validate:"required_with=Port User Database"`
4444
Port int `yaml:"port" validate:"required_with=Host User Database,gt=-1,lt=65535"`

0 commit comments

Comments
 (0)