Alex created OLINGO-620:
---------------------------

             Summary: DataServiceVersion is set as 1.0 even if application has 
CustomizableFeedMappings
                 Key: OLINGO-620
                 URL: https://issues.apache.org/jira/browse/OLINGO-620
             Project: Olingo
          Issue Type: Bug
          Components: odata2-core
    Affects Versions: V2 2.0.3
            Reporter: Alex


$metadata returns 
<edmx:DataServices 
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; 
m:DataServiceVersion="1.0">

Instead of m:DataServiceVersion="2.0" because CustomizableFeedMappings were 
used (from examples)

        List<Property> properties = new ArrayList<Property>();
        properties.add(new 
SimpleProperty().setName("Id").setType(EdmSimpleTypeKind.Int32).setFacets(new 
Facets().setNullable(false)));
        properties.add(new 
SimpleProperty().setName("Model").setType(EdmSimpleTypeKind.String).setFacets(new
 Facets().setNullable(false).setMaxLength(100).setDefaultValue("Hugo"))
            .setCustomizableFeedMappings(new 
CustomizableFeedMappings().setFcTargetPath(EdmTargetPath.SYNDICATION_TITLE)));





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

Reply via email to