Skip to content

Commit 18d7186

Browse files
committed
[BOOK-188] chore: jsonRule 주석 추가
1 parent 61974f9 commit 18d7186

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • core/network/src/main/kotlin/com/ninecraft/booket/core/network/di

core/network/src/main/kotlin/com/ninecraft/booket/core/network/di/NetworkModule.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ import javax.inject.Singleton
2424
private const val MaxTimeoutMillis = 15_000L
2525

2626
private val jsonRule = Json {
27+
// 기본값도 JSON에 포함하여 직렬화
2728
encodeDefaults = true
29+
// JSON에 정의되지 않은 키는 무시 (역직렬화 시 에러 방지)
2830
ignoreUnknownKeys = true
31+
// JSON을 보기 좋게 들여쓰기하여 포맷팅
2932
prettyPrint = true
33+
// 엄격하지 않은 파싱 (따옴표 없는 키, 후행 쉼표 등 허용)
3034
isLenient = true
3135
}
3236

0 commit comments

Comments
 (0)