code: func (s RoleBindingGeneratorV1) validate() error {
  	if len(s.Name) == 0 {
  		return fmt.Errorf("name must be specified")
  	}
  	if (len(s.ClusterRole) == 0) == (len(s.Role) == 0) {
  		return fmt.Errorf("exactly one of clusterrole or role must be specified")
  	}
  	return nil
  }
docs: // validate validates required fields are set to support structured generation.