Skip to content

Commit bdb081a

Browse files
committed
fix: encode default kotlin values to JSON
1 parent cc14f60 commit bdb081a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/kotlin/com/ctrlhub/core/http/KtorClientFactory.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ object KtorClientFactory {
4242
}
4343
expectSuccess = true
4444
install(ContentNegotiation) {
45-
json(Json { ignoreUnknownKeys = true })
45+
json(Json {
46+
ignoreUnknownKeys = true
47+
encodeDefaults = true
48+
})
4649
}
4750
install(UserAgent) {
4851
agent = Config.userAgent

0 commit comments

Comments
 (0)