Skip to content

Commit

Permalink
fix: fix validate tag
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Jul 7, 2023
1 parent 4ecc847 commit def1897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ClientConf struct {
Host string `json:"host,omitempty" env:"DYNDNS_HOST" validate:"required"`
AddrFamilies []string `json:"address_families" env:"DYNDNS_ADDRESS_FAMILIES" envSeparator:";" validate:"omitempty,addrfamilies"`
KeyPairPath string `json:"keypair_path,omitempty" env:"DYNDNS_KEYPAIR_PATH" validate:"required_if=KeyPair '',omitempty,filepath"`
KeyPair string `json:"keypair,omitempty" env:"DYNDNS_KEYPAIR" validate:"required_unless=KeyPairPath ''"`
KeyPair string `json:"keypair,omitempty" env:"DYNDNS_KEYPAIR" validate:"required_if=KeyPairPath ''"`
MetricsListener string `json:"metrics_listen,omitempty" env:"DYNDNS_METRICS_LISTEN"`
PreferredUrls []string `json:"http_resolver_preferred_urls,omitempty" env:"DYNDNS_HTTP_RESOLVER_PREFERRED_URLS" envSeparator:";"`
FallbackUrls []string `json:"http_resolver_fallback_urls,omitempty" env:"DYNDNS_HTTP_RESOLVER_FALLBACK_URLS" envSeparator:";"`
Expand Down

0 comments on commit def1897

Please sign in to comment.