-
-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Labels
acceptedIssue has been accepted and inserted in a future milestoneIssue has been accepted and inserted in a future milestonebug
Milestone
Description
Hello.
I don't know if this is a real issue so I explain my case:
I have a EntityProcessor that have to add some HATEOAS links to a Entity
Case 1: In GetEntites I do:
var
lEntities: TObjectList<TMacchinaUser>;
...
Renderer.Render(ObjectDict().Add('data', lEntities, RicettaEsplosaLink))
// RicettaEsplosaLink is a TMVCSerializationAction
Case 2: In GetEntity I do:
var
lEntities: TMacchinaUser;
...
Renderer.Render(ObjectDict().Add('data', lEntities, RicettaEsplosaLink)) as for GetEntities
// RicettaEsplosaLink is a TMVCSerializationAction
In second case the rendered JSON is WITHOUT the links.
After some debugging I think I found the "problem". I attach the "MVCFramework.Serializer.JsonDataObjects.pas" with my edit at line 573.
I hope this can help.
Metadata
Metadata
Assignees
Labels
acceptedIssue has been accepted and inserted in a future milestoneIssue has been accepted and inserted in a future milestonebug