Update service: Remove odata.context
Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
Redfish has removed odata.context from example payloads in the
specification (1.7.0 of DSP0266), removed it from the mockups,
and Redfish recommended not using.
The reason for making optional and removing from mockups/examples,
"no one could figure out how to use it and it did not add value".
Don't see value in it for our implementation.
Change-Id: I0dbf424c8fb91f448da19ce12b0dadb512880204
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index 048430d..00e166e 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -340,8 +340,6 @@
std::shared_ptr<AsyncResp> aResp = std::make_shared<AsyncResp>(res);
res.jsonValue["@odata.type"] = "#UpdateService.v1_4_0.UpdateService";
res.jsonValue["@odata.id"] = "/redfish/v1/UpdateService";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#UpdateService.UpdateService";
res.jsonValue["Id"] = "UpdateService";
res.jsonValue["Description"] = "Service for Software Update";
res.jsonValue["Name"] = "Update Service";
@@ -524,9 +522,6 @@
"#SoftwareInventoryCollection.SoftwareInventoryCollection";
res.jsonValue["@odata.id"] =
"/redfish/v1/UpdateService/FirmwareInventory";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/"
- "$metadata#SoftwareInventoryCollection.SoftwareInventoryCollection";
res.jsonValue["Name"] = "Software Inventory Collection";
crow::connections::systemBus->async_method_call(
@@ -772,8 +767,6 @@
}
asyncResp->res.jsonValue["@odata.type"] =
"#SoftwareInventory.v1_1_0.SoftwareInventory";
- asyncResp->res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#SoftwareInventory.SoftwareInventory";
asyncResp->res.jsonValue["Name"] = "Software Inventory";
asyncResp->res.jsonValue["Status"]["HealthRollup"] = "OK";