[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (ODATA-476) Clarify that type-cast segments are NOT required for properties of derived types in system query options
[ http://tools.oasis-open.org/issues/browse/ODATA-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34765#action_34765 ] Ralf Handl commented on ODATA-476: ---------------------------------- Correct. GET ~/Things?$select=ID,Self.Device/State will return all things with their ID, and the State for all things that are a Device. The question is rather: what do I get when I request GET ~/Things?$select=ID,State What I want is: all things, and the State for each thing that has one: - the string for the Address - the DeviceState for the Device - the value of the dynamic property State for those entities that have one (supposed Thing is an open entity type) If we make the type-cast required, the request would have to list all flavors of State that have been declared across the type hierarchy. > Clarify that type-cast segments are NOT required for properties of derived types in system query options > -------------------------------------------------------------------------------------------------------- > > Key: ODATA-476 > URL: http://tools.oasis-open.org/issues/browse/ODATA-476 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Improvement > Components: OData URL Conventions > Affects Versions: V4.0_CS01 > Environment: [Proposed] > Reporter: Ralf Handl > Fix For: V4.0_CSD03 > > > We allow type-cast segments in expressions, but we don't specify whether they are required. > As a property name is unique within an instance, the type-cast segment is not necessary for evaluating the expression. -- 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]