1*40e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0 2*40e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors 30ec8b83dSEd Tanous #pragma once 40ec8b83dSEd Tanous #include <nlohmann/json.hpp> 50ec8b83dSEd Tanous 60ec8b83dSEd Tanous namespace redfish_extensions 70ec8b83dSEd Tanous { 80ec8b83dSEd Tanous // clang-format off 90ec8b83dSEd Tanous 100ec8b83dSEd Tanous enum class ReleaseStatusType{ 110ec8b83dSEd Tanous Invalid, 120ec8b83dSEd Tanous Standard, 130ec8b83dSEd Tanous Informational, 140ec8b83dSEd Tanous WorkInProgress, 150ec8b83dSEd Tanous InDevelopment, 160ec8b83dSEd Tanous }; 170ec8b83dSEd Tanous 180ec8b83dSEd Tanous enum class RevisionKind{ 190ec8b83dSEd Tanous Invalid, 200ec8b83dSEd Tanous Added, 210ec8b83dSEd Tanous Modified, 220ec8b83dSEd Tanous Deprecated, 230ec8b83dSEd Tanous }; 240ec8b83dSEd Tanous 250ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(ReleaseStatusType, { 260ec8b83dSEd Tanous {ReleaseStatusType::Invalid, "Invalid"}, 270ec8b83dSEd Tanous {ReleaseStatusType::Standard, "Standard"}, 280ec8b83dSEd Tanous {ReleaseStatusType::Informational, "Informational"}, 290ec8b83dSEd Tanous {ReleaseStatusType::WorkInProgress, "WorkInProgress"}, 300ec8b83dSEd Tanous {ReleaseStatusType::InDevelopment, "InDevelopment"}, 310ec8b83dSEd Tanous }); 320ec8b83dSEd Tanous 330ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(RevisionKind, { 340ec8b83dSEd Tanous {RevisionKind::Invalid, "Invalid"}, 350ec8b83dSEd Tanous {RevisionKind::Added, "Added"}, 360ec8b83dSEd Tanous {RevisionKind::Modified, "Modified"}, 370ec8b83dSEd Tanous {RevisionKind::Deprecated, "Deprecated"}, 380ec8b83dSEd Tanous }); 390ec8b83dSEd Tanous 400ec8b83dSEd Tanous } 410ec8b83dSEd Tanous // clang-format on 42