diff --git a/cli/kafka/config.go b/cli/kafka/config.go index 582b8ea2d..444d0642f 100644 --- a/cli/kafka/config.go +++ b/cli/kafka/config.go @@ -67,6 +67,9 @@ func ValidateConfig(c Config) error { if c.Fields[i].PrimaryKey { found++ } + if c.Fields[i].Name == "" { + return errors.Errorf("a name attribute (which isn't equal to \"\") should exist for all fields") + } } if found != 1 { return errors.Errorf("exactly one primary key field is required")