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

Should annotated null/default values be omitted/restored?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_CS01
    • Fix Version/s: V4.01_CS02
    • Component/s: Protocol
    • Labels:
      None
    • Environment:

      Applied

      Description

      In ODATA-818 we added the ability to omit null or default values based on a preference request header. If this preference was specified in the preference-applied response header, the client could assume that any missing properties had the null/default value.

      We had to call out certain cases in which nulls/defaults could not be omitted, such as delta and request payloads.

      We did not specify, though, if a property has annotations, but default/null value, whether it could be omitted. Indeed, in many cases the annotation may be describing why the property was value was omitted, and restoring it to a null/default may violate the intention of annotating the value as being missing.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikep Michael Pizzo
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: