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 Summary
Modifier and TypeMethodDescriptionvoid
validate
(UsersRequestDTO dto) Validates the providedUsersRequestDTO
.
-
Method Details
-
validate
Validates the providedUsersRequestDTO
.- 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.
-