Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Select restrictions #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Select restrictions #21

wants to merge 2 commits into from

Conversation

JefWight
Copy link

Similar to how the Capabilities vocabulary allows annotating entity sets with information about when an entity set supports $filter, $orderby, and $expand, it should be possible to express the ability to use $select, and which properties may be explicitly not selectable.

An example of why this is needed:
Some services may have the same entity exposed in different entity sets, with different sets of properties available from the different entity sets. This may happen more often with non-contained entities. For example, a service with both Products and Orders entity sets, where Product can have a collection of Orders it is part of, and Order can have a collection of Products it includes, it may be possible to select all Product properties from /Products, but a limited selection of propertiess from /Orders(id)/Products.

@msftclas
Copy link

Hi @JefWight, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Jeff Wight). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@JefWight
Copy link
Author

Fixes #16

@ralfhandl
Copy link

Hi Jeff,

This is an interesting proposal. Please note that the Core and Capabilities vocabularies are part of the OData 4.0 specification, so please propose this change via the odata-comment mailing list: https://www.oasis-open.org/committees/comments/index.php?wg_abbrev=odata.

Thanks in advance!
--Ralf

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants