1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace message_registry 5 { 6 // clang-format off 7 8 enum class ParamType{ 9 Invalid, 10 string, 11 number, 12 }; 13 14 enum class ClearingType{ 15 Invalid, 16 SameOriginOfCondition, 17 }; 18 19 NLOHMANN_JSON_SERIALIZE_ENUM(ParamType, { 20 {ParamType::Invalid, "Invalid"}, 21 {ParamType::string, "string"}, 22 {ParamType::number, "number"}, 23 }); 24 25 NLOHMANN_JSON_SERIALIZE_ENUM(ClearingType, { 26 {ClearingType::Invalid, "Invalid"}, 27 {ClearingType::SameOriginOfCondition, "SameOriginOfCondition"}, 28 }); 29 30 } 31 // clang-format on 32