1 #include <nlohmann/json.hpp> 2 3 #include <string_view> 4 5 namespace redfish 6 { 7 8 namespace messages 9 { 10 11 constexpr const char* messageVersionPrefix = "Base.1.19.0."; 12 constexpr const char* messageAnnotation = "@Message.ExtendedInfo"; 13 14 void moveErrorsToErrorJson(nlohmann::json& target, nlohmann::json& source); 15 void addMessageToJsonRoot(nlohmann::json& target, 16 const nlohmann::json& message); 17 18 void addMessageToJson(nlohmann::json& target, const nlohmann::json& message, 19 std::string_view fieldPath); 20 21 void addMessageToErrorJson(nlohmann::json& target, 22 const nlohmann::json& message); 23 } // namespace messages 24 } // namespace redfish 25