| // NOLINTBEGIN | |
| #pragma once | |
| #include <cstdint> | |
| #include <nlohmann/json.hpp> | |
| namespace software_inventory | |
| { | |
| // clang-format off | |
| enum class VersionScheme : std::uint8_t{ | |
| Invalid, | |
| SemVer, | |
| DotIntegerNotation, | |
| OEM, | |
| }; | |
| NLOHMANN_JSON_SERIALIZE_ENUM(VersionScheme, { | |
| {VersionScheme::Invalid, "Invalid"}, | |
| {VersionScheme::SemVer, "SemVer"}, | |
| {VersionScheme::DotIntegerNotation, "DotIntegerNotation"}, | |
| {VersionScheme::OEM, "OEM"}, | |
| }); | |
| } // namespace software_inventory | |
| // clang-format on | |
| // NOLINTEND |