Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-508

Remove unresolved items (instead of outputting the id as a string)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • delivery
    • 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

              Unassigned Unassigned
              pierre Pierre Sandrin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Task DoD