code: func (s *SnapshotGetService) Validate() error {
  	var invalid []string
  	if s.repository == "" {
  		invalid = append(invalid, "Repository")
  	}
  	if len(invalid) > 0 {
  		return fmt.Errorf("missing required fields: %v", invalid)
  	}
  	return nil
  }
docs: // Validate checks if the operation is valid.