1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 #include <nlohmann/json.hpp> 5 6 namespace redfish_extensions 7 { 8 // clang-format off 9 10 enum class ReleaseStatusType{ 11 Invalid, 12 Standard, 13 Informational, 14 WorkInProgress, 15 InDevelopment, 16 }; 17 18 enum class RevisionKind{ 19 Invalid, 20 Added, 21 Modified, 22 Deprecated, 23 }; 24 25 NLOHMANN_JSON_SERIALIZE_ENUM(ReleaseStatusType, { 26 {ReleaseStatusType::Invalid, "Invalid"}, 27 {ReleaseStatusType::Standard, "Standard"}, 28 {ReleaseStatusType::Informational, "Informational"}, 29 {ReleaseStatusType::WorkInProgress, "WorkInProgress"}, 30 {ReleaseStatusType::InDevelopment, "InDevelopment"}, 31 }); 32 33 NLOHMANN_JSON_SERIALIZE_ENUM(RevisionKind, { 34 {RevisionKind::Invalid, "Invalid"}, 35 {RevisionKind::Added, "Added"}, 36 {RevisionKind::Modified, "Modified"}, 37 {RevisionKind::Deprecated, "Deprecated"}, 38 }); 39 40 } 41 // clang-format on 42