• Type: Sub-task
    • Resolution: Fixed
    • Priority: Minor
    • V4.01_CS02
    • Affects Version/s: V4.01_CS01
    • Component/s: Protocol
    • None
    • Environment:

      Proposed

    • Hide

      Nullable singleton should have identical semantics to a nullable single-value contained navigation property.

      If a singleton is null, a service may support upserting it via PATCH or PUT, and can announce  this with annotation Capabilities.UpdateRestrictions/Upsertable:true, see ODATA-1005.

      If a singleton is nullable, a service may support deleting it via DELETE. By default nullable singletons are deletable, and the service can announce that it is not deletable with annotation Capabilities.DeleteRestrictions/Deletable:false, see ODATA-1005. (Note: the default for this annotation is Deletable:true because it also applies to entity sets and has been around for some time.)

      Show
      Nullable singleton should have identical semantics to a nullable single-value contained navigation property. If a singleton is null, a service may support upserting it via PATCH or PUT, and can announce  this with annotation Capabilities.UpdateRestrictions/Upsertable:true , see ODATA-1005 . If a singleton is nullable, a service may support deleting it via DELETE. By default nullable singletons are deletable, and the service can announce that it is not deletable with annotation Capabilities.DeleteRestrictions/Deletable:false , see ODATA-1005 . (Note: the default for this annotation is Deletable:true because it also applies to entity sets and has been around for some time.)
    • Show
      https://www.oasis-open.org/committees/download.php/65433/odata-v4.01-wd06-part1-protocol-2019-06-07.docx  

      ODATA-1183 introduced nullable singletons:

      • Can they be created if they are currently null?
      • Can they be deleted if they are currently not null?

      Protocol section 11.4.5 Delete an Entity currently states that singletons cannot be deleted.

            Assignee:
            Unassigned
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: