1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 #include <nlohmann/json.hpp> 5 6 namespace job_document 7 { 8 // clang-format off 9 10 enum class DataType{ 11 Invalid, 12 Boolean, 13 Number, 14 String, 15 }; 16 17 NLOHMANN_JSON_SERIALIZE_ENUM(DataType, { 18 {DataType::Invalid, "Invalid"}, 19 {DataType::Boolean, "Boolean"}, 20 {DataType::Number, "Number"}, 21 {DataType::String, "String"}, 22 }); 23 24 } 25 // clang-format on 26