OemComputerSystems: add missing odata.types
odata.type wasn't added causing the validator to fail.
Tested: Validator errors went away
Change-Id: I26e2f4ba13051d6d3e18ddc94eac13bca1bad71c
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 0788e84..9220279 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -1412,6 +1412,10 @@
propertiesList) {
nlohmann::json& oemPFR =
aResp->res.jsonValue["Oem"]["OpenBmc"]["FirmwareProvisioning"];
+ aResp->res.jsonValue["Oem"]["OpenBmc"]["@odata.type"] =
+ "#OemComputerSystem.OpenBmc";
+ oemPFR["@odata.type"] = "#OemComputerSystem.FirmwareProvisioning";
+
if (ec)
{
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;