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

10.2.2: Clarify whether enum types allow multiple members with the same value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_ERRATA02
    • Fix Version/s: V4.0_ERRATA03
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      Applied

    • Proposal:
      Hide


      Allow services to support multiple members with the same value.Require that (where supported) members with the same underlying value compare equal, and caution that the choice of which value the service returns is indeterminant.

      Show
      Allow services to support multiple members with the same value.Require that (where supported) members with the same underlying value compare equal, and caution that the choice of which value the service returns is indeterminant.
    • Resolution:
      Show
      https://www.oasis-open.org/committees/download.php/57135/odata-v4.0-wd08-part3-csdl-2015-12-15.docx

      Description

      CSDL section 10.2.2 only states that the value of the Value attribute is used for sorting.

      It does not state whether values of the Value attribute have to be unique within an enum type, and it also does not state whether equality comparison of members of non-flag enum types is done by name or by value.

      For flag enum types it states that member combination with the same value are equivalent.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: