Код: Выделить всё
java.lang.IllegalStateException: Conflicting/ambiguous property name definitions (implicit name 'ndc'): found multiple explicit names: [ndc, isNdc], but also implicit accessor: [method com.himshers.supplychain.inventoryapi.model.LotItem#getNdc()][visible=true,ignore=false,explicitName=false]
Код: Выделить всё
data class LotItem(
@JsonProperty("lotId") val lotId: String? = null,
@JsonProperty("ndc") val ndc: String? = null,
) {
@JsonProperty("isNdc")
fun isNdc(): Boolean {
return ndc != null
}
}
Раньше это работало на Kotlin: 1.9.20, Jackson: 2.16.0 , Ява: 13.
Подробнее здесь: https://stackoverflow.com/questions/787 ... -additiona