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

[제안] DateTime 포맷 검사 커스텀 validator 추가하기 #170

Open
EunjiShin opened this issue Aug 26, 2024 · 2 comments
Open

[제안] DateTime 포맷 검사 커스텀 validator 추가하기 #170

EunjiShin opened this issue Aug 26, 2024 · 2 comments
Assignees

Comments

@EunjiShin
Copy link
Collaborator

EunjiShin commented Aug 26, 2024

💁‍♀️ 제안 사항

  • request dto의 dateTime 필드 포맷 검증을 위한 커스텀 validator를 만들어요.

👀 제안 이유

스크린샷 2024-08-27 오전 4 41 49
  • 현재 SPOT에서 사용 중인 모든 dateTime 포맷이 yyyy-MM-dd HH:mm 이에요.
  • request마다 위 포맷을 검증하는 로직이 중복되어있기에.. 아예 뽑아내면 좋을 것 같다고 생각했어요.
스크린샷 2024-08-27 오전 4 42 54 위 코드가 그대로 복붙되어 여기저기서 사용 중!

✅ 참고 사항

(( 셀프 홍보 ))
https://hogwart-scholars.tistory.com/entry/Spring-Boot-ConstraintValidator%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%B4-%EB%82%98%EB%A7%8C%EC%9D%98-validator-%EB%A7%8C%EB%93%A4%EA%B8%B0

@EunjiShin EunjiShin self-assigned this Aug 26, 2024
@pminsung12
Copy link
Collaborator

열심히 학습하고 제가~ 한 번 적용해봐도 될까요~?

@EunjiShin
Copy link
Collaborator Author

@pminsung12 캐럿빠따죠~ 🥕

@EunjiShin EunjiShin assigned pminsung12 and unassigned EunjiShin Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants