[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-1420) Path evaluation for annotations targeting annotations
Heiko Theissen created ODATA-1420: ------------------------------------- Summary: Path evaluation for annotations targeting annotations Key: ODATA-1420 URL: https://issues.oasis-open.org/browse/ODATA-1420 Project: OASIS Open Data Protocol (OData) TC Issue Type: Improvement Reporter: Heiko Theissen [OData-CSDL, section "Path evaluation"|https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/cos01/odata-csdl-xml-v4.01-cos01.html#sec_PathEvaluation] does not specify rules for annotations that target another annotation. Imagine an annotation term {{PAngV.PriceSection2}} whose value is an amount. {code:xml} <EntityType Name="SalesOrderItem"> <Property Name="Pieces" Type="Edm.Int"/> <Property Name="Price" Type="Edm.Decimal"/> <Annotation Term="PAngV.PriceSection2"> <DivBy> <Path>Price</Path> <Path>Pieces</Path> </DivBy> <Annotation Term="Measures.ISOCurrency"> <Path>Price/@Measures.ISOCurrency"</Path> </Annotation> </Annotation> </EntityType> {code} This entity set computes the {{PAngV.PriceSection2}} as an annotation and wants to annotate this annotation with the corresponding currency. I would expect the evaluation of the path {{Price/@Measures.ISOCurrency}} to follow the rules for "annotations embedded within a structural or navigation property of an entity type or complex type", because the "outer" annotation has a primitive type. This should be clarified in the specification. -- This message was sent by Atlassian Jira (v8.3.3#803004)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]