summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
authorAnjaliintel-21 <anjali.ray@intel.com>2022-03-25 06:38:28 +0300
committerEd Tanous <ed@tanous.net>2022-04-13 22:30:21 +0300
commit0145a22519adb4f7e6b79ba0f5446359713ea474 (patch)
treeacd4174cdd5df869588e9a24ed5f60f12ff8314f /redfish-core
parent54417b02efbfe896d6ef442cfc6a721314aac3f8 (diff)
downloadbmcweb-0145a22519adb4f7e6b79ba0f5446359713ea474.tar.xz
Update odata.type version of /redfish/v1/AccountService/
Redfish validator was failing and throwing below error: *** /redfish/v1/AccountService AccountService.v1_10_0.ExternalAccountProvider:OAuth2Service : Could not get details on this property (argument of type 'NoneType' is not iterable) Type (#AccountService.v1_5_0.AccountService), GET SUCCESS (time: 1.283549) complex @odata.id: Expected @odata.id to match URI link /redfish/v1/AccountService#/Oem/OpenBMC FAIL... "OAuth2Service" is added in v1_7_x+ versions of AccountService schema. Even though schema's are updated to v1_10_x, Still source is pointing to v1_5_x which is causing undefined type and failing Redfish validator. So I updated odata.type to AccountService.v1_10_0.AccountService". Tested: *** /redfish/v1/AccountService Type (#AccountService.v1_10_0.AccountService), GET SUCCESS (time: 1.306433) complex @odata.id: Expected @odata.id to match URI link /redfish/v1/AccountService#/Oem/OpenBMC PASS After change OAuth2Service property error got disappeared - Redfish validator does not show any such error. But, Due to increased version number, there can be any new properties (deprecated or new) error shown in redfish validator. ( Note: odata.id error exist before and after the fix, which can be fixed as separate commit) All AccountService related URI's worked as expected and validation got succeeded. Signed-off-by: Anjaliintel-21 <anjali.ray@intel.com> Change-Id: Ic73319cd649ecebbf7108863b2a72bcd2768d477
Diffstat (limited to 'redfish-core')
-rw-r--r--redfish-core/lib/account_service.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index 435d8906b1..19352e8d57 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -1277,7 +1277,7 @@ inline void requestAccountServiceRoutes(App& app)
asyncResp->res.jsonValue = {
{"@odata.id", "/redfish/v1/AccountService"},
{"@odata.type", "#AccountService."
- "v1_5_0.AccountService"},
+ "v1_10_0.AccountService"},
{"Id", "AccountService"},
{"Name", "Account Service"},
{"Description", "Account Service"},