Skip to content

Commit

Permalink
Merge pull request #28 from HeroBrine1st/fix/ignore-unknown-json-fields
Browse files Browse the repository at this point in the history
Ignore unknown json keys on non-debug releases
  • Loading branch information
HeroBrine1st authored Dec 20, 2024
2 parents 891c279 + cf0af51 commit 6fa25c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/ru/herobrine1st/e621/module/APIModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class APIModule(
json(Json {
namingStrategy = JsonNamingStrategy.SnakeCase
coerceInputValues = true
ignoreUnknownKeys = !BuildConfig.DEBUG
})
}
install(HttpCache) {
Expand Down

0 comments on commit 6fa25c3

Please sign in to comment.