-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.01_OS
-
Fix Version/s: V4.01_ERRATA01
-
Component/s: JSON Format
-
Labels:None
-
Proposal:
Text states:
- Added entities MUST include all available selected properties and MAY include additional, unselected properties. Collection-valued properties are treated as atomic values; any collection-valued properties returned from a delta request MUST contain all current values for that collection.
- Changed entities MUST include all available selected properties that have changed, and MAY include additional properties.
Nowhere in the prose does it state that "id" control information must be included for added/changed entities (as compared with, in particular, providing the key properties). The non-normative example 32 shows the use of "@id" (V4.01) for a changed entity. There aren't any examples for added entities.
Contrast this with section 15.3 Deleted Entity:
"In OData 4.01 payloads the deleted-entity object MUST include the following properties, regardless of the specified metadata value: ... Control information id or all of the entity’s key fields."
For consistency between added/changed entities and deleted entities, perhaps added/changed entities could similarly require: "Control information id or all of the entity’s key fields".