[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-945) Correct examples 53 and 54
[ https://issues.oasis-open.org/browse/ODATA-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerald Krause updated ODATA-945: -------------------------------- Proposal: Example 53: Replace response payload with { "@odata.context": "$metadata#Products(Name,Total)", "value": [ { "@odata.id": null, "Name": "Coffee", "Total": 12 }, { "@odata.id": null, "Name": "Paper", "Total": 8 }, { "@odata.id": null, "Name": "Pencil", "Total": null }, { "@odata.id": null, "Name": "Sugar", "Total": 4 } ] } Example 54: Modify request to properly reflect the nesting shown in the response: GET ~/Products?$apply=groupby((Name,Sales/Currency/Code), aggregate(Sales(Amount with sum as Total))) was: Example 53: Replace response payload with { "@odata.context": "$metadata#Products(Name,Sales(Total))", "value": [ { "@odata.id": null, "Name": "Coffee", "Total": 12 }, { "@odata.id": null, "Name": "Paper", "Total": 8 }, { "@odata.id": null, "Name": "Pencil", "Total": null }, { "@odata.id": null, "Name": "Sugar", "Total": 4 } ] } Example 54: Modify request to properly reflect the nesting shown in the response: GET ~/Products?$apply=groupby((Name,Sales/Currency/Code), aggregate(Sales(Amount with sum as Total))) > Correct examples 53 and 54 > -------------------------- > > Key: ODATA-945 > URL: https://issues.oasis-open.org/browse/ODATA-945 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Bug > Components: OData Extension for Data Aggregation > Affects Versions: V4.0_CS02 > Reporter: Gerald Krause > Priority: Minor > Fix For: V4.0_CSD04 > > > Example 53 requests aggregation of property *path* Sales/Amount, but the response shows the dynamic property Total nested inside Sales. Rightly, it should have been “added to the type containing the original expression” (section 3.1.1). > In example 54, the response payload shows the dynamic property Total nested within Sales. According to the request, which uses the path expression Sales/Amount for aggregation, the Total property should be at the top level. -- This message was sent by Atlassian JIRA (v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]