pcie: 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: I262f21aac32634f8e87863cca7816e4b9236227a
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp
index 36248a1..b963a53 100644
--- a/redfish-core/lib/pcie.hpp
+++ b/redfish-core/lib/pcie.hpp
@@ -95,9 +95,6 @@
std::shared_ptr<AsyncResp> asyncResp = std::make_shared<AsyncResp>(res);
asyncResp->res.jsonValue = {
{"@odata.type", "#PCIeDeviceCollection.PCIeDeviceCollection"},
- {"@odata.context",
- "/redfish/v1/"
- "$metadata#PCIeDeviceCollection.PCIeDeviceCollection"},
{"@odata.id", "/redfish/v1/Systems/system/PCIeDevices"},
{"Name", "PCIe Device Collection"},
{"Description", "Collection of PCIe Devices"},
@@ -161,8 +158,6 @@
asyncResp->res.jsonValue = {
{"@odata.type", "#PCIeDevice.v1_4_0.PCIeDevice"},
- {"@odata.context",
- "/redfish/v1/$metadata#PCIeDevice.v1_4_0.PCIeDevice"},
{"@odata.id",
"/redfish/v1/Systems/system/PCIeDevices/" + device},
{"Name", "PCIe Device"},
@@ -229,9 +224,6 @@
const std::string &device = params[0];
asyncResp->res.jsonValue = {
{"@odata.type", "#PCIeFunctionCollection.PCIeFunctionCollection"},
- {"@odata.context",
- "/redfish/v1/"
- "$metadata#PCIeFunctionCollection.PCIeFunctionCollection"},
{"@odata.id", "/redfish/v1/Systems/system/PCIeDevices/" + device +
"/PCIeFunctions"},
{"Name", "PCIe Function Collection"},
@@ -364,8 +356,6 @@
asyncResp->res.jsonValue = {
{"@odata.type", "#PCIeFunction.v1_2_0.PCIeFunction"},
- {"@odata.context",
- "/redfish/v1/$metadata#PCIeFunction.PCIeFunction"},
{"@odata.id", "/redfish/v1/Systems/system/PCIeDevices/" +
device + "/PCIeFunctions/" + function},
{"Name", "PCIe Function"},