Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Enum 검증 애너테이션 구현 #105

Open
uijin-j opened this issue Jan 16, 2024 · 0 comments
Open

@Enum 검증 애너테이션 구현 #105

uijin-j opened this issue Jan 16, 2024 · 0 comments
Assignees
Labels
🛠refactor Restructuring of source code without any change of behaviour

Comments

@uijin-j
Copy link
Contributor

uijin-j commented Jan 16, 2024

👩‍🏫Description

현재 Enum에 대한 유효성 검증 애너테이션이 따로 없어, 요청 시 Request DTO의 필드에 Enum이 있고 해당 Enum 형식에 맞는 값이 들어오지 않으면 MethodArgumentTypeMismatchException 예외가 발생하고 있는데요!
@NotBlank, @NotNull과 같이 MethodArgumentNotValidException 예외가 발생하는 것이 더 자연스러울 것 같아 Enum 유효성 검사 애너테이션을 구현하고자 합니다!

📑Jira Issue Link

NA

✍To Be

  • @Enum 애너테이션 생성
  • EnumValidator 생성
  • @Enum 도입
@uijin-j uijin-j added the 🛠refactor Restructuring of source code without any change of behaviour label Jan 16, 2024
@uijin-j uijin-j self-assigned this Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠refactor Restructuring of source code without any change of behaviour
Projects
None yet
Development

No branches or pull requests

1 participant