-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor : Clothes 관련 테스트 코드 추가 및 리팩토링 #97
Conversation
- 메소드 private으로 전환 - Image Url 확장자 검사 추가
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
단위 테스트 확인했습니다!
} | ||
|
||
@Operation(summary = "옷 ID로 조회", description = "옷 조회 API - 옷 ID로 조회") | ||
@GetMapping("/{id}") | ||
public ApiResponse<FindClothesRes> findClothesById(@PathVariable Long id) { | ||
public ApiResponse<FindClothesRes> findClothesById(@PathVariable @Positive(message = "옷 ID는 양수여야 합니다.") Long id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
positive는 message가 있어서 뒤에 적었는데 특별한 기준은 없습니다!
변경 사항
테스트 작성 시 주의사항
변경 필요한 부분