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

Clarify $select behavior for properties of "null" instances

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      Change to

      Each select item in the $select clause indicates that the response MUST include the declared or dynamic properties, actions and functions identified by that select item for structured type instances that are not null.

      and

      If a select item is a path expression requesting a component of an entity or complex property+,+ and the entity or complex property is null on an instance, then the component is not representedtreated as null as well.

      Show
      Change to Each select item in the $select clause indicates that the response MUST include the declared or dynamic properties, actions and functions identified by that select item for structured type instances that are not null . and If a select item is a path expression requesting a component of an entity or complex property+,+ and the entity or complex property is null on an instance, then the component is  not represented treated as null as well .

      Description

      Section 5.1.4 System Query Option $select states that

      Each select item in the $select clause indicates that the response MUST include the declared or dynamic properties, actions and functions identified by that select item.

      and

      If a select item is a path expression requesting a component of a complex property and the complex property is null on an instance, then the component is treated as null as well.

      This is misleading because we do not expect the components of a "null" instance to be represented as "null" values.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: