Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-989

5.1.2 $expand: state that $levels=1 is equivalent to omitting it

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_ERRATA03
    • Fix Version/s: V4.01_WD01
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      See summary

      Show
      See summary
    • Resolution:
      Hide

      Applied as "A $levels option with a value of 1 specifies a single expand with no recursion." Did not assert that this is the same as omitting, as a service could default to expanding a certain number of levels unless specified.

      Show
      Applied as "A $levels option with a value of 1 specifies a single expand with no recursion." Did not assert that this is the same as omitting, as a service could default to expanding a certain number of levels unless specified.

      Description

      We don't explicitly state that $levels=1 has no effect.

      This can only be deduced from Example 99: all employees with their manager, manager's manager, and manager's manager's manager

      http://host/service/Employees?$expand=ReportsTo($levels=3)

      This would mean that $expand=ReportsTo(levels=1) is all employees with their manager, i.e. same as just $expand=ReportsTo

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: