summaryrefslogtreecommitdiff
path: root/include/json_html_serializer.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2020-09-25 18:12:41 +0300
committerEd Tanous <ed@tanous.net>2020-09-28 17:44:44 +0300
commit3e4c7797033926a0502cdd4491421c8b16684aef (patch)
treeda325e65f7efdefa3d7d5b5c8c2573b3c4c0aba2 /include/json_html_serializer.hpp
parent6145ed6f329d492ec074e24134368a70549a782c (diff)
downloadbmcweb-3e4c7797033926a0502cdd4491421c8b16684aef.tar.xz
Fix the build
In between the json patch being written, and the json patch being merged, nlohmann library added binary types: https://nlohmann.github.io/json/features/binary_values/ Which is non standard, but used for things like cbor. Add a switch to handle them. Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I8599847a063a14c5f489e8347c2c440347d2544d
Diffstat (limited to 'include/json_html_serializer.hpp')
-rw-r--r--include/json_html_serializer.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/json_html_serializer.hpp b/include/json_html_serializer.hpp
index a7d5297b6f..174b0869f5 100644
--- a/include/json_html_serializer.hpp
+++ b/include/json_html_serializer.hpp
@@ -588,6 +588,11 @@ inline void dump(std::string& out, const nlohmann::json& val)
out += "null";
return;
}
+ case nlohmann::json::value_t::binary:
+ {
+ // Do nothing; Should never happen.
+ return;
+ }
}
}