mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-02 10:16:50 +01:00
Enable setting to not fail parsing on unknown field.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
046baf0ffe
commit
2d12aea79f
@ -54,6 +54,7 @@ class SubsonicAPIClient(baseUrl: String,
|
|||||||
|
|
||||||
private val jacksonMapper = ObjectMapper()
|
private val jacksonMapper = ObjectMapper()
|
||||||
.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true)
|
.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true)
|
||||||
|
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
|
||||||
.registerModule(KotlinModule())
|
.registerModule(KotlinModule())
|
||||||
|
|
||||||
private val retrofit = Retrofit.Builder()
|
private val retrofit = Retrofit.Builder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user