Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1608

Expand of $level not serialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.9.0
    • None
    • odata4-server
    • None

    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:

      .../exampleService/As?$expand=toChildren($level=1;$expand=toB)&$top=1
      

       

      The expected response would look like this

      {
        "@odata.context": ".../exampleService/$metadata#As(toChildren(toB()))",
        "value": [
          {
            ...
            "toChildren": [
              {
                ...
                "toB": {
                  ...
                },         
              },
              {  ...
               "toB": { ... },
              }
            ]
          }
        ]
      } 

      Infect the response does not contain the navigation to B evenso the data are provided

      Attachments

        Activity

          People

            Unassigned Unassigned
            grande Oliver Grande
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: