[Improvement] WP-COM-01 공통 응답/에러 포맷 고정 #164

Closed
opened 2026-02-24 06:32:14 +00:00 by seonkyu.kim · 0 comments
Owner

개요

PRD 02-global-requirements.md 기반 공통 API 응답/에러 포맷 통일

작업 내용

  • FieldError DTO 공통화 (SPMS.Domain/Common/FieldError.cs)
  • ValidationErrorData + ApiResponse.ValidationFail() 확장
  • InvalidModelStateResponseFactory 설정 (Program.cs)
  • Controller 에러 응답 통일 (AuthController, ServiceController, ProfileController)
    • return Unauthorized(...)throw SpmsException.Unauthorized(...) 변경
    • 에러코드 "101" → "102" 수정
  • MessageValidationService 리팩토링 (ValidationErrorDtoFieldError)
  • 빌드/테스트 검증

관련 PRD

  • 02-global-requirements.md GR-ERR-01~03

의존성

없음 (Phase 0 첫 번째 WP)

참조

  • PRD: 02-global-requirements.md §1
  • 실행계획: 01-common-foundation-execution-plan.md WP-COM-01
## 개요 PRD `02-global-requirements.md` 기반 공통 API 응답/에러 포맷 통일 ## 작업 내용 - [ ] `FieldError` DTO 공통화 (`SPMS.Domain/Common/FieldError.cs`) - [ ] `ValidationErrorData` + `ApiResponse.ValidationFail()` 확장 - [ ] `InvalidModelStateResponseFactory` 설정 (Program.cs) - [ ] Controller 에러 응답 통일 (AuthController, ServiceController, ProfileController) - `return Unauthorized(...)` → `throw SpmsException.Unauthorized(...)` 변경 - 에러코드 "101" → "102" 수정 - [ ] MessageValidationService 리팩토링 (`ValidationErrorDto` → `FieldError`) - [ ] 빌드/테스트 검증 ## 관련 PRD - `02-global-requirements.md` GR-ERR-01~03 ## 의존성 없음 (Phase 0 첫 번째 WP) ## 참조 - PRD: `02-global-requirements.md` §1 - 실행계획: `01-common-foundation-execution-plan.md` WP-COM-01
seonkyu.kim self-assigned this 2026-02-24 06:32:21 +00:00
seonkyu.kim added this to the Phase 0: 공통 기반 + 인증 milestone 2026-02-24 06:32:21 +00:00
seonkyu.kim added the
Priority
Medium
Status
Available
Type
Improvement
labels 2026-02-24 06:32:24 +00:00
seonkyu.kim added
Priority
High
Status
In Progress
and removed
Priority
Medium
Status
Available
labels 2026-02-24 07:21:54 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-24 07:50:52 +00:00
Sign in to join this conversation.
No description provided.