fix: 서버와 어긋난 API 계약 정리 (카카오 로그인, 가입 완료, 답글, 예약) - #92
Merged
Merged
Conversation
- 카카오 로그인: 서버에서 지워진 /oauth2/kakao/auth-url 을 계속 불러 메인 화면의 로그인 버튼이 반응하지 않았다. /auth/kakao/login-url 과 응답 키 loginUrl 로 맞춘다. - 카카오 가입 완료: 응답 스키마가 서버가 보내지 않는 password 를 필수로 요구해 파싱이 항상 실패했고 사용자가 /signup 에 갇혔다. - 커뮤니티 답글: replies 를 문자열 배열로 받아 답글이 하나라도 있으면 글 상세가 열리지 않았다. 댓글 객체 트리로 받고 답글도 화면에 그린다. - 시설 예약: 서버가 필수로 요구하는 종료 시각을 보내지 않아 예약이 항상 실패했다. 방문 상담 1시간으로 채운다. - 건강 기록 유형을 서버 목록(질병·성장·치과·안과·응급 포함)과 맞춘다. - 호출처가 없는 API 함수 7개 제거.
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.
Closes #91
서버 PR: CareCode-Repo/CareCode_Interface#111 (함께 배포해야 하는 것은 없다. 이 PR 은 현재 운영 서버와도 맞는다.)
변경
/auth/kakao/login-url,loginUrlpassword제거, 화면이 쓰지 않는 필드는 nullishreplies를 재귀 스키마로, 답글도 렌더링endTime기본값 (시작 + 60분)테스트
contracts-alignment.test.ts— 서버가 실제로 주는 응답 모양으로 네 스키마 고정npm run typecheck,npm run lint,npm test— 195 passed