| #pragma once |
| #include <cstdint> |
| #include <nlohmann/json.hpp> |
| |
| namespace action_info |
| { |
| // clang-format off |
| |
| enum class ParameterTypes : std::uint8_t{ |
| Invalid, |
| Boolean, |
| Number, |
| NumberArray, |
| String, |
| StringArray, |
| Object, |
| ObjectArray, |
| }; |
| |
| NLOHMANN_JSON_SERIALIZE_ENUM(ParameterTypes, { |
| {ParameterTypes::Invalid, "Invalid"}, |
| {ParameterTypes::Boolean, "Boolean"}, |
| {ParameterTypes::Number, "Number"}, |
| {ParameterTypes::NumberArray, "NumberArray"}, |
| {ParameterTypes::String, "String"}, |
| {ParameterTypes::StringArray, "StringArray"}, |
| {ParameterTypes::Object, "Object"}, |
| {ParameterTypes::ObjectArray, "ObjectArray"}, |
| }); |
| |
| } // namespace action_info |
| // clang-format on |