Hi. We have a problem. we're serializing an IntRa...
# jackson-kotlin
f
Hi. We have a problem. we're serializing an IntRange from a server we want to upgrade to 1.7.20. This ads the field
end_exclusive
. We have clients which are not able to update kotlin as easily (apps in the wild). They now get the following error:
Copy code
Unrecognized field "end_exclusive" (class kotlin.ranges.IntRange), not marked as ignorable (2 known properties: "start", "end"
Does anybody know of a nice work-around for this. we thought about implementing our own small dataclass on the serverside which adhers to the
IntRange
api of kotlin <= 1.7.10, but it's seems kinda hacky...
s
Sounds like you’ve run into https://github.com/FasterXML/jackson-module-kotlin/issues/582, the fix will be in 2.14 and backported to 2.13.5
🙌 1
f
yes - thank you very much! awaiting jackson 2.13.5 before upgrading kotlin to 1.7.20