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-1003) Allow casting of entities and complex type instances to arbitrary structural type


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

Ralf Handl commented on ODATA-1003:
-----------------------------------

ODATA-696 adds the functionality to cast structured type instances to structured types outside of their inheritance hierarchy.

What is missing in ODATA-696 that this issue wants to add?

> Allow casting of entities and complex type instances to arbitrary structural type
> ---------------------------------------------------------------------------------
>
>                 Key: ODATA-1003
>                 URL: https://issues.oasis-open.org/browse/ODATA-1003
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: New Feature
>          Components: OData URL Conventions
>    Affects Versions: V4.0_ERRATA03
>            Reporter: Hubert Heijkers
>            Priority: Minor
>
> Currently we allow casting, by means of a type segment, which implicitly filters or, in expressions in our query options, by using the cast function.
> Whereas the cast function allows, optionally, casting to an arbitrary structured type, there is no way to request for an instance of a type and have it, before returning it, be cast to a different arbitrary, typically sibling (read: same base type) type.
> BTW if a cast would be not supported/allowed I'd simply expected a 400 Bad Request to be returned by the server.



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