Hi, I have an issue with Jackson, Spring Boot and Kotlin 1.5 when using
value classes. The converted json key includes the “special” class name suffix generated by the kotlin compiler for value classes.
E.g. for
data class Resource(
val fooInterval: Milliseconds,
val barInterval: Milliseconds?,
…
)
@JvmInline
value class Milliseconds(val units: Int)
The generated json for
fooInterval
becomes
"fooInterval-kqdxTu8": 900,
And for the nullable property it becomes
"barInterval-OO-hnm0": {
"units": 900
}
The suffix comes from the generated type (value class) but It looks like a bug that it is used as part of the parameter name.
Any thoughts?