-
Notifications
You must be signed in to change notification settings - Fork 81
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
Merging of restrictions annotations on entity sets and navigation property paths #321
Comments
Question is: is it more meaningful to give a generic description of the relationship than to default to the description on the bound entity set. |
OData-OpenAPI-v1.0 does not mention where the I prefer service-specific texts over generic texts, hence expect the following order:
In the example # 2 exists but # 1 does not, I expect # 2 to be the summary. But the current implementation considers only # 1 and # 3, hence # 3 is the summary. |
Assuming nav prop "customers" on a product: "/Products/{Id}/Customers": { Order of preference:
We don't currently look at description of entity set/nav prop because we want to differentiate between read/write |
Example: In
tools/tests/annotations.xml
, the resource path/ReadOnlySingleton/ReadOnlyMany
is bound to the entity setTwoReadOnlySet
odata-openapi/tools/tests/annotations.xml
Line 262 in 0b4afb4
which has
ReadRestrictions
odata-openapi/tools/tests/annotations.xml
Lines 495 to 500 in 0b4afb4
But the "get summary" for this resource path is not taken from these
ReadRestrictions
but rather from thefallback-summary
of the templateoperation-summary-description
.odata-openapi/tools/V4-CSDL-to-OpenAPI.xsl
Lines 3167 to 3169 in 0b4afb4
The output is
odata-openapi/tools/tests/annotations.openapi3.json
Lines 1977 to 1979 in 0b4afb4
and not
General observation: Depending on the resource path, restrictions for
operation-summary-description
are only taken from the annotationsCapabilities.…Restrictions
if the resource path is an entity setCapabilities.NavigationRestrictions/RestrictedProperties/…Restrictions
if the resource path contains a navigation property.In the second case, other templates also consider
Capabilities.…Restrictions
of the bound entity set if there are noCapabilities.NavigationRestrictions/RestrictedProperties/…Restrictions
for the navigation property. Why is theoperation-summary-description
template different?The text was updated successfully, but these errors were encountered: