OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Updated: (ODATA-497) Remove type prefix and single quotes for URL literals of types Date, DateTimeOffset, Guid, and TimeOfDay


     [ http://tools.oasis-open.org/issues/browse/ODATA-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralf Handl updated ODATA-497:
-----------------------------

        Summary: Remove type prefix and single quotes for URL literals of types Date, DateTimeOffset, Guid, and TimeOfDay  (was: Make type prefix and single quotes optional for URL literals of types Date, DateTimeOffset, Guid, and TimeOfDay)
    Environment: [Proposed]  (was: [Proposed][CS02])
       Proposal: 
Remove type prefix and single quotes for URL literals of types Date, DateTimeOffset, Guid, and TimeOfDay: 

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

This also affects the key representation in the path part:

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

  was:
Make type prefix and single quotes optional for URL literals of types Date, DateTimeOffset, Guid, and TimeOfDay: 

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

This also affects the key representation in the path part:

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


+1: each "optional", MAY, or SHOULD adds burden.

> Remove type prefix and single quotes for URL literals of types Date, DateTimeOffset, Guid, and TimeOfDay
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ODATA-497
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-497
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData ABNF Construction Rules, OData URL Conventions 
>    Affects Versions: V4.0_CS01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>            Priority: Minor
>             Fix For: V4.0_CSD03
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]