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

Ramya Vasanth commented on OLINGO-1481:
---------------------------------------

The new api to be used for setting the annotations based on the version is

public EdmAssistedSerializer createEdmAssistedSerializer(final ContentType 
contentType,    final List<String> versions) throws SerializerException;

The createEdmAssistedSerializer takes versions as a parameter.

> Handle odata v4.01 annotations in edm assisted serailizer
> ---------------------------------------------------------
>
>                 Key: OLINGO-1481
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1481
>             Project: Olingo
>          Issue Type: New Feature
>            Reporter: Ramya Vasanth
>            Priority: Major
>
> Currently EdmAssisted Serializer is created only taking the Content type into 
> account. It should also be taking the odata version as a parameter so that 
> annotations added to the odata response are based on the OData-Version header.
> E.g when $apply is used with $count=true, currently the annotation seen is 
> @odata.count.
> If the odata-version header is set to 4.01,then the annotation should be 
> @count.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to