eclipse-emfcloud / emfjson-jackson

emfjson-jackson
Other
17 stars 15 forks source link

Improve unknown feature diagnostics #38

Closed mdlnr closed 2 years ago

mdlnr commented 2 years ago

The deserialization feature FAIL_ON_UNKNOWN_PROPERTIES can be used to add error messages regarding JSON attributes with no corresponding feature in the diagnostics

The error message currently looks like this:

Unknown feature some_unknown_feature

I would like to have a little bit more context about the current object which is missing the feature:

Proposed error message:

Unknown feature 'some_unknown_feature' for https://example.org/data/test/1.0#//Customer

This would help understanding the issue quicker without looking at the input JSON.