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-68) Describe representation of ReferenceTypes in responses

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

Hubert Heijkers edited comment on ODATA-68 at 3/18/13 6:47 AM:

Initially wondered on what type of properties we'd allow $ref.  After discussing with Ralf (who updated his comment above to reflect this too) we clarified that it can be used on all type of properties.

In ODATA-239 we are already proposing to relax the ABNF to allow common expressions to be passed as parameters. Allowing refs to refer to properties allows us to pass in values relative to the root of the service and not just in context of where the function is applied.

We also agreed that using $ref on a property in the resource path, presuming that the path to the property is dereferenceable - which it SHOULD be, simply would return a odata.ref with a value equal to the resource path without the $ref and likely wouldn't add great value.

So typically a $ref on a property like the sample above: ~/Movies(1)/Title/$ref would return {"odata.ref":"Movies(1)/Title"}

      was (Author: hubert.heijkers):
    I presume you mean to 'restrict' here correct and that you are effectively allowing $ref to be used on primitive properties as well as entities or collections thereof correct? 

So for properties I'd presume that in ~/Movies(1)/Title/$ref would return {"odata.ref":"Movies(1)/Title"} right?

The use of these references would be to pass them to a function so that it can resolve the actual value that needs to be used in that function right?

> Describe representation of ReferenceTypes in responses
> ------------------------------------------------------
>                 Key: ODATA-68
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-68
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData ATOM Format , OData CSDL, OData JSON Format
>    Affects Versions: V4.0_WD01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>            Assignee: Ralf Handl
>             Fix For: V4.0_WD01
> ReferenceType elements define a type derived from an entity type that can be used in function import return types. 
> Describe how they are serialized in Atom and JSON.

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]