[ 
https://issues.apache.org/jira/browse/OLINGO-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15490604#comment-15490604
 ] 

Ashan Bakmeedeniya commented on OLINGO-1019:
--------------------------------------------

[~rareddy] sorry for the late reply, unfortunately I also could not find any 
definitive text in the spec, regarding the verbose navigation links, but while 
I am checking some of the samples in Northwind Service [1], I found that even 
though the underling entity/entity collection is empty, there navigation links 
are appeared in entity payload (I know we cannot prove our point here). So I 
think it would be better if we could make both of the serializer’s work as the 
same way. In that case I am voting for the jsonserializer correction.

See: [1] 
http://services.odata.org/V4/Northwind/Northwind.svc/Customers?$format=application/json;odata.metadata=full



> Navigation Links not explicitly added to entity are not shown in JSON 
> "metadata=full" response
> ----------------------------------------------------------------------------------------------
>
>                 Key: OLINGO-1019
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1019
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.2.0
>            Reporter: Ashan Bakmeedeniya
>            Assignee: Ramesh Reddy
>             Fix For: (Java) V4 4.3.0
>
>         Attachments: OLINGO-1019.patch
>
>
> Navigation links not added to entity explicitly are not serialized in the 
> json response when client request "odata.metadata=full".
> In ODataXmlSerializer even if navigation links are not explicitly added to 
> the entity, they are serialized to response. Hence, one would expect similar 
> behavior with  ODataJsonSerializer as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to