eclipse-emfcloud / emfcloud-modelserver

Modelserver component
Other
43 stars 21 forks source link

API v2: Injection of JsonPatchHelper #174

Closed cdamus closed 2 years ago

cdamus commented 2 years ago

In my application's implementation of the Model Server, I have a customization of the EMF <--> JSON transformation that results in JSON with a tree structure quite different to the EMF tree. Accordingly, I need to customize the both the transformation of incoming JSON patches for edit requests and outgoing diffs in the ModelUpdateResults from edits.

Currently, a few components of the Model Server construct a JsonPatchHelper for themselves to accomplish these tasks. I need to be able to inject my own patch helper to handle my custom EMF/JSON transformation.

This issue is of course only relevant in the context of API v2, which is pending in issue #150.