blob: 67f725e3cf0df3bedd59beb6f3bcc64a33b6ea02 [file]
#ifndef THIRD_PARTY_MILOTIC_EXTERNAL_CC_AUTHZ_OVERRIDE_JSON_H_
#define THIRD_PARTY_MILOTIC_EXTERNAL_CC_AUTHZ_OVERRIDE_JSON_H_
#include <nlohmann/json.hpp>
#include "override.h"
namespace milotic::authz {
// Serializes an Override to the DMTF privilege-registry JSON object,
// i.e. {"Targets": [...], "OperationMap": {...}}.
//
// This lives outside Override so that override.h stays free of any nlohmann
// dependency, letting consumers use Override without pulling in nlohmann.
nlohmann::json::object_t OverrideToJson(const Override& override);
} // namespace milotic::authz
#endif // THIRD_PARTY_MILOTIC_EXTERNAL_CC_AUTHZ_OVERRIDE_JSON_H_