Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
schema.h
Go to the documentation of this file.
1#pragma once
2
3#include <nlohmann/json.hpp>
4
5#include <filesystem>
6#include <string>
7
8namespace hgps::input {
13void validate_json(std::istream &is, const std::string &schema_file_name, int schema_version);
14
21nlohmann::json load_and_validate_json(const std::filesystem::path &file_path,
22 const std::string &schema_file_name, int schema_version,
23 bool require_schema_property = true);
24} // namespace hgps::input
Data structures containing model parameters and configuration options.
Definition configuration.cpp:75
nlohmann::json load_and_validate_json(const std::filesystem::path &file_path, const std::string &schema_file_name, int schema_version, bool require_schema_property)
Load a JSON file and validate against the specified schema.
Definition schema.cpp:57
void validate_json(std::istream &is, const std::string &schema_file_name, int schema_version)
Validate a JSON stream against the specified schema.
Definition schema.cpp:38