code: func (kinds *Kinds) Validate(c *validation.Context) {
  	names := stringset.New(len(kinds.GetKind()))
  	for i, k := range kinds.GetKind() {
  		c.Enter("kind %d", i)
  		switch {
  		case k.Name == "":
  			c.Errorf("name is required")
  		case !names.Add(k.Name):
  			c.Errorf("duplicate name %q", k.Name)
  		}
  		c.Exit()
  	}
  }
docs: // Validate validates VM kinds.