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