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

Clarify: PATCH should allow changing type on nested complex type

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: Protocol
    • Labels:
      None
    • Proposal:
      Hide

      A complex-typed property can be set to different type in a PATCH request by specifying a different type in the payload.  Properties shared through inheritance, as well as dynamic properties, are retained (unless overwritten by new values in the payload). Other properties are discarded.

      Show
      A complex-typed property can be set to different type in a PATCH request by specifying a different type in the payload.  Properties shared through inheritance, as well as dynamic properties, are retained (unless overwritten by new values in the payload). Other properties are discarded.
    • Resolution:
      Hide

      Duplicate of ODATA-1472

      Show
      Duplicate of ODATA-1472

      Description

      We state that PATCH semantics to an entity also applies PATCH semantics to any provided complex-typed properties. However, we don't say whether a PATCH to an entity can change a complex-typed property to a different complex type.

      While we (explicitly) prohibit changing the type of an instance of an entity type (since an instance of an entity type has identity) it should be possible to change the a complex-typed property to a property of a value of a different type.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: