-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fully document API changes made in 3.0 #5161
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
Comments
ObjectMapper.rebuild() gives you a mapper builder that you can tweak and then call build on that to give you a new mapper. |
The jsonschema support is removed in Jackson 3. There are some 3rd party libs that attempt to support JsonSchema with Jackson and their maintainers may be interested in also supporting Jackson 3. |
We previously had hooks for users that took an |
Here are some wiki pages that should contain majority of changes:
|
On On Various other notes on questions:
|
That's incredibly helpful, Tatu. Thanks! Regarding |
After playing with this, the lack of a unified configuration API is really a bit cumbersome. I switched from customization APIs exposing ObjectMapper mapper = JsonMapper.builder()
. … customizations
.build()
customizer.apply(mapper.rebuild()); The intermediate assignment is necessary to get to a |
While it seems somewhat wrong (there's a reason it was made non-public), it's probably not the biggest sin in the world -- so would be open to a PR if you wanted to submit one? |
On Builders; I think the issue stems from One thing that might help is knowing that builders do NOT create new copies; they always return |
Uh oh!
There was an error while loading. Please reload this page.
Search before asking
Describe the bug
I am in the process of migrating a large code base containing an extensive set of custom Jackson (de)serializers and the experience is suboptimal. Types are gone, methods are moved or even removed without any hint, what implementors are supposed to do instead. Here's a (certainly non-exhaustive) shortlist of things I found:
StdScalarSerializer.getSchema(…)
is goneJsonToken.FIELD_NAME
is nowJsonToken.PROPERTY_NAME
I assumePropertyNamingStrategyBase
is gone. It had been deprecated before, but without recommendation what to use instead.NamingBase.translate(String)
is protected nowJsonGenerator.getOutputContext()
apparently is….streamWriteContext()
nowJsonGenerator.getCurrentValue()
apparently is….currentValue()
nowMapSerializer.construct(…)
signature has changed completelyObjectMapper.findMixInClassFor(Class)
is goneObjectMapper
instance? I understand I can useJsonMapper.builder()
to create a new one, but I need to be able to configure existing instances.ObjectMapper.copy()
?MapperFeature.AUTO_DETECT_…
constants are goneVersion Information
3.0 RC4
Reproduction
No response
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: