-
Notifications
You must be signed in to change notification settings - Fork 45
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
New instance annotation @Core.changed for delta messages #201
base: v4.02-release-candidate
Are you sure you want to change the base?
New instance annotation @Core.changed for delta messages #201
Conversation
I would recommend uppercasing the first letter so it becomes "Changed". This will keep it consistent with the case conventions used in all other Core terms (e.g. ContentID). |
I think the only two states we can state are "it previously existed" and "i don't know if it already existed". I like limiting what the payload can claim to those two states. We could have an enum-valued "@Core.PreviousState:" with a value of "Existing" ("Existed?") and (optionally) "unknown". |
Co-authored-by: Heiko Theißen <heiko.theissen@sap.com>
The recipient of a delta message MAY use the instance annotation for optimization only; ultimately any received added/changed entity MUST be processed as an UPSERT.</String> | ||
</Annotation> | ||
</Term> | ||
<EnumType Name="PreviousStateType"> |
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.
Switch to String with AllowedValues
<EnumType Name="PreviousStateType"> | ||
<Annotation Term="Core.Description" String="Previous state of a resource whose changes are described by an [added/changed entity in a delta message](https://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html#sec_AddedChangedEntity) or a [nested entity in a deep-update request](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_UpdateRelatedEntitiesWhenUpdatinganE)" /> | ||
|
||
<Member Name="Absent" Value="2"> |
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.
Remove this
…or-delta-messages
Part of oasis-tcs/odata-specs#300