Clarification: Delete supported for Nullable single-valued navigation properties

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Minor
    • V4.01_ERRATA01
    • Affects Version/s: V4.01_OS
    • Component/s: Protocol
    • None
    • Environment:

      Closed as applied 2023-10-18.

    • Hide

      Update the highlighted text as follows:

      • Top-level Singleton entities can be deleted if they are nullable. Services supporting this MAY advertise it by annotating the singleton with the term Capabilities.DeleteRestrictions (nested property Deletable with value true) defined in [OData-VocCap].
      Show
      Update the highlighted text as follows: Top-level Singleton entities can be deleted if they are nullable. Services supporting this MAY advertise it by annotating the singleton with the term Capabilities.DeleteRestrictions (nested property Deletable with value true) defined in   [OData-VocCap] .
    • Show
      https://github.com/oasis-tcs/odata-specs/pull/137

      The existing text OData Version 4.0 Part 1: Protocol (oasis-open.org) says the following:

      11.4.5 Delete an Entity

      To delete an individual entity, the client makes a DELETE request to a URL that identifies the entity. Services MAY restrict deletes only to requests addressing the edit URL of the entity.

      The request body SHOULD be empty. Singleton entities can be deleted if they are nullable. Services supporting this SHOULD advertise it by annotating the singleton with the term Capabilities.DeleteRestrictions (nested property Deletable with value true) defined in [OData-VocCap].

       

      >>The highlighted text applies to top-level <Singleton> entities, not to single-valued navigation properties. Calling DELETE on the edit URL of a nullable single-valued navigation property sets that property to null.  Subsequent GET requests would return 404.

       

            Assignee:
            handl
            Reporter:
            Michael Pizzo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: