You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For capability annotations in particular, we have moved towards path-based external targeting in order to differentiate capabilities based on how the element is accessed.
These type of path-based annotation targets start with the entity container, started by an entity set, singleton, action import or function import, and then on from there, using the following rule:
· qualified name of an entity container followed by a segment containing a singleton or entity set name and zero or more property, navigation property, or type-cast segments
However, this rule doesn't include target paths that contain bound actions/functions.
Proposal
Add bound actions and bound functions to the list of things allowed within a target path for annotations.
Parameters can be used to differentiate overloads, including differentiating targets that identify operations bound to a collection versus members of a collection of a particular type.
Note: since there is no key in the target path, if MyFunction is bound to both MyEntityType and MyEntitySet (which is a collection of MyEntityType), then it is ambiguous whether
MySchema.MyEntityContainer/MyEntitySet/MyFunction
references the overload bound to MyEntityType or Collection(MyEntityType). In this case, the above would reference all overloads bound to MyEntityType or Collection(MyEntityType), and they would have to be differentiated by providing the appropriate binding (and any non-binding) parameters:
For capability annotations in particular, we have moved towards path-based external targeting in order to differentiate capabilities based on how the element is accessed.
These type of path-based annotation targets start with the entity container, started by an entity set, singleton, action import or function import, and then on from there, using the following rule:
· qualified name of an entity container followed by a segment containing a singleton or entity set name and zero or more property, navigation property, or type-cast segments
However, this rule doesn't include target paths that contain bound actions/functions.
Proposal
Add bound actions and bound functions to the list of things allowed within a target path for annotations.
Parameters can be used to differentiate overloads, including differentiating targets that identify operations bound to a collection versus members of a collection of a particular type.
#233
Imported from ODATA-1626
The text was updated successfully, but these errors were encountered: