-
Notifications
You must be signed in to change notification settings - Fork 45
Disallow conflicting restrictions for the same capability #304
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
base: v4.02-release-candidate
Are you sure you want to change the base?
Conversation
Services can specify a different set of restrictions specific to a path given through the | ||
following mechanisms: | ||
- an external annotation target of the form `ns.container/EntitySet/NavProp1/.../NavPropN` | ||
- a navigation property path in `Capabilities.NavigationRestrictions/RestrictedProperties/NavigationProperty` | ||
- a combination of both. | ||
|
||
In these cases the more specific restrictions take precedence. It is an error to specify | ||
conflicting restrictions of the same capability through different mechanisms. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reword along the lines of:
Services can specify a different set of restrictions specific to a path given through the | |
following mechanisms: | |
- an external annotation target of the form `ns.container/EntitySet/NavProp1/.../NavPropN` | |
- a navigation property path in `Capabilities.NavigationRestrictions/RestrictedProperties/NavigationProperty` | |
- a combination of both. | |
In these cases the more specific restrictions take precedence. It is an error to specify | |
conflicting restrictions of the same capability through different mechanisms. | |
Services can specify a different set of restrictions specific to a resource path given through the | |
following mechanisms: | |
- an external annotation target of the form `ns.container/EntitySet/NavProp1/.../NavPropN` | |
- a navigation property path formed by appending the target navigation property to the an element annotated with the NavigationRestrictions term `Capabilities.NavigationRestrictions/RestrictedProperties/NavigationProperty` | |
- a combination of both. | |
Restrictions specific to a path take precedence over restrictions applied directly to a containment path. It is an error to specify conflicting restrictions for the same resource path. | |
Capabilities annotations targeting a canonical collection (in the | ||
sense of [OData-Protocol, section 10](https://oasis-tcs.github.io/odata-specs/odata-protocol/odata-protocol.html#ContextURL)) | ||
apply to every entity in that collection, even if it is addressed via a non-canonical path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also apply to Capabilities.NavigationRestrictions
on an entity set where RestrictedProperties/NavigationProperty
is a containment navigation property? The concatenation of entity set and navigation property is then a canonical path.
Fixes #298