-
Notifications
You must be signed in to change notification settings - Fork 285
fix: add lazy fetch for ObjectMapper in the json-ld context #4737
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
fix: add lazy fetch for ObjectMapper in the json-ld context #4737
Conversation
9d224fa to
aba67ee
Compare
c5236ba to
aa021ce
Compare
ndr-brt
left a comment
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.
this looks to be a consistent change in core modules, a DR would be appreciated
|
On a second though this reduce the impact of the changes, but it will limit the extensibility of the |
5ecdab7 to
1d15334
Compare
|
I've re-target the PR to not change the usage of |
The PR solution has changed, and it needs to be reviewed
| } | ||
| }; | ||
| mapper.registerModule(module); | ||
| mapper.enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY); |
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.
should this be part of a separate PR for the sake of clarity? It could also deserve a test
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.
This was already present in the code base, I just move it here centrally.
A test make sense 👍
7f9bfd7 to
14cb168
Compare
14cb168 to
704652e
Compare
What this PR changes/adds
Adds lazy fetch of ObjectMapper for JSON-LD context from the
TypeManager.Why it does that
Fix possible wrong
ObjectMapperfetched in the initialize phaseFurther notes
List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.
Linked Issue(s)
Closes #4734
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.