-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
be/src/main/java/yeonba/be/login/dto/request/UserValidateUsedNicknameRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package yeonba.be.login.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.enums.ParameterIn; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Pattern; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class UserValidateUsedNicknameRequest { | ||
|
||
@Parameter( | ||
name = "nickname", | ||
description = "닉네임", | ||
in = ParameterIn.QUERY) | ||
@Pattern( | ||
regexp = "^[a-zA-Z0-9가-힣]{1,8}$", | ||
message = "닉네임은 공백 없이 영어 대소문자,한글,숫자로 구성되어야 하며 최대 8자까지 가능합니다.") | ||
@NotBlank(message = "닉네임은 반드시 입력되어야 합니다.") | ||
private String nickname; | ||
} |