1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-22 05:05:08 +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:
Yahor Berdnikau 2017-09-14 21:51:56 +02:00
parent 046baf0ffe
commit 2d12aea79f

View File

@ -54,6 +54,7 @@ class SubsonicAPIClient(baseUrl: String,
private val jacksonMapper = ObjectMapper()
.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true)
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.registerModule(KotlinModule())
private val retrofit = Retrofit.Builder()