Fix MCPServer warning: remove class-scope json alias from SchemaToCppGenerator

This commit is contained in:
Bill
2026-02-18 18:14:56 -07:00
parent ed6503b4c8
commit 9c0c6bda2f

View File

@@ -7,8 +7,6 @@
#include <string>
#include <vector>
using json = nlohmann::json;
struct SchemaToCppOutput {
bool success = false;
std::string headerCode;
@@ -18,7 +16,7 @@ struct SchemaToCppOutput {
class SchemaToCppGenerator {
public:
static SchemaToCppOutput generate(const json& schema,
static SchemaToCppOutput generate(const nlohmann::json& schema,
const std::string& headerName,
const std::string& targetName) {
SchemaToCppOutput out;