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

11.2.3: representation of null for single-valued primitive properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: No Action
    • Affects Version/s: V4.0_ERRATA02
    • Fix Version/s: V4.0_ERRATA03
    • Component/s: Protocol
    • Labels:
      None
    • Proposal:
      Hide

      Restrict 204 No Content to complex properties where we don't have a canonical representation for the null instance.

      Show
      Restrict 204 No Content to complex properties where we don't have a canonical representation for the null instance.

      Description

      Section 11.2.3 states that

      "If the property is single-valued and has the null value, the service responds with 204 No Content."

      This is understandable for complex properties, but somewhat odd for primitive properties as the obvious representation for a null value would be

      {
      "@odata.context":"$metadata#SomeThings(1)/SomeProperty",
      "value":null
      }

      The benefit of this representation is that it may contain instance annotations for the property.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: