Open padurean opened 2 years ago
Is it possible to use multiple validators on a struct field with "OR" logic? For example the following would mean that Address must be either a valid host name or a valid IP:
Address
type Config struct { Address string `validate:"host|ip, required"` }
Feature Request
Is it possible to use multiple validators on a struct field with "OR" logic? For example the following would mean that
Address
must be either a valid host name or a valid IP: