release: 시술기록 가격 통화 기본값 - #143
Merged
Merged
Conversation
금액과 통화를 짝으로 묶어 두어 통화를 빼면 등록이 422 로 실패했다. 기록 추가 화면에 통화 입력란이 없어 클라이언트가 상수 "KRW" 를 매 요청에 실어야만 가격이 저장되는 상태였다. 금액 없이 통화만 오는 경우는 그대로 거절한다.
price_amount 에만 null 을 보내 가격을 지우면 저장돼 있던 통화가 남아 "금액 없는 통화" 가 되고 도메인이 거절했다. 클라이언트가 풀 수 없는 오류다.
feat: 통화를 생략한 가격에 KRW 채우기
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.
관련 이슈
변경 내용
price_currency를 생략한 가격에KRW를 채운다422 TREATMENT_PRICE_INCOMPLETE작업 목적
기록 추가 화면에 통화 입력란이 없는데 도메인이 금액과 통화를 짝으로 묶어 두어, 클라이언트가 상수
"KRW"를 매 요청에 실어야만 가격이 저장됐다.테스트 방법
체크리스트
기타 사항
price응답 필드는 그대로다"KRW"를 보내던 클라이언트도 그대로 동작한다