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

Remove type prefix and single quotes for URL literals of types Date, DateTimeOffset, Guid, and TimeOfDay

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_CS01
    • Fix Version/s: V4.0_CSD03
    • Component/s: ABNF, URL Conventions
    • Labels:
      None
    • Environment:

      [Applied]

      Description

      Currently we require literals for e.g. Date and DateTimeOffset to be prefixed with a type identifier, e.g.

      $filter=StartDate ge date'2013-09-02'
      $filter=ChangedAt lt datetimeoffset'2013-09-02T00:00Z'
      $filter=EndTime lt time'23:59'
      $filter=ID eq guid'01234567-89ab-cdef-0123-456789abcdef'

      ~/Tasks(guid'01234567-89ab-cdef-0123-456789abcdef')

      In most cases the type of the literal can be deduced from the context, e.g. type of other comparison operand.

      The only case in which this cannot be done is when comparing two literals, which is rare.

      So we can make the prefixes at least optional, or even completely get rid of them

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: