Add support for jackson field ids#868
Conversation
|
@komamitsu @xerial Can CI be run on this PR to show the failing test? Then I'll follow-up with the implementation changes. |
Sorry, something went wrong.
|
🔨 Build failed with test showcasing new edge case. Will now demonstrate passing test with implementation changes. |
Sorry, something went wrong.
|
@komamitsu @xerial This is ready for another CI run to showcase the new test passing. |
Sorry, something went wrong.
|
@komamitsu @xerial This is ready for a final draft review. I added a test to show backwards compatibility with new feature flag. |
Sorry, something went wrong.
|
@komamitsu Thanks for the review. All comments addressed. |
Sorry, something went wrong.
|
@brenbar Thanks! LGTM 👍 After reviewing all the changes, |
Sorry, something went wrong.
|
@komamitsu I think your feedback is fair 😅 Ready again for review 👍 |
Sorry, something went wrong.
komamitsu
left a comment
There was a problem hiding this comment.
LGTM, thank you!
Sorry, something went wrong.
Background
Jackson core has interfaces for field ids. This is a great opportunity for msgpack, since the protocol allows for integer keys, enabling more advanced binary serialization strategies for further reduced message size.
Current implementation of msgpack-jackson only allows for coercing strings to integers. Implementing the formal interfaces will enable end-to-end map serialization with mixed string/integer keys. Other msgpack implementations already support this.
Summary of Changes
KeyDeserializerto deserialize field ids.