Christian Amend created OLINGO-1033:

             Summary: V4: @odata.type annotation incorrect for primitive types
                 Key: OLINGO-1033
             Project: Olingo
          Issue Type: Bug
          Components: odata4-client, odata4-server
    Affects Versions: (Java) V4 4.3.0, (Java) V4 4.2.0
            Reporter: Christian Amend
             Fix For: (Java) V4 4.4.0

The @odata.type annotation is incorrecty serialized for primitive types. the 
current behavior has this output: ...@odata.type":"Int32" but should look like 
this: ...@odata.type":"#Int32"

Here the specfication part: 
4.5.3 Annotation odata.type
The odata.type annotation specifies the type of a JSON object or name/value 
pair. Its value is a URI that identifies the type of the property or object. 
For built-in primitive types the value is the unqualified name of the primitive 
type, specified as a URI fragment.
  "@odata.context": "http://host/service/$metadata#Customers/$entity";,
  "@odata.type": "#Model.VipCustomer",
"ID": 2,
"DynamicLimit": "INF",
"dynamicli...@odata.type": "#Double",

This message was sent by Atlassian JIRA

Reply via email to