You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When serializing inline classes the fieldname is looks off
import java.util.UUID
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
class SomeTest {
companion object {
@JvmStatic
fun main(args: Array<String>) {
val mapper = jacksonObjectMapper()
val test = Wrapping(InvoiceId(UUID.randomUUID()))
println(mapper.writeValueAsString(test))
}
}
}
inline class InvoiceId(val value: UUID)
data class Wrapping(val id: InvoiceId)
When serializing inline classes the fieldname is looks off
produces
{"id-p4lkGtA":"03fa0d6f-a609-417a-9e9d-9df866125cce"}
Expected behavior
{"id":"03fa0d6f-a609-417a-9e9d-9df866125cce"}
Kotlin:
Jackson-module-kotlin: 2.11.4
The text was updated successfully, but these errors were encountered: