Conversation
📝 WalkthroughWalkthrough이 변경은 규정 검색 API 응답 데이터 모델에 법령명(lawName) 필드를 추가합니다. 관련 DTO 객체들의 생성자에 새로운 매개변수를 추가하고, 스텁 클라이언트의 호출 사이트를 업데이트하여 일관성을 유지합니다. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/main/java/com/lastcommit/piilot/domain/regulation/dto/response/ReferenceDocumentDTO.java (1)
3-10:⚠️ Potential issue | 🟡 Minor
lawName필드 JSON 직렬화 형식 일관성 확인 필요
lawName필드가 올바르게 추가되었으나, JSON 직렬화 형식에 일관성 문제가 있습니다.
AiRegulationSearchResponseDTO의 중첩 클래스AiReferenceDTO는@JsonProperty("document_title")과@JsonProperty("law_name")으로 snake_case를 명시하고 있습니다. 반면,ReferenceDocumentDTO는 이러한 어노테이션이 없어 기본 Jackson 동작에 따라 camelCase(lawName)로 직렬화됩니다.같은 참고 문헌 데이터가 API 응답에서 서로 다른 필드명으로 반환되는 것을 방지하기 위해,
ReferenceDocumentDTO에도@JsonProperty("document_title")과@JsonProperty("law_name")어노테이션 추가를 권장합니다.
개요
PR 유형
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
📣 To Reviewers
response에 law_name을 추가
Reviewers : 팀 선택
Labels : 작업 유형, 자기 자신
Summary by CodeRabbit
개선사항