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] Issue Comment Edited: (ODATA-77) Are Edm primitive type names case-insensitive?


    [ http://tools.oasis-open.org/issues/browse/ODATA-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31371#action_31371 ] 

Ralf Handl edited comment on ODATA-77 at 11/16/12 7:26 AM:
-----------------------------------------------------------

Unfortunately, ABNF defines that strings enclosed in double quotes are case-insensitive, see http://tools.ietf.org/html/rfc5234#section-2.3, and doesn't provide a means for literally stating case-insensitive strings

So our rules would have to look like

primitiveTypeName = [  %x45.64.6d "." ] ; Edm.
                                       ( %x42.69.6e.61.72.79  ; Binary
                                       / ...
                                       )

A better way is to define (in prose) at the top of the ABNF file that string literals enclosed in single quotes are case-sensitive.

If we go for case-sensitivity, I'd prefer the CamelCase names used in section 3.5 of the CSDL specification.

      was (Author: ralfhandl):
    Unfortunately, ABNF defines that strings enclosed in double quotes are case-insensitivie, see http://tools.ietf.org/html/rfc5234#section-2.3, and doesn't provide a means for literally stating case-insensitive strings

So our rules would have to look like

primitiveTypeName = [  %x45.64.6d "." ] ; Edm.
                                       ( %x42.69.6e.61.72.79  ; Binary
                                       / ...
                                       )

If we go for case-sensitivity, I'd prefer the CamelCase names used in section 3.5 of the CSDL specification.
  
> Are Edm primitive type names case-insensitive?
> ----------------------------------------------
>
>                 Key: ODATA-77
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-77
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData ABNF Construction Rules v1.0
>    Affects Versions: WD01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>            Assignee: Ralf Handl
>            Priority: Minor
>             Fix For: WD01
>
>
> The current ABNF defines the Edm primitive type names case-insensitive, yet all examples use Edm.Binary etc.
> As they only appear within null'Xxx', isof() and cast() expressions, case doesn't matter as long as we reserve the "Edm" namespace in all case variants.

-- 
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]