Add generated test-schema-v1.2

This commit is contained in:
2026-03-03 12:18:50 -04:00
parent 419d8b2f9f
commit 8df8a764b4
79 changed files with 18418 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
/*
* AUTO-GENERATED BY CppBeSsot.
* Direct edits are pointless: this file is regenerated.
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
*/
#pragma once
#include <cstdint>
#include <string>
#include <nlohmann/json.hpp>
#include <odb/core.hxx>
namespace models {
#pragma db model version(1, 2)
#pragma db object table("Agent")
class Agent
{
public:
#pragma db id
// odbAddedIn: 1.1
std::string id{};
// odbAddedIn: 1.1
std::string role{};
// odbAddedIn: 1.1
bool persistent{};
// odbAddedIn: 1.1
std::string displayName{};
// odbAddedIn: 1.2
int32_t trustScore{};
NLOHMANN_DEFINE_TYPE_INTRUSIVE(Agent, id, role, persistent, displayName, trustScore)
nlohmann::json toJson() const
{
return nlohmann::json(*this);
}
static Agent fromJson(const nlohmann::json& j)
{
return j.get<Agent>();
}
};
} // namespace models

View File

@@ -0,0 +1,43 @@
/*
* AUTO-GENERATED BY CppBeSsot.
* Direct edits are pointless: this file is regenerated.
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
*/
#pragma once
#include <cstdint>
#include <string>
#include <nlohmann/json.hpp>
#include <odb/core.hxx>
namespace models {
#pragma db model version(1, 2)
#pragma db object table("GovernmentAddress")
class GovernmentAddress
{
public:
#pragma db id
// odbAddedIn: 1.1
std::string id{};
// odbAddedIn: 1.1
std::string addressLabel{};
// odbAddedIn: 1.1
std::string regionLookupKey{};
NLOHMANN_DEFINE_TYPE_INTRUSIVE(GovernmentAddress, id, addressLabel, regionLookupKey)
nlohmann::json toJson() const
{
return nlohmann::json(*this);
}
static GovernmentAddress fromJson(const nlohmann::json& j)
{
return j.get<GovernmentAddress>();
}
};
} // namespace models

View File

@@ -0,0 +1,61 @@
/*
* AUTO-GENERATED BY CppBeSsot.
* Direct edits are pointless: this file is regenerated.
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
*/
#pragma once
#include <cstdint>
#include <string>
#include <nlohmann/json.hpp>
#include <odb/core.hxx>
namespace models {
#pragma db model version(1, 2)
#pragma db object table("TripAttemptResult")
class TripAttemptResult
{
public:
#pragma db id
// odbAddedIn: 1.1
std::string id{};
// odbAddedIn: 1.1
std::string result{};
// odbAddedIn: 1.1
std::string retryReason{};
// odbAddedIn: 1.1
std::string governmentSuspensionReason{};
// odbAddedIn: 1.1
std::string governmentTerminationReason{};
// odbAddedIn: 1.1
std::string complianceSuspensionReason{};
// odbAddedIn: 1.1
std::string complianceTerminationReason{};
// odbAddedIn: 1.1
std::string policySuspensionReason{};
// odbAddedIn: 1.1
std::string policyTerminationReason{};
// odbAddedIn: 1.1
std::string cancelationReason{};
// odbAddedIn: 1.1
std::string failureReason{};
// odbAddedIn: 1.1
std::string details{};
NLOHMANN_DEFINE_TYPE_INTRUSIVE(TripAttemptResult, id, result, retryReason, governmentSuspensionReason, governmentTerminationReason, complianceSuspensionReason, complianceTerminationReason, policySuspensionReason, policyTerminationReason, cancelationReason, failureReason, details)
nlohmann::json toJson() const
{
return nlohmann::json(*this);
}
static TripAttemptResult fromJson(const nlohmann::json& j)
{
return j.get<TripAttemptResult>();
}
};
} // namespace models

View File

@@ -0,0 +1,11 @@
/*
* AUTO-GENERATED BY CppBeSsot.
* Direct edits are pointless: this file is regenerated.
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
*/
#include "cppbessot/model/Agent.h"
namespace models {
// Nlohmann-based models are header-only for now.
} // namespace models

View File

@@ -0,0 +1,11 @@
/*
* AUTO-GENERATED BY CppBeSsot.
* Direct edits are pointless: this file is regenerated.
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
*/
#include "cppbessot/model/GovernmentAddress.h"
namespace models {
// Nlohmann-based models are header-only for now.
} // namespace models

View File

@@ -0,0 +1,11 @@
/*
* AUTO-GENERATED BY CppBeSsot.
* Direct edits are pointless: this file is regenerated.
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
*/
#include "cppbessot/model/TripAttemptResult.h"
namespace models {
// Nlohmann-based models are header-only for now.
} // namespace models