서버 요청, 응답 스키마 검증을 해야할까요? #23
toothlessdev
started this conversation in
서비스 의사결정 로그
Replies: 1 comment
-
|
저는 Form 유효성 검증 외에는 프론트 런타임 스키마 검증은 불필요하다고 봅니다 개인적으로는 프론트에서 요청/응답 스키마를 런타임으로 검증하는 것은 비용 대비 효용이 낮다고 생각합니다 단 현재처럼 entities/*/schema 에서 서버 테이블을 기반으로 엔티티를 구성해두었는데, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
현재 프론트엔드–백엔드 간 통신에서
요청(Request)과 응답(Response)의 형태는 암묵적인 계약에 많이 의존하고 있습니다.
이에 따라 다음과 같은 문제가 간헐적으로 발생합니다.
디버깅 시 서버 문제인지 / 프론트 문제인지 원인 추적이 어려움
이런 맥락에서 요청/응답 스키마 검증(Runtime Schema Validation) 도입 여부를 논의해보고자 합니다
@eunwoo-levi @kimgho
Beta Was this translation helpful? Give feedback.
All reactions