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:all-tabpanel ]

Hubert Heijkers updated ODATA-1003:
-----------------------------------

    Description: 
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.

  was:
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 invalid request to be returned by the server.


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