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] (ODATA-903) ABNF: should allow cast segment following collection of complex types


    [ https://issues.oasis-open.org/browse/ODATA-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61761#comment-61761 ] 

Ralf Handl commented on ODATA-903:
----------------------------------

This clearly is a bug in the ABNF as the prose specification explicitly allows this:

4.9 Addressing Derived Types
Any resource path or path expression identifying a collection of entities or complex type instances can be appended with a path segment containing the qualified name of a type derived from the declared type of the collection. The result will be restricted to instances of the derived type and may be empty. 

http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part2-url-conventions/odata-v4.0-errata02-os-part2-url-conventions-complete.html#_Toc406398088

> ABNF: should allow cast segment following collection of complex types
> ---------------------------------------------------------------------
>
>                 Key: ODATA-903
>                 URL: https://issues.oasis-open.org/browse/ODATA-903
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData ABNF Construction Rules
>    Affects Versions: V4.0_ERRATA02
>         Environment: [Proposed]
>            Reporter: Michael Pizzo
>             Fix For: V4.0_ERRATA03
>
>
> OData supports a type segment following a single or collection of entity or complex types.  The ABNF erroneously omits the type cast segment for collections of complex types.
> Here is the current ABNF:
> propertyPath = entityColNavigationProperty [ collectionNavigation ]
>              / entityNavigationProperty    [ singleNavigation ]
>              / complexColProperty          [ collectionPath ]
>              / complexProperty             [ complexPath ]
>              / primitiveColProperty        [ collectionPath ]
>              / primitiveProperty           [ singlePath ]
>              / streamProperty              [ boundOperation ]
> collectionPath = count / boundOperation
> singlePath     = value / boundOperation
> complexPath    = [ "/" qualifiedComplexTypeName ] 
>                  ( "/" propertyPath 
>                  / boundOperation



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


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