Interface UserValidator

All Known Implementing Classes:
DuplicatedAddressValidator, EmailValidator, LoginValidator

public interface UserValidator
Interface for validating user data in a UsersRequestDTO.

Implementations of this interface should define specific validation rules for user registration or update requests.

  • Method Details

    • validate

      void validate(UsersRequestDTO dto)
      Validates the provided UsersRequestDTO.
      Parameters:
      dto - the user data transfer object containing the information to be validated.
      Throws:
      RuntimeException - or a specific validation exception if the data is invalid.