1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-02-16 19:50:35 +01:00

Added ACCEPT_SINGLE_VALUE_AS_ARRAY = true to JacksonMapper to maximize compatibility

This commit is contained in:
Nite 2020-10-16 15:04:26 +02:00
parent eb3ce0db8a
commit 273bee1341
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1

View File

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