improvement: 메시지 저장/검증 계약 통일 (#222) #223
No reviewers
SPMS/Owners
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#223
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "improvement/#222-message-validate-contract"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 작업 요약
MessageValidateRequestDto에JsonPropertyName추가하여 save/validate API 간 snake_case 필드명 통일Data타입을string?→object?로 변경하여 save/validate 간 타입 일치MessageValidationService.ValidateData파라미터를object?로 변경하여 JsonElement/string 모두 처리🔗 관련 이슈 (Related Issues)
Closes #222
🛠️ 작업 내용 (Changes)
SPMS.Application/DTOs/Message/MessageValidateRequestDto.cs— JsonPropertyName 추가, Data 타입 object?로 변경SPMS.Application/Services/MessageValidationService.cs— ValidateData 파라미터 string? → object? 변경, JsonElement/string 분기 처리SPMS.API/Controllers/MessageController.cs— save/validate 엔드포인트 Swagger Description 보강📢 리뷰어 참고 사항 (To Reviewers)
ValidateData는JsonElement(API 호출 시)와string(내부 호출 시) 모두 수용하도록 분기 처리됨✅ 체크리스트 (Self Checklist)
📸 스크린샷 / 테스트 로그 (Screenshots/Logs)