commit | c48377db9e745fe5169b58cf2812ff306c30057a | [log] [tgz] |
---|---|---|
author | Myung Bae <myungbae@us.ibm.com> | Tue Dec 19 10:50:32 2023 -0500 |
committer | Myung Bae <myungbae@us.ibm.com> | Thu Dec 21 10:28:40 2023 -0500 |
tree | 80448d5694bbb385962bbc61c14d269198b041d3 | |
parent | 70c4d545817d83819f7f0cd571e0160bacb51d11 [diff] |
Fix typo in collection.hpp Commit https://gerrit.openbmc.org/c/openbmc/bmcweb/+/64087 has a typo in redfish-core/include/utils/collection.hpp ``` L33: jsonCountKeyName /= back + "@data.count"; --> jsonCountKeyName /= back + "@odata.count"; ``` Tested: - Validator passes Change-Id: Ied52944bd43ec5080c4eef141813674bab1cc0b4 Signed-off-by: Myung Bae <myungbae@us.ibm.com>
diff --git a/redfish-core/include/utils/collection.hpp b/redfish-core/include/utils/collection.hpp index 79e4fc0..2e5563b 100644 --- a/redfish-core/include/utils/collection.hpp +++ b/redfish-core/include/utils/collection.hpp
@@ -30,7 +30,7 @@ nlohmann::json::json_pointer jsonCountKeyName = jsonKeyName; std::string back = jsonCountKeyName.back(); jsonCountKeyName.pop_back(); - jsonCountKeyName /= back + "@data.count"; + jsonCountKeyName /= back + "@odata.count"; if (ec == boost::system::errc::io_error) {