func ValidateSimpleSendRequest(snd models.SimpleSendRequest) []error {
	errs := []error{}
	if snd.UserID == "" {
		errs = append(errs, fmt.Errorf(isRequired, "UserID"))
	} else if !IsValidUUID(snd.UserID) {
		errs = append(errs, errInvalidID)
	}
	if snd.Template == "" {
		errs = append(errs, fmt.Errorf(isRequired, "Template"))
	}
	if len(errs) > 0 {
		return errs
	}
	return nil
}
ValidateSimpleSendRequest validates simple send mail request
nolint: gocyclo
package validation
import (
	"fmt"
	"git.containerum.net/ch/mail-templater/pkg/models"
	"github.com/goware/emailx"
)