code: func validateSet(set DefinitionSet) error {
  	errors := &ValidationErrors{}
  	for _, def := range set {
  		if validate, ok := def.(Validate); ok {
  			if err := validate.Validate(); err != nil {
  				errors.AddError(def, err)
  			}
  		}
  	}
  	err := errors.AsError()
  	if err != nil {
  		Errors = append(Errors, &Error{GoError: err})
  	}
  	return err
  }
docs: // validateSet runs the validation on all the set definitions that define one.