You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
FYI
I don't use the form Renderer.Render(200, lEntities, RicettaEsplosaLink) (Without ObjectDict()) because i need the "data" object that surrounds the entity.
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:
Case 2: In GetEntity I do:
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.
Eddy
MVCFramework.Serializer.JsonDataObjects.zip
The text was updated successfully, but these errors were encountered: