Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
schema.h File Reference
#include <nlohmann/json.hpp>
#include <filesystem>
#include <string>
#include <string_view>
Include dependency graph for schema.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hgps
 Top-level namespace for Health-GPS Console host application.
namespace  hgps::input
 Data structures containing model parameters and configuration options.

Functions

std::string hgps::input::strip_schema_fragment (std::string_view uri)
 Validate a JSON stream against the specified schema.
void hgps::input::validate_json (std::istream &is, const std::string &schema_file_name, int schema_version)
nlohmann::json hgps::input::load_and_validate_json (const std::filesystem::path &file_path, const std::string &schema_file_name, int schema_version, bool require_schema_property=true)
 Load a JSON file and validate against the specified schema.