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: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      Closed as applied 2023-10-18.

    • 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. 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 entity or complex property is included and represented as null.

      That is pull up the last sentence of the section right after the first sentence in this issue.

      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. 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 entity or complex property is included and represented as null . That is pull up the last sentence of the section right after the first sentence in this issue.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/139

      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:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: