Skip to content

Commit

Permalink
feat: 사용 중인 닉네임 검증 요청 DTO 추가(#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minjae-An committed May 8, 2024
1 parent 343eb99 commit f0672fb
Showing 1 changed file with 23 additions and 0 deletions.
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;
}

0 comments on commit f0672fb

Please sign in to comment.