summaryrefslogtreecommitdiff
path: root/redfish-core/lib/storage.hpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-02-20 01:17:05 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-02-20 22:40:47 +0300
commit29a71820d3c4881b21370028ce3d4b2c326ac64a (patch)
treee4f7aba43e53bcf6889a7ce1e128077d16a958fd /redfish-core/lib/storage.hpp
parentf20ee1487881342bba27fc14f66668c7519889c3 (diff)
downloadbmcweb-29a71820d3c4881b21370028ce3d4b2c326ac64a.tar.xz
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>
Diffstat (limited to 'redfish-core/lib/storage.hpp')
-rw-r--r--redfish-core/lib/storage.hpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp
index f918d662ff..66d109927c 100644
--- a/redfish-core/lib/storage.hpp
+++ b/redfish-core/lib/storage.hpp
@@ -42,8 +42,6 @@ class StorageCollection : public Node
const std::vector<std::string> &params) 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 @@ class Storage : public Node
const std::vector<std::string> &params) 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 @@ class Storage : public Node
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 @@ class Drive : public Node
&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;