eclipse-sirius / sirius-emf-json

JSON-based EMF Resource implementation - part of Eclipse Sirius
https://eclipse.dev/sirius/sirius-web.html
Eclipse Public License 2.0
5 stars 10 forks source link

Add support for `OPTION_RECORD_UNKNOWN_FEATURE` #6

Open pcdavid opened 2 years ago

pcdavid commented 2 years ago

Currently the JSON parser silently ignores the features its does not know about. It would be nice to support an option similar to EMF's XMLResource.OPTION_RECORD_UNKNOWN_FEATURE to store the ignored/unrecognized parts of the JSON so that they can be used in a post-loading phase. A typical use case would be to support transparent migration of older models to newer versions of a metamodels where features have been renamed/moved/etc.