-
Notifications
You must be signed in to change notification settings - Fork 2
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
Context fragment of contained single entity #2009
base: main
Are you sure you want to change the base?
Conversation
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.
+1, only one comment
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.
I really think that the text will be easier if we define
{entity-set}
is the name of an entity set or path to a collection-valued containment navigation property{single-entity}
is the name of a singleton or path to a single-valued containment navigation property
and then use these definitions in the text below
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.
Good so far. Only nit is that {singleton}
also appears in
- section 10.8 Projected Entity
- section 10.10 Expanded Entity
and should be replaced with {single-entity}
navigation properties
2000/single-navprop-context
Sections 10.2, 10.3 and 10.4. form a triplet for the cases
But in later sections, this triplet pattern is violated. There are no sections for "Derived Singleton", "Projected Singleton" or "Expanded Singleton". And "Operations Results" and "Delta Payload" lump all three cases together. Consider describing the triplet as orthogonal to the other ingredients (derivation, projection, expansion, operation, delta).
What if the entity set of collection of derived values is not known (composable function w/o entity set path followed by a type cast segment)?
|
We decided to merge sections 10.13 to 10.15 and get rid of 10.16 |
odata-specs/odata-protocol/10 Context URL.md Lines 473 to 477 in e28bd96
If there is a special context URL format for a property of a specific entity, why not also for a specific entity in its entirety?
|
2000/single-navprop-context
10 Context URL claims that
4.5.8 Control Information: id (odata.id) requires that
This means that a (JSON) representation of a full or projected entity has enough information to construct the canonical URL from the entity set name alone included in the context URL, whereas for properties of an entity the context URL in addition needs to include the key values. Same for "implicit contained entity sets" which also include the key values of the container(s). |
Fixes #2000