Search before asking
Describe the bug
Using version 2, I was able to setup a default view the following way:
objectMapper.setConfig(objectMapper.getSerializationConfig().withView(Views.Public.class));
objectMapper.setConfig(objectMapper.getDeserializationConfig().withView(Views.Public.class));
Using version 3, there seems to be no way to do the same. I can only set a view while building an ObjectReader or ObjectWriter. But in an environment such as Spring Boot 4, the shared and easy to preconfigure object is an instance of ObjectMapper.
Would it be possible to allow configuring a default view via JsonMapper.Builder or its parent?
Version Information
3.0.3
Reproduction
No response
Expected behavior
No response
Additional context
No response
Search before asking
Describe the bug
Using version 2, I was able to setup a
defaultview the following way:Using version 3, there seems to be no way to do the same. I can only set a view while building an
ObjectReaderorObjectWriter. But in an environment such as Spring Boot 4, the shared and easy to preconfigure object is an instance ofObjectMapper.Would it be possible to allow configuring a default view via
JsonMapper.Builderor its parent?Version Information
3.0.3
Reproduction
No response
Expected behavior
No response
Additional context
No response