[Code 개선] #8. [Validation] JSON 요청 스키마 유효성 검증 데코레이터 구현 #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
1. 목표
클라이언트의 API 요청 데이터가 기대하는 규격을 준수하는지 라우트 진입 전 단계에서 검증하여 시스템 안정성을 높입니다.
2. 상세 원인 및 배경
request.json.get('feedback', '')와 같이 값을 가져올 때 키가 없으면 빈 문자열로 처리되는데, 이는 비즈니스 로직 깊숙한 곳에서 예기치 않은 동작이나 LLM 비용 낭비를 초래할 수 있습니다.Original: Kyeongmin/test#38