eclipse-emfcloud / emfjson-jackson

emfjson-jackson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EMFModule.Feature.OPTION_SERIALIZE_CONTAINMENT_AS_HREF does not have any effect

juergen-albert opened this issue · comments

The EMFModule can be configured with different Features and one of them is

OPTION_SERIALIZE_CONTAINMENT_AS_HREF(false);

I've looked for the usage of the Feature and found none. Thus I assume it is not implemented for whatever reason.
As far as I understand it, containment objects would be serialized as proxies. I'm not sure how this might produce a meaningful URI accept maybe for cross-document containments but this is besides the point. Does somebody know the intention behind this Feature and the question would be if it can be removed or if it would be forth it to implement it.

That is a very good question! It seems that this option was originally introduced with 5 other options in the previous repository but only four of those options actually made it into the 1.0 release back then. Still, it seems to me that this option was never implemented and so far nobody has had any use for it. If you need it, we are happy to accept contributions but if you do not need it I would almost opt to remove that feature.

@juergen-albert I'll remove the option for now. If you think it is valuable, please feel free to open a PR for it.

Sorry for my late reply and thanks for your quick reaction. Removing it would have been my choice as well.