-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add support for ExplicitOperationBindings #2543
Comments
While adding support for IEdmModelElementPath is a good improvement, note that the initial proposal for this particular application (constraining actions/functions to particular paths) has evolved. The final proposal does not require model element path: <Term Name="RequiresExplicitBinding" Type="Core.Tag" DefaultValue="true" AppliesTo="Action, Function">
<Annotation Name="Description" Edm.String="This bound action or function is only available on model elements annotated with the ExplicitOperationBinding term."/>
</Term>
<Term Name="ExplicitOperationBindings" Type="Collection(Edm.String)">
<Annotation Name="Description" Edm.String="The qualified names of explicitly bound operations that are supported on the target model element. These bindings are in addition to any bindings to the type of the target model element not annotated with RequiresExplicitBinding"/>
</Term>
|
The proposal will have to officially be approved and the new Terms: |
The OASIS proposal has been approved. We are working on implementing. |
IEdmModelElementPath
expression
Updated title since the approved vocabulary terms don't require IEdmModelElementPath. |
Link to related OASIS PR: oasis-tcs/odata-vocabularies#214. |
@irvinesunday @mikepizzo @lisicase seems like the |
@habbes @mikepizzo @lisicase thanks a bunch for this fix. We have already implemented this and gotten unblocked ❤ |
By default, we do not bind operations to non-containment navigation properties. We, however, have certain scenarios where we might need this binding. There were deliberations around this and the following was proposed by @mikepizzo
However, in order to use the annotation
ExplicitOperationBindings
, we need theModelElementPath
expression defined in the edm library to be able to represent an EDM model element path.Assemblies affected
Microsoft.OData.Edm
7.10.0
Reproduce steps
None. This is a new feature request.
Expected result
To be able to retrieve the value expressed by the
ModelElementPath
expression.Open questions:
Actual result
None. This is a new feature request.
Additional detail
Related to: microsoft/OpenAPI.NET.OData#232
The text was updated successfully, but these errors were encountered: