Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ 작업 내용
DELETE /markers/{markerId}
경로와 필요한 요청/응답 정보를 추가했습니다.🤔 고민했던 부분
NullPointerException 문제 해결
Bookmark
객체의User
가null
로 설정되어NullPointerException
이 발생하는 문제가 있었습니다.User
와Bookmark
간의 관계를 명시적으로 설정하고, Mock 객체에 올바른 값을 주입하도록 수정했습니다.validateMarkerUser
메서드에null
체크를 추가하는 방안을 고민했으며, 안정성을 위해 추가했습니다.Marker 삭제 로직에서 유효성 검증 방식
Optional
을 활용해 null-safe 검증 로직을 작성했습니다.