jean
12/01/2021, 1:11 PM@Serializable
data class MeasurementsEndpoint(
@SerialName("measurements")
val measurements: List<Measurement>,
@SerialName("measurementGroups")
val measurementGroups: Map<String, MeasurementGroup>,
)
the call is made like so http.get<MeasurementsEndpoint>(…)
nothing fancy here, but for some reason I get the error
kotlinx.serialization.MissingFieldException: Fields [measurements, measurementGroups] are required for type with serial name ‘no.beiningbogen.snute.sharedlibrary.library.model.endpoint.MeasurementsEndpoint’, but they were missingWhen I test my request locally I don’t get this error, it only happens when I run the request from android or iOS clients. Any idea what I’m doing wrong?
Aleksei Tirman [JB]
12/01/2021, 1:31 PMjean
12/01/2021, 3:20 PM