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

9.1.1: edm:UnderlyingType should be optional in <EnumType> definition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None

      Description

      (related to: ODATA-53)

      The current specification for the Edm:UnderlyingType attribute reads as follows:

      "An enumeration type has an underlying type which specifies the allowable values for member mapping. The enumeration type MUST assign an value of Edm.Byte, Edm.SByte, Edm.Int16, Edm.Int32, or Edm.Int64 to the edm:UnderlyingType attribute. If the underlying type is not specified, a 32-bit integer MUST be used as the underlying type."

      edm:UnderlyingTYpe attribute should be optional, as implied by the third sentence, so the "MUST" in the second sentence should be changed to "MAY".

      Also, the text reads a bit strange after application of ODATA-53 ("...MUST assign an value"), and the enumeration type doesn't assign a value, the edm:UnderlyingType attribute MAY BE assigned a value.

      Suggest rewording as per proposal.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              mikep Michael Pizzo
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: