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-263) Remove $select=*


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

Ralf Handl edited comment on ODATA-263 at 2/14/13 5:23 AM:
-----------------------------------------------------------

Yes, $select=NavProp would include always include the "deferred" representation, $select=NavProp&$expand=NavProp would always include the expanded representation, independent of the odata.metadata format parameter.

I just saw that this is now explicitly stated in section 4.9.1.

      was (Author: ralfhandl):
    Yes, $select=NavProp would include always include the "deferred" representation, $select=NavProp&$expand=NavProp would always include the expanded representation, independent of the odata.metadata format parameter.

That's not yet explicitly stated, and the current Microsoft implementation uses $select only to restrict, not to augment, so specifying $select=NavProp with odata.metadata=minimal/none doesn't include the navigation property.
  
> Remove $select=*
> ----------------
>
>                 Key: ODATA-263
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-263
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData ABNF Construction Rules v1.0, OData URL Conventions v1.0
>    Affects Versions: WD01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>             Fix For: WD01
>
>
> The URL conventions state that 
>     If the selectItem is a star, then all properties and navigation properties on the matching resources MUST be returned.
> This conflicts with the JSON format which by default does not return navigation properties and only includes them when odata.metadata=full is requested.
> The recent enhancements to $expand which allows nesting e.g. a $select further reduces the need for $select=*, so it's best to remove it altogether.

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