summaryrefslogtreecommitdiff
path: root/redfish-core/lib/thermal.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-05-25 22:28:09 +0300
committerEd Tanous <ed@tanous.net>2022-06-02 02:33:46 +0300
commit71f2db758154e3a0e1b5dbd4698f5dddd31c10c0 (patch)
treeeddd24af8b230aa626fc09731aceabc48d3be34b /redfish-core/lib/thermal.hpp
parent72c3ae33bd127f8cd5887000a45adf13a56c7582 (diff)
downloadbmcweb-71f2db758154e3a0e1b5dbd4698f5dddd31c10c0.tar.xz
Allow boost url and url_view to be added to json
The latest version of nlohmann seems to have support for adding any arbitrary iterable object as an array in json. Unfortunately, because boost::urls::url produces at iterable of unsigned char, this means that trying to encode urls leads to something like: "@odata.id": [ 47, 114, 101, 100, 102 ] Which is super unhelpful in that it does this implicitly. Given this behavior, there are two options here, make it so that code doesn't compile, or rely on the adl_serializer to just do the expected thing. This patchset opts for the later, to simply to the reasonable behavior, and call string() on the url before loading it into the json. Tested: Unit tests passing. Fixes bug in subsequent patchset. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Id2f49bc8bd7153a0ad0c0fa8be2e13ce7c538e7f
Diffstat (limited to 'redfish-core/lib/thermal.hpp')
0 files changed, 0 insertions, 0 deletions