-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_CSD01
-
Fix Version/s: V4.0_CSD02
-
Component/s: JSON Format
-
Labels:None
-
Environment:
[Applied]
-
Proposal:
-
Resolution:
In odata-422, we define a metadataurl representation for references, as well as links, deleted links, and deleted entities. This replaced "odata.kind" and established the metadataurl as the single place to look to understand what a particular object represented.
However, understanding that a particular JSON object represents a reference, link, deleted link, or deleted entity is not dependent upon the base metadataurl of the service. these are defined by odata.
Thus, the metadata urls should not depend on the metadataurl of the service, but should be defined relative to a (virtual) odata url. for example:
{metadata-url}#$ref => odata:#ref {metadata-url}#@deletedEntity => odata:#deletedEntity
{metadata-url}#@link => odata:#link{metadata-url}#@deletedLink => odata:#deletedLink