Closed darxriggs closed 4 months ago
Agreed: not sure how I missed this in review -- order can not and must not be assumed; matching strictly by name. We need tests for different order at minimum.
cc @TomaszGaweda
Initial Record deserialization support reverted due to issues, closing.
Basic support was added in #148. Its implementation assumes the same order of fields in the Java record and JSON.
This issue is about improving the deserialization to support any order of fields in the JSON. Currently deserialization fails with
Failed to create an instance of SomeClass due to (java.lang.IllegalArgumentException): argument type mismatch
in case the field order doesn't match (see this comment on the initial implementation).