-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for Record
deserialization regression and related
#3921
Add tests for Record
deserialization regression and related
#3921
Conversation
Recrod
deser regression and relatedRecord
deser regression and related
Record
deser regression and relatedRecord
deserialization regression and related
} | ||
|
||
public void testEmptyJsonToRecordUsingModuleOther() throws JsonProcessingException { | ||
ObjectMapper mapper = newJsonMapper().registerModule(new SimpleModule() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change this to use mapperBuilder()
instead? That way it'll merge cleanly into master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed all newJsonMapper().registerModule()...
to jsonMapperBuilder().addModule().build()
. Thank you 🙏🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change this to use
mapperBuilder()
instead? That way it'll merge cleanly into master.
Hopefully jsonMapperBuilder()
is what you meant, @cowtowncoder ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that one :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think this works as the base, will merge. Thanks!
This PR provides all cases (including both regression and work-arounds) mentioned in #3906. Thought it might help for future modification/rewrite of (Record, or property discovery in genenral) that seems to be coming.... 🙏🏼
NOTE: Feel free to close this PR if you think this is unncessary~ ✌️✌️