-
Improvement
-
Resolution: Unresolved
-
High
-
None
-
None
-
None
-
Magnolia DX-Core 6.2.20
Rest content delivery 2.2.14
When you define a jcrReferenceResolver in a delivery endpoint and the id cannot be resolved, (maybe because it was deleted) the JSON contains the id as a string instead of the Object. (See screenshot)
This is not useful and you have to do a lot of error checking in the consuming client (SPA).
Better would be to remove the item completely or even better to add a property where you can configure how the jcrReferenceResolver should handle unresolvable items.
This would make the life easier for the FE devs and increase their appreciation for Magnolia a lot.
Acceptance criteria