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 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

void hgps::input::validate_json (std::istream &is, const std::string &schema_file_name, int schema_version)
 Validate a JSON stream against the specified schema.
 
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.