fix: 시술기록 수정에서 모르는 필드 거절 - #136
Merged
Merged
Conversation
Spring Boot 가 FAIL_ON_UNKNOWN_PROPERTIES 를 꺼 두어 photos 같은 미지원 필드가 조용히 버려지고 200 이 나갔다. 클라이언트는 사진이 교체된 줄 알고 옛 사진이 남은 화면을 보게 된다. 어느 경로를 써야 하는지 알려 주고 막는다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
관련 이슈
변경 내용
UpdateTreatmentRecordRequest가 모르는 필드를 모아422 VALIDATION_FAILED로 거절/treatment-records/{recordId}/photos)를 안내작업 목적
Spring Boot 가
FAIL_ON_UNKNOWN_PROPERTIES를 꺼 두어photos같은 미지원 필드가 조용히 버려지고 200 이 나갔다. 클라이언트는 사진이 교체된 줄 알고 옛 사진이 남은 화면을 보게 된다.테스트 방법
체크리스트
기타 사항
400 INVALID_REQUEST였으나422 VALIDATION_FAILED로 구현했다. 400 은 본문 전체를 뭉뚱그려 어느 필드가 문제인지 알려주지 못하고, 이 레포는 이미 필드 단위 문제를 422 +field_errors로 답한다. 이슈 본문도 함께 고쳤다