Open lmittmann opened 2 days ago
The intention of this feature was for it to be user-customizable. However, there are some gnarly questions regarding whether the format
option is applicable to exactly the current value in the tree or the entire sub-tree. This is something that we can figure out after the initial release of v2.
You can watch our discussion on the topic at https://www.youtube.com/watch?v=sgWVtViFkBs&t=2668s.
IMO the greatest v2
feature is the possibility to overwrite the (un)marshalling logic of types one does not control. But when one type can have more than one marshaling logic I need to fall back to type proxies again, like with v1.
From my understanding of the discussion you want that the format option only applies to "leaf"-keys. Is there already an existing prototype implementation of this?
How can I handle a custom
format
option in anUnmarshalerV2
?