System: 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: Iee73d72d56237e8787e839ed06b979779c97d2f3
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index cae0fe8..041d896 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -1372,9 +1372,6 @@
res.jsonValue["@odata.type"] =
"#ComputerSystemCollection.ComputerSystemCollection";
res.jsonValue["@odata.id"] = "/redfish/v1/Systems";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/"
- "$metadata#ComputerSystemCollection.ComputerSystemCollection";
res.jsonValue["Name"] = "Computer System Collection";
res.jsonValue["Members"] = {
{{"@odata.id", "/redfish/v1/Systems/system"}}};
@@ -1572,8 +1569,6 @@
const std::vector<std::string> ¶ms) override
{
res.jsonValue["@odata.type"] = "#ComputerSystem.v1_6_0.ComputerSystem";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#ComputerSystem.ComputerSystem";
res.jsonValue["Name"] = "Computer System";
res.jsonValue["Id"] = "system";
res.jsonValue["SystemType"] = "Physical";