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

Need to define semantics, serialization format, etc. for Enums

    XMLWordPrintable

    Details

      Description

      Enums are allowed in an entity model, but their semantics are not defined. We need to define semantics and serialization for each format. For example:
      -Are they serialized as their underlying type or the enumeration value name (I would propose the later).
      -How are enumeration values specified in expressions (I propose as name rather than underlying value)
      -How are flags expressed for enumeration values? (I propose defining the use of the pipe (|) character for this purpose in the ABNF)
      -Can multiple enumeration values have the same underlying value (i.e., as aliases) (I propose yes).
      -Can the underlying type be a non-integral type (I don't see the need if the URL syntax and serialization formats uses the enumeration value name)

      We need a single proposal that defines all the additional text required to fully support enumerations.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: