[ https://issues.apache.org/jira/browse/OLINGO-1608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Grande updated OLINGO-1608: ---------------------------------- Description: Let's assume there are two entity types _A_ and {_}B{_}. For A the entity set _As_ exists. _A_ has two navigations {_}toChildren{_}, as _A_ builds up an hierarchy, and {_}toB{_}. In this case a client can send GET request like the following: {code:java} .../exampleService/As?$expand=toChildren($level=1;$expand=toB)&$top=1 {code} The expected response would look like this {code:json} { "@odata.context": ".../exampleService/$metadata#As(toChildren(toB()))", "value": [ { ... "toChildren": [ { ... "toB": { ... }, }, { ... "toB": { ... }, } ] } ] } {code} Infect the response does not contain the navigation to B evenso the data are provided was: Let's assume there are two entity types _A_ and {_}B{_}. For A the entity set _As_ exists. _A_ has two navigations {_}toChildren{_}, as _A_ builds up an hierarchy, and {_}toB{_}. In this case a client can send GET request like the following: {code} .../exampleService/As?$expand=toChildren($level=1;$expand=toB)&$top=1` {code} The expected response would look like this {code:json} { "@odata.context": ".../exampleService/$metadata#As(toChildren(toB()))", "value": [ { ... "toChildren": [ { ... "toB": { ... }, }, { ... "toB": { ... }, } ] } ] } {code} Infect the response does not contain the navigation to B evenso the data are provided > Expand of $level not serialized > ------------------------------- > > Key: OLINGO-1608 > URL: https://issues.apache.org/jira/browse/OLINGO-1608 > Project: Olingo > Issue Type: Bug > Components: odata4-server > Affects Versions: (Java) V4 4.9.0 > Reporter: Oliver Grande > Priority: Major > > Let's assume there are two entity types _A_ and {_}B{_}. For A the entity set > _As_ exists. _A_ has two navigations {_}toChildren{_}, as _A_ builds up an > hierarchy, and {_}toB{_}. In this case a client can send GET request like the > following: > {code:java} > .../exampleService/As?$expand=toChildren($level=1;$expand=toB)&$top=1 > {code} > > The expected response would look like this > {code:json} > { > "@odata.context": ".../exampleService/$metadata#As(toChildren(toB()))", > "value": [ > { > ... > "toChildren": [ > { > ... > "toB": { > ... > }, > }, > { ... > "toB": { ... }, > } > ] > } > ] > } {code} > Infect the response does not contain the navigation to B evenso the data are > provided -- This message was sent by Atlassian Jira (v8.20.10#820010)