Storage: 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: I16b95a4923f4b764d82cf3bc71b2ca51896822ef
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp
index f918d66..66d1099 100644
--- a/redfish-core/lib/storage.hpp
+++ b/redfish-core/lib/storage.hpp
@@ -42,8 +42,6 @@
const std::vector<std::string> ¶ms) override
{
res.jsonValue["@odata.type"] = "#StorageCollection.StorageCollection";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#StorageCollection.StorageCollection";
res.jsonValue["@odata.id"] = "/redfish/v1/Systems/system/Storage";
res.jsonValue["Name"] = "Storage Collection";
res.jsonValue["Members"] = {
@@ -72,8 +70,6 @@
const std::vector<std::string> ¶ms) override
{
res.jsonValue["@odata.type"] = "#Storage.v1_7_1.Storage";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#Storage.Storage";
res.jsonValue["@odata.id"] = "/redfish/v1/Systems/system/Storage/1";
res.jsonValue["Name"] = "Storage";
res.jsonValue["Id"] = "1";
@@ -171,8 +167,6 @@
storageController["@odata.type"] =
"#Storage.v1_7_0.StorageController";
- storageController["@odata.context"] =
- "/redfish/v1/$metadata#Storage.StorageController";
storageController["@odata.id"] =
"/redfish/v1/Systems/system/Storage/1"
"#/StorageControllers/" +
@@ -336,8 +330,6 @@
&connectionNames = object->second;
asyncResp->res.jsonValue["@odata.type"] = "#Drive.v1_7_0.Drive";
- asyncResp->res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#Drive.Drive";
asyncResp->res.jsonValue["@odata.id"] =
"/redfish/v1/Systems/system/Storage/1/Drives/" + driveId;
asyncResp->res.jsonValue["Name"] = driveId;