Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

ObjectMapper customization #7080

Open
alonbl opened this issue Aug 1, 2018 · 0 comments
Open

ObjectMapper customization #7080

alonbl opened this issue Aug 1, 2018 · 0 comments

Comments

@alonbl
Copy link

alonbl commented Aug 1, 2018

Hello,

We tried to use dates within k8s custom resources and failed as fabric8 initialize ObjectMapper internally without registering the JavaTimeModule module.

For example:

ObjectMapper mapper = new ObjectMapper(new YAMLFactory()).registerModule(new JavaTimeModule());

Looking at the code there are many cases in which ObjectMapper is constructed, and it is impossible to override the options at a single place.

Can you please consider to have a single centralize point in which ObjectMapper can be registered for yaml and for json so that library can be configured to use with correct ObjectMapper settings?

Alternatively, can you please register the JavaTimeModule for all instances that handles external data structures?

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant