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

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

      Applied

    • 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.
    • Show
      https://www.oasis-open.org/committees/download.php/57135/odata-v4.0-wd08-part3-csdl-2015-12-15.docx

      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.

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

              Created:
              Updated:
              Resolved: