cpudimm: Remove odata.context
Redfish made odata.context optional (1.6.0 of DSP0266) and
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.
Change-Id: I4f9ce00b8cc6f413896879d8c8ec6e093279bd47
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/cpudimm.hpp b/redfish-core/lib/cpudimm.hpp
index b31a2f1..a4d8822 100644
--- a/redfish-core/lib/cpudimm.hpp
+++ b/redfish-core/lib/cpudimm.hpp
@@ -525,8 +525,6 @@
res.jsonValue["@odata.type"] =
"#ProcessorCollection.ProcessorCollection";
res.jsonValue["Name"] = "Processor Collection";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#ProcessorCollection.ProcessorCollection";
res.jsonValue["@odata.id"] = "/redfish/v1/Systems/system/Processors/";
auto asyncResp = std::make_shared<AsyncResp>(res);
@@ -573,8 +571,6 @@
}
const std::string &processorId = params[0];
res.jsonValue["@odata.type"] = "#Processor.v1_7_0.Processor";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#Processor.Processor";
res.jsonValue["@odata.id"] =
"/redfish/v1/Systems/system/Processors/" + processorId;
@@ -613,8 +609,6 @@
{
res.jsonValue["@odata.type"] = "#MemoryCollection.MemoryCollection";
res.jsonValue["Name"] = "Memory Module Collection";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#MemoryCollection.MemoryCollection";
res.jsonValue["@odata.id"] = "/redfish/v1/Systems/system/Memory/";
auto asyncResp = std::make_shared<AsyncResp>(res);
@@ -659,7 +653,6 @@
const std::string &dimmId = params[0];
res.jsonValue["@odata.type"] = "#Memory.v1_6_0.Memory";
- res.jsonValue["@odata.context"] = "/redfish/v1/$metadata#Memory.Memory";
res.jsonValue["@odata.id"] =
"/redfish/v1/Systems/system/Memory/" + dimmId;
auto asyncResp = std::make_shared<AsyncResp>(res);