We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef08e60 commit 4f0da6fCopy full SHA for 4f0da6f
config/config.go
@@ -38,7 +38,7 @@ type Contract struct {
38
39
// Database
40
type Database struct {
41
- Path string `yaml:"path" validate:"required_without=Host Port User Database"`
+ Path string `yaml:"path"`
42
Kind string `yaml:"kind" validate:"required,oneof=sqlite postgres mysql clickhouse"`
43
Host string `yaml:"host" validate:"required_with=Port User Database"`
44
Port int `yaml:"port" validate:"required_with=Host User Database,gt=-1,lt=65535"`
0 commit comments