You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2016/01/18 15:30:40 UTC

[jira] [Commented] (OLINGO-849) Function Import Parameter type restricted to EDM Simple Types

    [ https://issues.apache.org/jira/browse/OLINGO-849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105350#comment-15105350 ] 

Christian Amend commented on OLINGO-849:
----------------------------------------

Hi Sounak,

using any other types except SimpleTypes was not part of the original OData V2 protocol. The were introduced with OData V3. As there was no defined format on how to represent types other than SimpleTypes within the URL we did not implement this feature. I am reluctant to introduce V3 features into the V2 library as they are sometimes incompatible with V2. Also we did not plan to introduce other V3 features into the library. So this might lead to confusion about what features are supported.
You can always start a discussion on our dev mailing list about introducing this feature. Of course contributions always help to drive a topic forward :) This is the dev mailing list: dev@olingo.apache.org 

You can set the mode of a parameter at the EdmProvider object in FunctionImportParameter.java using the method .setMode(String mode).

Best Regards,
Christian

> Function Import Parameter type restricted to EDM Simple Types
> -------------------------------------------------------------
>
>                 Key: OLINGO-849
>                 URL: https://issues.apache.org/jira/browse/OLINGO-849
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.0
>            Reporter: Sounak Basu
>            Priority: Critical
>
> Hello,
> As per OData specification,
> Link - https://msdn.microsoft.com/en-us/library/dd541191.aspx  .
> • The Type of the Parameter MUST be defined. Type MUST be a scalar type, a ComplexType, an EntityType, a collection of scalar type, a collection of ComplexType, or a collection of EntityType.
> • Parameter can define the Mode of the parameter. Possible values are "In", "Out", and "InOut".
> But the Olingo version 2.0 throws an errors for OData services which has function import parameter other than EDM Simple Type.
> Also the OData validator - http://services.odata.org/validation/validation.htm, successfully validates function imports which has parameter types other than EDM Simple Type.
> Kindly suggest a solution for the same.
> Best Regards,
> Sounak Basu



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)