Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
Loading...
Searching...
No Matches
contracts.hpp File Reference
#include <nlohmann/json_fwd.hpp>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for contracts.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  arachnespace::contracts::diagnostic
struct  arachnespace::contracts::validation_result

Namespaces

namespace  arachnespace
namespace  arachnespace::contracts

Enumerations

enum class  arachnespace::contracts::contract_name {
  arachnespace::contracts::arachne_batch , arachnespace::contracts::batch_envelope , arachnespace::contracts::fetch_plan , arachnespace::contracts::fetch_request ,
  arachnespace::contracts::acquired_artifact , arachnespace::contracts::research_candidate_graph_plan , arachnespace::contracts::product_graph_snapshot , arachnespace::contracts::research_candidate_graph_snapshot ,
  arachnespace::contracts::viewer_projection , arachnespace::contracts::site_bundle
}

Functions

std::string_view arachnespace::contracts::to_string (contract_name name) noexcept
std::optional< contract_namearachnespace::contracts::parse_contract_name (std::string_view name) noexcept
bool arachnespace::contracts::is_artifact_bearing (contract_name name) noexcept
validation_result arachnespace::contracts::validate (const nlohmann::json &document)
validation_result arachnespace::contracts::validate (contract_name expected, const nlohmann::json &document)
std::string arachnespace::contracts::canonical_json (const nlohmann::json &document)