[
https://issues.apache.org/jira/browse/OLINGO-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048852#comment-16048852
]
Archana Rai commented on OLINGO-656:
------------------------------------
Hi,
You can pass the content type as "application/json;odata.metadata=none", this
will suppress @odata.type annotations in the generated payload.
As per the specification The odata.type annotation must appear in minimal or
full metadata if the type cannot be heuristically determined.
http://docs.oasis-open.org/odata/odata-json-format/v4.0/os/odata-json-format-v4.0-os.html#_Toc372793049
Thanks,
Archana
> V4 Client check odata annotations which are serialized for
> odata.metadata=minimal
> ---------------------------------------------------------------------------------
>
> Key: OLINGO-656
> URL: https://issues.apache.org/jira/browse/OLINGO-656
> Project: Olingo
> Issue Type: Improvement
> Components: odata4-client
> Affects Versions: (Java) V4 4.0.0-beta-03
> Reporter: Christian Amend
>
> Currently the client will serialize OData Annotations like
> [email protected]="Edm.Int16" even for odata.metadata=minimal. This
> should be changed to adhere more closly to the must criteria of the
> specification.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)