summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-02-20 01:20:14 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-02-20 22:40:47 +0300
commit2475db8b2b8015bd6388b448a32f6fb4a86c7934 (patch)
tree702ff446bd5262756451311ada58c3666375d5bb
parent3463ce465b34c9d581ea597347264ec35da341ce (diff)
downloadbmcweb-2475db8b2b8015bd6388b448a32f6fb4a86c7934.tar.xz
Roles: 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. Change-Id: Ic267d8c9f1fbbec6087e61edf16e6bffe11c927e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--redfish-core/lib/roles.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/redfish-core/lib/roles.hpp b/redfish-core/lib/roles.hpp
index d2071a5cf1..7819be8190 100644
--- a/redfish-core/lib/roles.hpp
+++ b/redfish-core/lib/roles.hpp
@@ -106,7 +106,6 @@ class Roles : public Node
res.jsonValue = {
{"@odata.type", "#Role.v1_2_2.Role"},
- {"@odata.context", "/redfish/v1/$metadata#Role.Role"},
{"Name", "User Role"},
{"Description", roleId + " User Role"},
{"OemPrivileges", nlohmann::json::array()},
@@ -139,10 +138,7 @@ class RoleCollection : public Node
const std::vector<std::string>& params) override
{
auto asyncResp = std::make_shared<AsyncResp>(res);
- res.jsonValue = {{"@odata.context",
- "/redfish/v1/"
- "$metadata#RoleCollection.RoleCollection"},
- {"@odata.id", "/redfish/v1/AccountService/Roles"},
+ res.jsonValue = {{"@odata.id", "/redfish/v1/AccountService/Roles"},
{"@odata.type", "#RoleCollection.RoleCollection"},
{"Name", "Roles Collection"},
{"Description", "BMC User Roles"}};