1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace container_image 5 { 6 // clang-format off 7 8 enum class ImageTypes{ 9 Invalid, 10 DockerV1, 11 DockerV2, 12 OCI, 13 }; 14 15 NLOHMANN_JSON_SERIALIZE_ENUM(ImageTypes, { 16 {ImageTypes::Invalid, "Invalid"}, 17 {ImageTypes::DockerV1, "DockerV1"}, 18 {ImageTypes::DockerV2, "DockerV2"}, 19 {ImageTypes::OCI, "OCI"}, 20 }); 21 22 } 23 // clang-format on 24