code: func ValidateParams(paramSpec []GeneratorParam, params map[string]interface{}) error {
  	allErrs := []error{}
  	for ix := range paramSpec {
  		if paramSpec[ix].Required {
  			value, found := params[paramSpec[ix].Name]
  			if !found || IsZero(value) {
  				allErrs = append(allErrs, fmt.Errorf("Parameter: %s is required", paramSpec[ix].Name))
  			}
  		}
  	}
  	return utilerrors.NewAggregate(allErrs)
  }
docs: // ValidateParams ensures that all required params are present in the params map